diff options
| author | Stefan Monnier | 2010-05-07 20:20:30 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-05-07 20:20:30 -0400 |
| commit | ba5bf5f0f9d661602397cd690d796940b17173ba (patch) | |
| tree | 61f073b16bef1438b4ee3857983ec3cc4538515f /lisp | |
| parent | 94b612ad880e0d6eab6659347cb66e3a5310f8be (diff) | |
| download | emacs-ba5bf5f0f9d661602397cd690d796940b17173ba.tar.gz emacs-ba5bf5f0f9d661602397cd690d796940b17173ba.zip | |
Misc code tweaks.
* electric.el (Electric-command-loop): Minor tweak.
* ebuff-menu.el (electric-buffer-list): Try and make it behave a bit
better with dedicated windows.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ebuff-menu.el | 2 | ||||
| -rw-r--r-- | lisp/electric.el | 6 |
3 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9c822db5679..fde802367eb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-05-08 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * electric.el (Electric-command-loop): Minor tweak. | ||
| 4 | |||
| 5 | * ebuff-menu.el (electric-buffer-list): Try and make it behave a bit | ||
| 6 | better with dedicated windows. | ||
| 7 | |||
| 1 | 2010-05-07 Deniz Dogan <deniz.a.m.dogan@gmail.com> (tiny change) | 8 | 2010-05-07 Deniz Dogan <deniz.a.m.dogan@gmail.com> (tiny change) |
| 2 | Stefan Monnier <monnier@iro.umontreal.ca> | 9 | Stefan Monnier <monnier@iro.umontreal.ca> |
| 3 | 10 | ||
diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el index 99704e02b35..6e307d1ab86 100644 --- a/lisp/ebuff-menu.el +++ b/lisp/ebuff-menu.el | |||
| @@ -95,7 +95,7 @@ Run hooks in `electric-buffer-menu-mode-hook' on entry. | |||
| 95 | (cons first last)))))) | 95 | (cons first last)))))) |
| 96 | (set-buffer buffer) | 96 | (set-buffer buffer) |
| 97 | (Buffer-menu-mode) | 97 | (Buffer-menu-mode) |
| 98 | (bury-buffer buffer) | 98 | (bury-buffer) ;Get rid of window, if dedicated. |
| 99 | (message ""))) | 99 | (message ""))) |
| 100 | (if select | 100 | (if select |
| 101 | (progn (set-buffer buffer) | 101 | (progn (set-buffer buffer) |
diff --git a/lisp/electric.el b/lisp/electric.el index db53b5fa84e..fb3e462efba 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -58,12 +58,10 @@ | |||
| 58 | (err nil) | 58 | (err nil) |
| 59 | (prompt-string prompt)) | 59 | (prompt-string prompt)) |
| 60 | (while t | 60 | (while t |
| 61 | (if (not (or (stringp prompt) (eq prompt nil) (eq prompt 'noprompt))) | 61 | (if (functionp prompt) |
| 62 | (setq prompt-string (funcall prompt))) | 62 | (setq prompt-string (funcall prompt))) |
| 63 | (if (not (stringp prompt-string)) | 63 | (if (not (stringp prompt-string)) |
| 64 | (if (eq prompt-string 'noprompt) | 64 | (setq prompt-string (unless (eq prompt-string 'noprompt) "->"))) |
| 65 | (setq prompt-string nil) | ||
| 66 | (setq prompt-string "->"))) | ||
| 67 | (setq cmd (read-key-sequence prompt-string)) | 65 | (setq cmd (read-key-sequence prompt-string)) |
| 68 | (setq last-command-event (aref cmd (1- (length cmd))) | 66 | (setq last-command-event (aref cmd (1- (length cmd))) |
| 69 | this-command (key-binding cmd t) | 67 | this-command (key-binding cmd t) |