diff options
| author | Richard M. Stallman | 1997-01-05 02:53:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-01-05 02:53:57 +0000 |
| commit | 6d12711f447dbbff81212b06809b6b0dd5e655d6 (patch) | |
| tree | a58640c6307e55669684613379eb889634e19e94 /src/buffer.c | |
| parent | f75104b2565477bca6b25720cb2f9ee13274ab6a (diff) | |
| download | emacs-6d12711f447dbbff81212b06809b6b0dd5e655d6.tar.gz emacs-6d12711f447dbbff81212b06809b6b0dd5e655d6.zip | |
(Fpop_to_buffer): New arg NORECORD.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 14 |
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.") | |||
| 1238 | : selected_window, | 1238 | : selected_window, |
| 1239 | buf); | 1239 | buf); |
| 1240 | 1240 | ||
| 1241 | return buf; | 1241 | 3eturn buf; |
| 1242 | } | 1242 | } |
| 1243 | 1243 | ||
| 1244 | DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 2, 0, | 1244 | 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\ | |||
| 1248 | If optional second arg OTHER-WINDOW is non-nil, insist on finding another\n\ | 1248 | If optional second arg OTHER-WINDOW is non-nil, insist on finding another\n\ |
| 1249 | window even if BUFFER is already visible in the selected window.\n\ | 1249 | window even if BUFFER is already visible in the selected window.\n\ |
| 1250 | This uses the function `display-buffer' as a subroutine; see the documentation\n\ | 1250 | This uses the function `display-buffer' as a subroutine; see the documentation\n\ |
| 1251 | of `display-buffer' for additional customization information.") | 1251 | of `display-buffer' for additional customization information.\n\ |
| 1252 | (buffer, other_window) | 1252 | \n\ |
| 1253 | Lisp_Object buffer, other_window; | 1253 | Optional third arg NORECORD non-nil means\n\ |
| 1254 | do not put this buffer at the front of the list of recently selected ones.") | ||
| 1255 | (buffer, other_window, norecord) | ||
| 1256 | Lisp_Object buffer, other_window, norecord; | ||
| 1254 | { | 1257 | { |
| 1255 | register Lisp_Object buf; | 1258 | register Lisp_Object buf; |
| 1256 | if (NILP (buffer)) | 1259 | if (NILP (buffer)) |
| @@ -1265,7 +1268,8 @@ of `display-buffer' for additional customization information.") | |||
| 1265 | } | 1268 | } |
| 1266 | } | 1269 | } |
| 1267 | Fset_buffer (buf); | 1270 | Fset_buffer (buf); |
| 1268 | record_buffer (buf); | 1271 | if (NILP (norecord)) |
| 1272 | record_buffer (buf); | ||
| 1269 | Fselect_window (Fdisplay_buffer (buf, other_window)); | 1273 | Fselect_window (Fdisplay_buffer (buf, other_window)); |
| 1270 | return buf; | 1274 | return buf; |
| 1271 | } | 1275 | } |