]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-file-read-args): Don't trash existing value of
authorMiles Bader <miles@gnu.org>
Mon, 20 May 2002 04:40:53 +0000 (04:40 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 20 May 2002 04:40:53 +0000 (04:40 +0000)
`minibuffer-setup-hook', just add our hook to it.

lisp/ChangeLog
lisp/files.el

index b3340c730ee2a48fff2d281b247ecf7fb20672cc..b380603e0cf0b7c1d64f5e9dbc55396a633c45ae 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-20  Miles Bader  <miles@gnu.org>
+
+       * files.el (find-file-read-args): Don't trash existing value of
+       `minibuffer-setup-hook', just add our hook to it.
+
 2002-05-19  Markus Rost  <rost@math.ohio-state.edu>
 
        * international/ucs-tables.el (unify-8859-on-encoding-mode)
        (occur-engine): If there are no more matches, then finish
        searching the current buffer.
 
-2002-05-12  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+2002-05-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
        * net/ange-ftp.el (ange-ftp-try-passive-mode)
        (ange-ftp-passive-host-alist): Change :version attributes to be
 
        * subr.el (functionp): Catch errors in indirect-function.
 
-2002-05-12  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+2002-05-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
        * net/ldap.el (ldap-search-internal): Unfold folded lines before
        parsing.
 
        * wid-edit.el (checkbox): New check-mark image.
 
-2002-05-08  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+2002-05-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
        * filesets.el (filesets-running-xemacs): Fix last change.
 
        (filesets-menu-path, filesets-menu-before, filesets-menu-in-menu):
        Defvar them to nil if running in Emacs.
 
-2002-05-08  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+2002-05-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
        * textmodes/flyspell.el (make-flyspell-overlay): Add help text
        to flyspell overlays.
        Only interpret delete-selection property if mark-active.
        (cua-mode): Fixed require in defcustom.
 
-2002-05-01  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+2002-05-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
        * calendar/cal-menu.el (cal-menu-x-popup-menu): Fix argument of
        error call.
 
        * language/viet-util.el: Update Commentary section.
 
-2002-04-29  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
        * filesets.el (filesets-data): Doc fix.
        (filesets-running-xemacs): Define even when compiling.
        * replace.el (occur-revert-arguments):
        Renamed from occur-revert-properties.  All uses changed.
 
-2002-04-28  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
+2002-04-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
 
        * recentf.el (recentf-menu-before): Use string to specify path in
        the menu.
index 2feadc8c1215c3a803269d00c54111d73ebd3bc0..9169ae9193bb61c14cccaecf7ec5552c9807aa22 100644 (file)
@@ -773,12 +773,15 @@ documentation for additional customization information."
   (list (let ((find-file-default
               (and buffer-file-name
                    (abbreviate-file-name buffer-file-name)))
+             (munge-default-fun
+              (lambda ()
+                (setq minibuffer-default find-file-default)
+                ;; Clear out this hook so it does not interfere
+                ;; with any recursive minibuffer usage.
+                (pop minibuffer-setup-hook)))
              (minibuffer-setup-hook
-              '((lambda ()
-                  (setq minibuffer-default find-file-default)
-                  ;; Clear out this hook so it does not interfere
-                  ;; with any recursive minibuffer usage.
-                  (setq minibuffer-setup-hook nil)))))
+              minibuffer-setup-hook))
+         (add-hook 'minibuffer-setup-hook munge-default-fun)
          (read-file-name prompt nil default-directory))
        current-prefix-arg))