# HG changeset patch # User aidan # Date 1108552050 0 # Node ID 627e257310547a2dc3c563126e655f190df748f5 # Parent 55aea53928825ec56109640ed01bd722f7f4ece9 [xemacs-hg @ 2005-02-16 11:07:29 by aidan] Document use of `same-window-buffer-names,' `same-window-regexps' by pop-to-buffer and display-buffer. Cf. 16914.49053.99642.919278@gargle.gargle.HOWL . diff -r 55aea5392882 -r 627e25731054 lisp/ChangeLog --- a/lisp/ChangeLog Tue Feb 15 22:51:39 2005 +0000 +++ b/lisp/ChangeLog Wed Feb 16 11:07:30 2005 +0000 @@ -1,3 +1,10 @@ +2005-02-16 Aidan Kehoe + + * buffer.el (pop-to-buffer): + * window-xemacs.el (display-buffer): + Document use of `same-window-buffer-names,' `same-window-regexps' + by pop-to-buffer and display-buffer. + 2005-02-09 Ben Wing * dumped-lisp.el (preloaded-file-list): diff -r 55aea5392882 -r 627e25731054 lisp/buffer.el --- a/lisp/buffer.el Tue Feb 15 22:51:39 2005 +0000 +++ b/lisp/buffer.el Wed Feb 16 11:07:30 2005 +0000 @@ -71,7 +71,12 @@ another window even if BUFNAME is already visible in the selected window. If optional third arg is non-nil, it is the frame to pop to this buffer on. -If `focus-follows-mouse' is non-nil, keyboard focus is left unchanged." +If `focus-follows-mouse' is non-nil, keyboard focus is left unchanged. + +Buffers with names that are members of the `same-window-buffer-names' +list, or that match an element of the `same-window-regexps' list are +treated specially by this function--they are always selected in the +same window rather than in a different one." ;; #ifdef I18N3 ;; #### Doc string should indicate that the buffer name will get ;; translated. diff -r 55aea5392882 -r 627e25731054 lisp/window-xemacs.el --- a/lisp/window-xemacs.el Tue Feb 15 22:51:39 2005 +0000 +++ b/lisp/window-xemacs.el Wed Feb 16 11:07:30 2005 +0000 @@ -701,6 +701,10 @@ If `pop-up-frames' is non-nil, make a new frame if no window shows BUFFER. +If the buffer name is a member of the `same-window-buffer-names' list, +or matches one of the `same-window-regexps' expressions, display the +buffer in the currently selected window. + Returns the window displaying BUFFER." (interactive "BDisplay buffer:\nP")