Mercurial > emacs
comparison lispref/buffers.texi @ 13229:909eb45b146d
Minor fixes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 16 Oct 1995 01:05:10 +0000 |
parents | a6eb5f12b0f3 |
children | 750f4d22537f |
comparison
equal
deleted
inserted
replaced
13228:a4a1d7df2e7f | 13229:909eb45b146d |
---|---|
250 @end defun | 250 @end defun |
251 | 251 |
252 @deffn Command rename-buffer newname &optional unique | 252 @deffn Command rename-buffer newname &optional unique |
253 This function renames the current buffer to @var{newname}. An error | 253 This function renames the current buffer to @var{newname}. An error |
254 is signaled if @var{newname} is not a string, or if there is already a | 254 is signaled if @var{newname} is not a string, or if there is already a |
255 buffer with that name. The function returns @code{nil}. | 255 buffer with that name. The function returns @var{newname}. |
256 | 256 |
257 @c Emacs 19 feature | 257 @c Emacs 19 feature |
258 Ordinarily, @code{rename-buffer} signals an error if @var{newname} is | 258 Ordinarily, @code{rename-buffer} signals an error if @var{newname} is |
259 already in use. However, if @var{unique} is non-@code{nil}, it modifies | 259 already in use. However, if @var{unique} is non-@code{nil}, it modifies |
260 @var{newname} to make a name that is not in use. Interactively, you can | 260 @var{newname} to make a name that is not in use. Interactively, you can |
454 @end group | 454 @end group |
455 @end example | 455 @end example |
456 @end defun | 456 @end defun |
457 | 457 |
458 @deffn Command not-modified | 458 @deffn Command not-modified |
459 This command marks the current buffer as unmodified, and not needing | 459 This command marks the current buffer as unmodified, and not needing to |
460 to be saved. Don't use this function in programs, since it prints a | 460 be saved. With prefix arg, it marks the buffer as modified, so that it |
461 message in the echo area; use @code{set-buffer-modified-p} (above) instead. | 461 will be saved at the next suitable occasion. |
462 | |
463 Don't use this function in programs, since it prints a message in the | |
464 echo area; use @code{set-buffer-modified-p} (above) instead. | |
462 @end deffn | 465 @end deffn |
463 | 466 |
464 @c Emacs 19 feature | 467 @c Emacs 19 feature |
465 @defun buffer-modified-tick &optional buffer | 468 @defun buffer-modified-tick &optional buffer |
466 This function returns @var{buffer}`s modification-count. This is a | 469 This function returns @var{buffer}'s modification-count. This is a |
467 counter that increments every time the buffer is modified. If | 470 counter that increments every time the buffer is modified. If |
468 @var{buffer} is @code{nil} (or omitted), the current buffer is used. | 471 @var{buffer} is @code{nil} (or omitted), the current buffer is used. |
469 @end defun | 472 @end defun |
470 | 473 |
471 @node Modification Time | 474 @node Modification Time |
793 @end group | 796 @end group |
794 @end example | 797 @end example |
795 | 798 |
796 @deffn Command kill-buffer buffer-or-name | 799 @deffn Command kill-buffer buffer-or-name |
797 This function kills the buffer @var{buffer-or-name}, freeing all its | 800 This function kills the buffer @var{buffer-or-name}, freeing all its |
798 memory for use as space for other buffers. (Emacs version 18 and older | 801 memory for other uses or to be returned to the operating system. It |
799 was unable to return the memory to the operating system.) It returns | 802 returns @code{nil}. |
800 @code{nil}. | |
801 | 803 |
802 Any processes that have this buffer as the @code{process-buffer} are | 804 Any processes that have this buffer as the @code{process-buffer} are |
803 sent the @code{SIGHUP} signal, which normally causes them to terminate. | 805 sent the @code{SIGHUP} signal, which normally causes them to terminate. |
804 (The basic meaning of @code{SIGHUP} is that a dialup line has been | 806 (The basic meaning of @code{SIGHUP} is that a dialup line has been |
805 disconnected.) @xref{Deleting Processes}. | 807 disconnected.) @xref{Deleting Processes}. |