summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-01-05 02:53:57 +0000
committerRichard M. Stallman <rms@gnu.org>1997-01-05 02:53:57 +0000
commit4727b92e013f81694c77c0783eae07408edb8bd2 (patch)
tree625ade3b295f63ae4b65510fb657a3ad82932b99
parent05726a76212e661f08048bd32bf9255aee9c9d05 (diff)
downloademacs-4727b92e013f81694c77c0783eae07408edb8bd2.tar.gz
(Fpop_to_buffer): New arg NORECORD.
-rw-r--r--src/buffer.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2d0e279cff8..b52c990bc40 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1238,7 +1238,7 @@ the window-buffer correspondences.")
: selected_window,
buf);
- return buf;
+ 3eturn buf;
}
DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 2, 0,
@@ -1248,9 +1248,12 @@ If `pop-up-windows' is non-nil, windows can be split to do this.\n\
If optional second arg OTHER-WINDOW is non-nil, insist on finding another\n\
window even if BUFFER is already visible in the selected window.\n\
This uses the function `display-buffer' as a subroutine; see the documentation\n\
-of `display-buffer' for additional customization information.")
- (buffer, other_window)
- Lisp_Object buffer, other_window;
+of `display-buffer' for additional customization information.\n\
+\n\
+Optional third arg NORECORD non-nil means\n\
+do not put this buffer at the front of the list of recently selected ones.")
+ (buffer, other_window, norecord)
+ Lisp_Object buffer, other_window, norecord;
{
register Lisp_Object buf;
if (NILP (buffer))
@@ -1265,7 +1268,8 @@ of `display-buffer' for additional customization information.")
}
}
Fset_buffer (buf);
- record_buffer (buf);
+ if (NILP (norecord))
+ record_buffer (buf);
Fselect_window (Fdisplay_buffer (buf, other_window));
return buf;
}