aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-11-02 08:56:48 -0400
committerStefan Monnier2011-11-02 08:56:48 -0400
commitacc825c5c40c857d4c2c15f0fd0c4fae616220be (patch)
treefe26ef37a0629aedece3baa78a0c5ee4518c46ff
parent1885e5b80a94e5653dd604fb0b7e579d6fe64c3e (diff)
downloademacs-acc825c5c40c857d4c2c15f0fd0c4fae616220be.tar.gz
emacs-acc825c5c40c857d4c2c15f0fd0c4fae616220be.zip
* lisp/window.el (switch-to-buffer): Use `force-same-window' interactively.
-rw-r--r--lisp/ChangeLog25
-rw-r--r--lisp/window.el2
2 files changed, 15 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a009352e46e..a94987284de 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,9 +1,12 @@
12011-11-02 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * window.el (switch-to-buffer): Use `force-same-window' interactively.
4
12011-11-02 Martin Rudalics <rudalics@gmx.at> 52011-11-02 Martin Rudalics <rudalics@gmx.at>
2 6
3 * window.el (quit-window): Call unrecord-window-buffer after 7 * window.el (quit-window): Call unrecord-window-buffer after
4 showing another buffer in the window. (Bug#9937) 8 showing another buffer in the window. (Bug#9937)
5 (bury-buffer): Call switch-to-prev-buffer with second argument 9 (bury-buffer): Call switch-to-prev-buffer with second argument `bury'.
6 'bury.
7 10
82011-11-02 Juanma Barranquero <lekktu@gmail.com> 112011-11-02 Juanma Barranquero <lekktu@gmail.com>
9 12
@@ -38,8 +41,8 @@
382011-10-30 Martin Rudalics <rudalics@gmx.at> 412011-10-30 Martin Rudalics <rudalics@gmx.at>
39 42
40 * window.el (window-iso-combination-p, window-iso-combined-p) 43 * window.el (window-iso-combination-p, window-iso-combined-p)
41 (window-iso-combinations): Remove "iso-" infix. Suggested by 44 (window-iso-combinations): Remove "iso-" infix.
42 Chong Yidong. 45 Suggested by Chong Yidong.
43 (window-min-size-1, window-size-fixed-1, window-min-delta-1) 46 (window-min-size-1, window-size-fixed-1, window-min-delta-1)
44 (window-max-delta-1, window-resize, window--resize-siblings) 47 (window-max-delta-1, window-resize, window--resize-siblings)
45 (window--resize-this-window, adjust-window-trailing-edge) 48 (window--resize-this-window, adjust-window-trailing-edge)
@@ -139,8 +142,7 @@
139 Prevent "class foo : bar" being spuriously recognized as a label. 142 Prevent "class foo : bar" being spuriously recognized as a label.
140 143
141 * progmodes/cc-cmds.el (c-narrow-to-most-enclosing-decl-block): 144 * progmodes/cc-cmds.el (c-narrow-to-most-enclosing-decl-block):
142 Add parameter `inclusive' (to include enclosing braces in the 145 Add parameter `inclusive' (to include enclosing braces in the region).
143 region).
144 (c-widen-to-enclosing-decl-scope): New function. 146 (c-widen-to-enclosing-decl-scope): New function.
145 (c-while-widening-to-decl-block): New macro. 147 (c-while-widening-to-decl-block): New macro.
146 (c-beginning-of-defun, c-end-of-defun): Change algorithm to keep going 148 (c-beginning-of-defun, c-end-of-defun): Change algorithm to keep going
@@ -161,7 +163,7 @@
161 * progmodes/cc-defs.el: Update "virtual semicolon" comments. 163 * progmodes/cc-defs.el: Update "virtual semicolon" comments.
162 164
163 * progmodes/cc-engine.el (c-crosses-statement-barrier-p): 165 * progmodes/cc-engine.el (c-crosses-statement-barrier-p):
164 Recoded to scan one line at at time rather than having \n and \r 166 Recode to scan one line at at time rather than having \n and \r
165 explicitly in c-stmt-delim-chars 167 explicitly in c-stmt-delim-chars
166 (for some modes, e.g. AWK). 168 (for some modes, e.g. AWK).
167 (c-forward-label): Amend for virtual semicolons. 169 (c-forward-label): Amend for virtual semicolons.
@@ -171,8 +173,8 @@
171 of the new C macros. 173 of the new C macros.
172 174
173 * progmodes/cc-langs.el (c-at-vsemi-p-fn): 175 * progmodes/cc-langs.el (c-at-vsemi-p-fn):
174 (c-vsemi-status-unknown-p-fn): move to earlier in the file. 176 (c-vsemi-status-unknown-p-fn): Move to earlier in the file.
175 (c-opt-cpp-symbol, c-line-comment-start-regexp): New language variables. 177 (c-opt-cpp-symbol, c-line-comment-start-regexp): New language vars.
176 (c-opt-cpp-macro-define): Make into a full language variable. 178 (c-opt-cpp-macro-define): Make into a full language variable.
177 (c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for 179 (c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for
178 AWK Mode (including \n, \r) removed, no longer needed. 180 AWK Mode (including \n, \r) removed, no longer needed.
@@ -232,7 +234,7 @@
232 234
2332011-10-26 Juanma Barranquero <lekktu@gmail.com> 2352011-10-26 Juanma Barranquero <lekktu@gmail.com>
234 236
235 * term/w32-win.el (w32-default-color-map): Declare obsolete. (Bug#9785) 237 * term/w32-win.el (w32-default-color-map): Declare obsolete (Bug#9785).
236 238
2372011-10-26 Michael Albinus <michael.albinus@gmx.de> 2392011-10-26 Michael Albinus <michael.albinus@gmx.de>
238 240
@@ -280,7 +282,8 @@
280 282
2812011-10-24 Stefan Monnier <monnier@iro.umontreal.ca> 2832011-10-24 Stefan Monnier <monnier@iro.umontreal.ca>
282 284
283 * progmodes/octave-inf.el (inferior-octave-mode-map): Fix C-c C-h binding. 285 * progmodes/octave-inf.el (inferior-octave-mode-map):
286 Fix C-c C-h binding.
284 * progmodes/octave-mod.el (octave-help): Remove. 287 * progmodes/octave-mod.el (octave-help): Remove.
285 288
2862011-10-23 Michael Albinus <michael.albinus@gmx.de> 2892011-10-23 Michael Albinus <michael.albinus@gmx.de>
diff --git a/lisp/window.el b/lisp/window.el
index d93658a2cef..9b12c204d48 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5024,7 +5024,7 @@ nil, BUFFER-OR-NAME may be displayed in another window.
5024 5024
5025Return the buffer switched to." 5025Return the buffer switched to."
5026 (interactive 5026 (interactive
5027 (list (read-buffer-to-switch "Switch to buffer: ") nil nil)) 5027 (list (read-buffer-to-switch "Switch to buffer: ") nil 'force-same-window))
5028 (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name))) 5028 (let ((buffer (window-normalize-buffer-to-switch-to buffer-or-name)))
5029 (if (null force-same-window) 5029 (if (null force-same-window)
5030 (pop-to-buffer buffer display-buffer--same-window-action norecord) 5030 (pop-to-buffer buffer display-buffer--same-window-action norecord)