]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix doc-string of pop-to-buffer-same-window. (Bug#15492)
authorMartin Rudalics <rudalics@gmx.at>
Thu, 10 Oct 2013 07:57:28 +0000 (09:57 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Thu, 10 Oct 2013 07:57:28 +0000 (09:57 +0200)
* window.el (pop-to-buffer-same-window): Fix doc-string.
(Bug#15492)

lisp/ChangeLog
lisp/window.el

index cea0f7c4a59cde3607a844fd8b6f8dfa39d63a84..d219bade1d926508016b0daf5fc19b9ea351ae32 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-10  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (pop-to-buffer-same-window): Fix doc-string.
+       (Bug#15492)
+
 2013-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * menu-bar.el (tty-menu-navigation-map): Reduce redundancy.
index e4959da3d21b2d43bad87a89bdd5a05cc1d193ae..3f409a6f26a8a49a4264ef8802c4ffe045d96145 100644 (file)
@@ -5861,20 +5861,16 @@ at the front of the list of recently selected ones."
 
 (defun pop-to-buffer-same-window (buffer &optional norecord)
   "Select buffer BUFFER in some window, preferably the same one.
-This function behaves much like `switch-to-buffer', except it
-displays with `special-display-function' if BUFFER has a match in
-`special-display-buffer-names' or `special-display-regexps'.
-
-Unlike `pop-to-buffer', this function prefers using the selected
-window over popping up a new window or frame.
-
 BUFFER may be a buffer, a string (a buffer name), or nil.  If it
 is a string not naming an existent buffer, create a buffer with
 that name.  If BUFFER is nil, choose some other buffer.  Return
 the buffer.
 
-NORECORD, if non-nil means do not put this buffer at the front of
-the list of recently selected ones."
+Optional argument NORECORD, if non-nil means do not put this
+buffer at the front of the list of recently selected ones.
+
+Unlike `pop-to-buffer', this function prefers using the selected
+window over popping up a new window or frame."
   (pop-to-buffer buffer display-buffer--same-window-action norecord))
 
 (defun read-buffer-to-switch (prompt)