emacs-devel
[Top][All Lists]
Advanced

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

Is buffer-flush-undo obsolete?


From: Lute Kamstra
Subject: Is buffer-flush-undo obsolete?
Date: Wed, 02 Feb 2005 12:35:22 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

The docstring and the Elisp Manual contradict.

,----[ C-h f buffer-flush-undo RET ]
| buffer-flush-undo is an alias for `buffer-disable-undo' in `subr'.
| (buffer-flush-undo &optional BUFFER)
| 
| This function is obsolete since before 19.15;
| use `buffer-disable-undo' instead.
| 
| Make BUFFER stop keeping undo information.
| No argument or nil as argument means do this for the current buffer.
`----

,----[ Elisp Manual; Maintaining Undo Lists ]
|  -- Command: buffer-disable-undo &optional buffer-or-name
|  -- Command: buffer-flush-undo &optional buffer-or-name
|      This function discards the undo list of BUFFER-OR-NAME, and
|      disables further recording of undo information.  As a result, it
|      is no longer possible to undo either previous changes or any
|      subsequent changes.  If the undo list of BUFFER-OR-NAME is already
|      disabled, this function has no effect.
| 
|      This function returns `nil'.
| 
|      The name `buffer-flush-undo' is not considered obsolete, but the
|      preferred name is `buffer-disable-undo'.
`----


Lute.




reply via email to

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