emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/buffer.c


From: Luc Teirlinck
Subject: [Emacs-diffs] Changes to emacs/src/buffer.c
Date: Sat, 10 Jul 2004 22:38:48 -0400

Index: emacs/src/buffer.c
diff -c emacs/src/buffer.c:1.458 emacs/src/buffer.c:1.459
*** emacs/src/buffer.c:1.458    Mon Jun 21 03:20:20 2004
--- emacs/src/buffer.c  Sun Jul 11 02:36:00 2004
***************
*** 1664,1672 ****
  
  DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, 
"BSwitch to buffer: ",
         doc: /* Select buffer BUFFER in the current window.
! BUFFER may be a buffer or a buffer name.
  Optional second arg NORECORD non-nil means
  do not put this buffer at the front of the list of recently selected ones.
  
  WARNING: This is NOT the way to work on another buffer temporarily
  within a Lisp program!  Use `set-buffer' instead.  That avoids messing with
--- 1664,1678 ----
  
  DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, 
"BSwitch to buffer: ",
         doc: /* Select buffer BUFFER in the current window.
! If BUFFER does not identify an existing buffer,
! then this function creates a buffer with that name.
! 
! When called from Lisp, BUFFER may be a buffer, a string \(a buffer name),
! or nil.  If BUFFER is nil, then this function chooses a buffer
! using `other-buffer'.
  Optional second arg NORECORD non-nil means
  do not put this buffer at the front of the list of recently selected ones.
+ This function returns the buffer it switched to.
  
  WARNING: This is NOT the way to work on another buffer temporarily
  within a Lisp program!  Use `set-buffer' instead.  That avoids messing with
***************
*** 1689,1699 ****
  
  DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 3, 0,
         doc: /* Select buffer BUFFER in some window, preferably a different 
one.
! If BUFFER is nil, then some other buffer is chosen.
  If `pop-up-windows' is non-nil, windows can be split to do this.
  If optional second arg OTHER-WINDOW is non-nil, insist on finding another
  window even if BUFFER is already visible in the selected window,
  and ignore `same-window-regexps' and `same-window-buffer-names'.
  This uses the function `display-buffer' as a subroutine; see the documentation
  of `display-buffer' for additional customization information.
  
--- 1695,1709 ----
  
  DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 3, 0,
         doc: /* Select buffer BUFFER in some window, preferably a different 
one.
! BUFFER may be a buffer, a string \(a buffer name), or nil.
! If BUFFER is a string which is not the name of an existing buffer,
! then this function creates a buffer with that name.
! If BUFFER is nil, then it chooses some other buffer.
  If `pop-up-windows' is non-nil, windows can be split to do this.
  If optional second arg OTHER-WINDOW is non-nil, insist on finding another
  window even if BUFFER is already visible in the selected window,
  and ignore `same-window-regexps' and `same-window-buffer-names'.
+ This function returns the buffer it switched to.
  This uses the function `display-buffer' as a subroutine; see the documentation
  of `display-buffer' for additional customization information.
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]