mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-13 09:32:47 +00:00
Remove some compat code from ediff-util.el
* lisp/vc/ediff-util.el (ediff-minibuffer-with-setup-hook): Make into an obsolete macro. (ediff-read-file-name): Adjust caller.
This commit is contained in:
parent
8d7a7c16a8
commit
85f0e3df73
@ -3069,10 +3069,8 @@ Hit \\[ediff-recenter] to reset the windows afterward."
|
||||
|
||||
|
||||
;; for compatibility
|
||||
(defmacro ediff-minibuffer-with-setup-hook (fun &rest body)
|
||||
`(if (fboundp 'minibuffer-with-setup-hook)
|
||||
(minibuffer-with-setup-hook ,fun ,@body)
|
||||
,@body))
|
||||
(define-obsolete-function-alias 'ediff-minibuffer-with-setup-hook
|
||||
#'minibuffer-with-setup-hook "28.1")
|
||||
|
||||
;; This is adapted from a similar function in `emerge.el'.
|
||||
;; PROMPT should not have a trailing ': ', so that it can be modified
|
||||
@ -3101,7 +3099,7 @@ Hit \\[ediff-recenter] to reset the windows afterward."
|
||||
(and default-file (list default-file))
|
||||
default-dir)))
|
||||
f)
|
||||
(setq f (ediff-minibuffer-with-setup-hook
|
||||
(setq f (minibuffer-with-setup-hook
|
||||
(lambda () (when defaults
|
||||
(setq minibuffer-default defaults)))
|
||||
(read-file-name
|
||||
|
Loading…
Reference in New Issue
Block a user