diff options
| author | Miles Bader | 2002-05-20 04:40:53 +0000 |
|---|---|---|
| committer | Miles Bader | 2002-05-20 04:40:53 +0000 |
| commit | 257ae3a60a40f646e9fc2a5ebbd7165ccb57268b (patch) | |
| tree | 93685be4edc0fdd71cab9fb3e7cbc0b5629986f7 | |
| parent | 5d598f1645671262bb8712e05bbee56f68481d2c (diff) | |
| download | emacs-257ae3a60a40f646e9fc2a5ebbd7165ccb57268b.tar.gz emacs-257ae3a60a40f646e9fc2a5ebbd7165ccb57268b.zip | |
(find-file-read-args): Don't trash existing value of
`minibuffer-setup-hook', just add our hook to it.
| -rw-r--r-- | lisp/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/files.el | 13 |
2 files changed, 20 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b3340c730ee..b380603e0cf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-05-20 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * files.el (find-file-read-args): Don't trash existing value of | ||
| 4 | `minibuffer-setup-hook', just add our hook to it. | ||
| 5 | |||
| 1 | 2002-05-19 Markus Rost <rost@math.ohio-state.edu> | 6 | 2002-05-19 Markus Rost <rost@math.ohio-state.edu> |
| 2 | 7 | ||
| 3 | * international/ucs-tables.el (unify-8859-on-encoding-mode) | 8 | * international/ucs-tables.el (unify-8859-on-encoding-mode) |
| @@ -230,7 +235,7 @@ | |||
| 230 | (occur-engine): If there are no more matches, then finish | 235 | (occur-engine): If there are no more matches, then finish |
| 231 | searching the current buffer. | 236 | searching the current buffer. |
| 232 | 237 | ||
| 233 | 2002-05-12 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 238 | 2002-05-12 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 234 | 239 | ||
| 235 | * net/ange-ftp.el (ange-ftp-try-passive-mode) | 240 | * net/ange-ftp.el (ange-ftp-try-passive-mode) |
| 236 | (ange-ftp-passive-host-alist): Change :version attributes to be | 241 | (ange-ftp-passive-host-alist): Change :version attributes to be |
| @@ -272,7 +277,7 @@ | |||
| 272 | 277 | ||
| 273 | * subr.el (functionp): Catch errors in indirect-function. | 278 | * subr.el (functionp): Catch errors in indirect-function. |
| 274 | 279 | ||
| 275 | 2002-05-12 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 280 | 2002-05-12 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 276 | 281 | ||
| 277 | * net/ldap.el (ldap-search-internal): Unfold folded lines before | 282 | * net/ldap.el (ldap-search-internal): Unfold folded lines before |
| 278 | parsing. | 283 | parsing. |
| @@ -355,7 +360,7 @@ | |||
| 355 | 360 | ||
| 356 | * wid-edit.el (checkbox): New check-mark image. | 361 | * wid-edit.el (checkbox): New check-mark image. |
| 357 | 362 | ||
| 358 | 2002-05-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 363 | 2002-05-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 359 | 364 | ||
| 360 | * filesets.el (filesets-running-xemacs): Fix last change. | 365 | * filesets.el (filesets-running-xemacs): Fix last change. |
| 361 | 366 | ||
| @@ -375,7 +380,7 @@ | |||
| 375 | (filesets-menu-path, filesets-menu-before, filesets-menu-in-menu): | 380 | (filesets-menu-path, filesets-menu-before, filesets-menu-in-menu): |
| 376 | Defvar them to nil if running in Emacs. | 381 | Defvar them to nil if running in Emacs. |
| 377 | 382 | ||
| 378 | 2002-05-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 383 | 2002-05-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 379 | 384 | ||
| 380 | * textmodes/flyspell.el (make-flyspell-overlay): Add help text | 385 | * textmodes/flyspell.el (make-flyspell-overlay): Add help text |
| 381 | to flyspell overlays. | 386 | to flyspell overlays. |
| @@ -630,7 +635,7 @@ | |||
| 630 | Only interpret delete-selection property if mark-active. | 635 | Only interpret delete-selection property if mark-active. |
| 631 | (cua-mode): Fixed require in defcustom. | 636 | (cua-mode): Fixed require in defcustom. |
| 632 | 637 | ||
| 633 | 2002-05-01 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 638 | 2002-05-01 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 634 | 639 | ||
| 635 | * calendar/cal-menu.el (cal-menu-x-popup-menu): Fix argument of | 640 | * calendar/cal-menu.el (cal-menu-x-popup-menu): Fix argument of |
| 636 | error call. | 641 | error call. |
| @@ -765,7 +770,7 @@ | |||
| 765 | 770 | ||
| 766 | * language/viet-util.el: Update Commentary section. | 771 | * language/viet-util.el: Update Commentary section. |
| 767 | 772 | ||
| 768 | 2002-04-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 773 | 2002-04-29 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 769 | 774 | ||
| 770 | * filesets.el (filesets-data): Doc fix. | 775 | * filesets.el (filesets-data): Doc fix. |
| 771 | (filesets-running-xemacs): Define even when compiling. | 776 | (filesets-running-xemacs): Define even when compiling. |
| @@ -830,7 +835,7 @@ | |||
| 830 | * replace.el (occur-revert-arguments): | 835 | * replace.el (occur-revert-arguments): |
| 831 | Renamed from occur-revert-properties. All uses changed. | 836 | Renamed from occur-revert-properties. All uses changed. |
| 832 | 837 | ||
| 833 | 2002-04-28 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 838 | 2002-04-28 Pavel Jan,Am(Bk <Pavel@Janik.cz> |
| 834 | 839 | ||
| 835 | * recentf.el (recentf-menu-before): Use string to specify path in | 840 | * recentf.el (recentf-menu-before): Use string to specify path in |
| 836 | the menu. | 841 | the menu. |
diff --git a/lisp/files.el b/lisp/files.el index 2feadc8c121..9169ae9193b 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -773,12 +773,15 @@ documentation for additional customization information." | |||
| 773 | (list (let ((find-file-default | 773 | (list (let ((find-file-default |
| 774 | (and buffer-file-name | 774 | (and buffer-file-name |
| 775 | (abbreviate-file-name buffer-file-name))) | 775 | (abbreviate-file-name buffer-file-name))) |
| 776 | (munge-default-fun | ||
| 777 | (lambda () | ||
| 778 | (setq minibuffer-default find-file-default) | ||
| 779 | ;; Clear out this hook so it does not interfere | ||
| 780 | ;; with any recursive minibuffer usage. | ||
| 781 | (pop minibuffer-setup-hook))) | ||
| 776 | (minibuffer-setup-hook | 782 | (minibuffer-setup-hook |
| 777 | '((lambda () | 783 | minibuffer-setup-hook)) |
| 778 | (setq minibuffer-default find-file-default) | 784 | (add-hook 'minibuffer-setup-hook munge-default-fun) |
| 779 | ;; Clear out this hook so it does not interfere | ||
| 780 | ;; with any recursive minibuffer usage. | ||
| 781 | (setq minibuffer-setup-hook nil))))) | ||
| 782 | (read-file-name prompt nil default-directory)) | 785 | (read-file-name prompt nil default-directory)) |
| 783 | current-prefix-arg)) | 786 | current-prefix-arg)) |
| 784 | 787 | ||