diff options
| author | John Paul Wallington | 2003-03-24 08:53:46 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2003-03-24 08:53:46 +0000 |
| commit | 784fda4fefbb4a7a271c9e6cfc3478a39de483fa (patch) | |
| tree | bf2d43b3a553ad71db293f9fcbd4ab61bb666e95 | |
| parent | f560e69cee46267a26c0cb1635ccea9c5c997723 (diff) | |
| download | emacs-784fda4fefbb4a7a271c9e6cfc3478a39de483fa.tar.gz emacs-784fda4fefbb4a7a271c9e6cfc3478a39de483fa.zip | |
(emerge-show-file-name): Read event irrespective of whether minibuffer
window is resized. Clear minibuffer when done.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emerge.el | 23 |
2 files changed, 16 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4a80a436f7e..34ea2dcc44e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2003-03-24 John Paul Wallington <jpw@gnu.org> | 1 | 2003-03-24 John Paul Wallington <jpw@gnu.org> |
| 2 | 2 | ||
| 3 | * emerge.el (emerge-show-file-name): Read event irrespective of | ||
| 4 | whether minibuffer window is resized. Clear minibuffer when done. | ||
| 5 | |||
| 3 | * cus-theme.el (customize-create-theme): Rename from | 6 | * cus-theme.el (customize-create-theme): Rename from |
| 4 | `custom-theme-create'. | 7 | `custom-theme-create'. |
| 5 | 8 | ||
diff --git a/lisp/emerge.el b/lisp/emerge.el index 170a907afae..b3e411735e3 100644 --- a/lisp/emerge.el +++ b/lisp/emerge.el | |||
| @@ -3106,18 +3106,21 @@ SPC, it is ignored; if it is anything else, it is processed as a command." | |||
| 3106 | (setq name "Buffer has no file name.")) | 3106 | (setq name "Buffer has no file name.")) |
| 3107 | (save-window-excursion | 3107 | (save-window-excursion |
| 3108 | (select-window (minibuffer-window)) | 3108 | (select-window (minibuffer-window)) |
| 3109 | (erase-buffer) | 3109 | (unwind-protect |
| 3110 | (insert name) | 3110 | (progn |
| 3111 | (if (not (pos-visible-in-window-p)) | 3111 | (erase-buffer) |
| 3112 | (let ((echo-keystrokes 0)) | 3112 | (insert name) |
| 3113 | (while (and (not (pos-visible-in-window-p)) | 3113 | (if (not (pos-visible-in-window-p)) |
| 3114 | (> (1- (frame-height)) (window-height))) | 3114 | (while (and (not (pos-visible-in-window-p)) |
| 3115 | (enlarge-window 1)) | 3115 | (> (1- (frame-height)) (window-height))) |
| 3116 | (let ((c (read-event))) | 3116 | (enlarge-window 1))) |
| 3117 | (let* ((echo-keystrokes 0) | ||
| 3118 | (c (read-event))) | ||
| 3117 | (if (not (eq c 32)) | 3119 | (if (not (eq c 32)) |
| 3118 | (setq unread-command-events (list c))))))))) | 3120 | (setq unread-command-events (list c))))) |
| 3121 | (erase-buffer))))) | ||
| 3119 | 3122 | ||
| 3120 | ;; Improved auto-save file names. | 3123 | ;; Improved auto-save gfile names. |
| 3121 | ;; This function fixes many problems with the standard auto-save file names: | 3124 | ;; This function fixes many problems with the standard auto-save file names: |
| 3122 | ;; Auto-save files for non-file buffers get put in the default directory | 3125 | ;; Auto-save files for non-file buffers get put in the default directory |
| 3123 | ;; for the buffer, whether that makes sense or not. | 3126 | ;; for the buffer, whether that makes sense or not. |