]> git.eshelyaron.com Git - emacs.git/commitdiff
Misc code tweaks.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 8 May 2010 00:20:30 +0000 (20:20 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 8 May 2010 00:20:30 +0000 (20:20 -0400)
* electric.el (Electric-command-loop): Minor tweak.
* ebuff-menu.el (electric-buffer-list): Try and make it behave a bit
better with dedicated windows.

lisp/ChangeLog
lisp/ebuff-menu.el
lisp/electric.el

index 9c822db56797d0d520d20f047f4137e58381d3d4..fde802367eb539f9fc7c2501ebe29601d4857654 100644 (file)
@@ -1,3 +1,10 @@
+2010-05-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * electric.el (Electric-command-loop): Minor tweak.
+
+       * ebuff-menu.el (electric-buffer-list): Try and make it behave a bit
+       better with dedicated windows.
+
 2010-05-07  Deniz Dogan <deniz.a.m.dogan@gmail.com>  (tiny change)
             Stefan Monnier  <monnier@iro.umontreal.ca>
 
index 99704e02b352f2cad34f44738a47137cc01dee0a..6e307d1ab86ee3f840aa78c9a9dbf9a4ba0115f4 100644 (file)
@@ -95,7 +95,7 @@ Run hooks in `electric-buffer-menu-mode-hook' on entry.
                                             (cons first last))))))
        (set-buffer buffer)
        (Buffer-menu-mode)
-       (bury-buffer buffer)
+       (bury-buffer)                ;Get rid of window, if dedicated.
        (message "")))
     (if select
        (progn (set-buffer buffer)
index db53b5fa84ef756b60d93dacd1e82c2416fd9c6b..fb3e462efbaf757c06555166ffd9caf67fb2405b 100644 (file)
         (err nil)
         (prompt-string prompt))
     (while t
-      (if (not (or (stringp prompt) (eq prompt nil) (eq prompt 'noprompt)))
+      (if (functionp prompt)
           (setq prompt-string (funcall prompt)))
       (if (not (stringp prompt-string))
-          (if (eq prompt-string 'noprompt)
-              (setq prompt-string nil)
-            (setq prompt-string "->")))
+          (setq prompt-string (unless (eq prompt-string 'noprompt) "->")))
       (setq cmd (read-key-sequence prompt-string))
       (setq last-command-event (aref cmd (1- (length cmd)))
            this-command (key-binding cmd t)