User: aidan
Date: 05/02/16 12:07:36
Modified: xemacs/lisp ChangeLog buffer.el window-xemacs.el
Log:
Document use of `same-window-buffer-names,' `same-window-regexps'
by pop-to-buffer and display-buffer. Cf. 16914.49053.99642.919278(a)gargle.gargle.HOWL .
Revision Changes Path
1.640 +7 -0 XEmacs/xemacs/lisp/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/ChangeLog,v
retrieving revision 1.639
retrieving revision 1.640
diff -u -r1.639 -r1.640
--- ChangeLog 2005/02/10 03:26:14 1.639
+++ ChangeLog 2005/02/16 11:07:29 1.640
@@ -1,3 +1,10 @@
+2005-02-16 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * 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 <ben(a)xemacs.org>
* dumped-lisp.el (preloaded-file-list):
1.5 +6 -1 XEmacs/xemacs/lisp/buffer.el
Index: buffer.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/buffer.el,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- buffer.el 2001/04/12 18:21:11 1.4
+++ buffer.el 2005/02/16 11:07:30 1.5
@@ -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.
1.21 +4 -0 XEmacs/xemacs/lisp/window-xemacs.el
Index: window-xemacs.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/window-xemacs.el,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- window-xemacs.el 2004/08/21 17:05:51 1.20
+++ window-xemacs.el 2005/02/16 11:07:30 1.21
@@ -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")
Show replies by date