diff options
| author | Stefan Monnier | 2011-07-04 12:08:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-07-04 12:08:16 -0400 |
| commit | c8af70e11e5429b216974e46f687d9e9f98efbcd (patch) | |
| tree | f359316f969802893ce2b637ca63539431eca687 | |
| parent | 60c55439fcdea56b9039ad544a7bf53372440502 (diff) | |
| download | emacs-c8af70e11e5429b216974e46f687d9e9f98efbcd.tar.gz emacs-c8af70e11e5429b216974e46f687d9e9f98efbcd.zip | |
* lisp/files.el (find-file): Use pop-to-buffer-same-window.
* lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Add switch-to-buffer.
Fixes: debbugs:8911
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 2 | ||||
| -rw-r--r-- | lisp/files.el | 4 |
3 files changed, 14 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3bae3baaa71..391a34206f4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-07-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * files.el (find-file): Use pop-to-buffer-same-window (bug#8911). | ||
| 4 | * emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions): | ||
| 5 | Add switch-to-buffer. | ||
| 6 | |||
| 1 | 2011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * isearch.el (isearch-search-fun-function): Clarify further the | 9 | * isearch.el (isearch-search-fun-function): Clarify further the |
| @@ -28,7 +34,7 @@ | |||
| 28 | 34 | ||
| 29 | 2011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 35 | 2011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 30 | 36 | ||
| 31 | * play/animate.el (animation-buffer-name): Renamed from *animate*. | 37 | * play/animate.el (animation-buffer-name): Rename from *animate*. |
| 32 | 38 | ||
| 33 | 2011-07-04 Paul Eggert <eggert@cs.ucla.edu> | 39 | 2011-07-04 Paul Eggert <eggert@cs.ucla.edu> |
| 34 | 40 | ||
| @@ -61,7 +67,7 @@ | |||
| 61 | 2011-07-03 Chong Yidong <cyd@stupidchicken.com> | 67 | 2011-07-03 Chong Yidong <cyd@stupidchicken.com> |
| 62 | 68 | ||
| 63 | * frame.el (frame-background-mode, frame-set-background-mode): | 69 | * frame.el (frame-background-mode, frame-set-background-mode): |
| 64 | Moved from faces.el. | 70 | Move from faces.el. |
| 65 | (frame-default-terminal-background): New function. | 71 | (frame-default-terminal-background): New function. |
| 66 | 72 | ||
| 67 | * custom.el (custom-push-theme): Don't record faces in `changed' | 73 | * custom.el (custom-push-theme): Don't record faces in `changed' |
| @@ -71,7 +77,7 @@ | |||
| 71 | 77 | ||
| 72 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | 78 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 73 | 79 | ||
| 74 | * dired.el (dired-flagging-regexp): Removed unused variable | 80 | * dired.el (dired-flagging-regexp): Remove unused variable |
| 75 | (bug#8769). | 81 | (bug#8769). |
| 76 | 82 | ||
| 77 | 2011-03-29 Kevin Ryde <user42@zip.com.au> | 83 | 2011-03-29 Kevin Ryde <user42@zip.com.au> |
| @@ -158,8 +164,8 @@ | |||
| 158 | * info-look.el (info-lookup-add-help): Clarify that ARGS is a list | 164 | * info-look.el (info-lookup-add-help): Clarify that ARGS is a list |
| 159 | of keyword/argument pairs (bug#6904). | 165 | of keyword/argument pairs (bug#6904). |
| 160 | 166 | ||
| 161 | * replace.el (multi-occur): Mention | 167 | * replace.el (multi-occur): |
| 162 | `multi-occur-in-matching-buffers' in the doc string (bug#7566). | 168 | Mention `multi-occur-in-matching-buffers' in the doc string (bug#7566). |
| 163 | 169 | ||
| 164 | 2011-07-02 Drew Adams <drew.adams@oracle.com> | 170 | 2011-07-02 Drew Adams <drew.adams@oracle.com> |
| 165 | 171 | ||
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 127f93c6858..223e9667ac3 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -355,7 +355,7 @@ else the global value will be modified." | |||
| 355 | (defvar byte-compile-interactive-only-functions | 355 | (defvar byte-compile-interactive-only-functions |
| 356 | '(beginning-of-buffer end-of-buffer replace-string replace-regexp | 356 | '(beginning-of-buffer end-of-buffer replace-string replace-regexp |
| 357 | insert-file insert-buffer insert-file-literally previous-line next-line | 357 | insert-file insert-buffer insert-file-literally previous-line next-line |
| 358 | goto-line comint-run delete-backward-char) | 358 | goto-line comint-run delete-backward-char switch-to-buffer) |
| 359 | "List of commands that are not meant to be called from Lisp.") | 359 | "List of commands that are not meant to be called from Lisp.") |
| 360 | 360 | ||
| 361 | (defvar byte-compile-not-obsolete-vars nil | 361 | (defvar byte-compile-not-obsolete-vars nil |
diff --git a/lisp/files.el b/lisp/files.el index 3cc41b04b4e..c9f85ff6a1a 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1341,8 +1341,8 @@ automatically choosing a major mode, use \\[find-file-literally]." | |||
| 1341 | (confirm-nonexistent-file-or-buffer))) | 1341 | (confirm-nonexistent-file-or-buffer))) |
| 1342 | (let ((value (find-file-noselect filename nil nil wildcards))) | 1342 | (let ((value (find-file-noselect filename nil nil wildcards))) |
| 1343 | (if (listp value) | 1343 | (if (listp value) |
| 1344 | (mapcar 'switch-to-buffer (nreverse value)) | 1344 | (mapcar #'pop-to-buffer-same-window (nreverse value)) |
| 1345 | (switch-to-buffer value)))) | 1345 | (pop-to-buffer-same-window value)))) |
| 1346 | 1346 | ||
| 1347 | (defun find-file-other-window (filename &optional wildcards) | 1347 | (defun find-file-other-window (filename &optional wildcards) |
| 1348 | "Edit file FILENAME, in another window. | 1348 | "Edit file FILENAME, in another window. |