]> git.eshelyaron.com Git - emacs.git/commitdiff
(emerge-show-file-name): Read event irrespective of whether minibuffer
authorJohn Paul Wallington <jpw@pobox.com>
Mon, 24 Mar 2003 08:53:46 +0000 (08:53 +0000)
committerJohn Paul Wallington <jpw@pobox.com>
Mon, 24 Mar 2003 08:53:46 +0000 (08:53 +0000)
window is resized.  Clear minibuffer when done.

lisp/ChangeLog
lisp/emerge.el

index 4a80a436f7e4357d2b5c782df55d0dfc60636ee6..34ea2dcc44e30e5dea81a94a224f23bd4ce31d14 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-24  John Paul Wallington  <jpw@gnu.org>
 
+       * emerge.el (emerge-show-file-name): Read event irrespective of
+       whether minibuffer window is resized.  Clear minibuffer when done.
+
        * cus-theme.el (customize-create-theme): Rename from
        `custom-theme-create'.
 
index 170a907afaefc0fc77344bc68c3f31272bf8899c..b3e411735e3fce23c05f265c7fc5e7582632863f 100644 (file)
@@ -3106,18 +3106,21 @@ SPC, it is ignored; if it is anything else, it is processed as a command."
        (setq name "Buffer has no file name."))
     (save-window-excursion
       (select-window (minibuffer-window))
-      (erase-buffer)
-      (insert name)
-      (if (not (pos-visible-in-window-p))
-         (let ((echo-keystrokes 0))
-           (while (and (not (pos-visible-in-window-p))
-                       (> (1- (frame-height)) (window-height)))
-             (enlarge-window 1))
-           (let ((c (read-event)))
+      (unwind-protect
+         (progn
+           (erase-buffer)
+           (insert name)
+           (if (not (pos-visible-in-window-p))
+               (while (and (not (pos-visible-in-window-p))
+                           (> (1- (frame-height)) (window-height)))
+                 (enlarge-window 1)))
+           (let* ((echo-keystrokes 0)
+                  (c (read-event)))
              (if (not (eq c 32))
-                 (setq unread-command-events (list c)))))))))
+                 (setq unread-command-events (list c)))))
+       (erase-buffer)))))
 
-;; Improved auto-save file names.
+;; Improved auto-save gfile names.
 ;; This function fixes many problems with the standard auto-save file names:
 ;; Auto-save files for non-file buffers get put in the default directory
 ;; for the buffer, whether that makes sense or not.