unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Is buffer-flush-undo obsolete?
@ 2005-02-02 11:35 Lute Kamstra
  2005-02-03 19:13 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Lute Kamstra @ 2005-02-02 11:35 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is buffer-flush-undo obsolete?
  2005-02-02 11:35 Is buffer-flush-undo obsolete? Lute Kamstra
@ 2005-02-03 19:13 ` Richard Stallman
  2005-02-03 20:12   ` Lute Kamstra
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2005-02-03 19:13 UTC (permalink / raw)
  Cc: emacs-devel

Yes it is.  Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is buffer-flush-undo obsolete?
  2005-02-03 19:13 ` Richard Stallman
@ 2005-02-03 20:12   ` Lute Kamstra
  2005-02-05 17:39     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Lute Kamstra @ 2005-02-03 20:12 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Yes it is.  Thanks.

Shall I just remove the reference to buffer-flush-undo, like this?


*** lispref/text.texi	3 Feb 2005 07:09:17 -0000	1.91
--- lispref/text.texi	3 Feb 2005 19:58:49 -0000
***************
*** 1,7 ****
  @c -*-texinfo-*-
  @c This is part of the GNU Emacs Lisp Reference Manual.
  @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999,
! @c 2000, 2001, 2004
  @c   Free Software Foundation, Inc.
  @c See the file elisp.texi for copying conditions.
  @setfilename ../info/text
--- 1,7 ----
  @c -*-texinfo-*-
  @c This is part of the GNU Emacs Lisp Reference Manual.
  @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999,
! @c 2000, 2001, 2004, 2005
  @c   Free Software Foundation, Inc.
  @c See the file elisp.texi for copying conditions.
  @setfilename ../info/text
***************
*** 1305,1311 ****
  @end deffn
  
  @deffn Command buffer-disable-undo &optional buffer-or-name
- @deffnx Command buffer-flush-undo &optional buffer-or-name
  @cindex disable undo
  This function discards the undo list of @var{buffer-or-name}, and disables
  further recording of undo information.  As a result, it is no longer
--- 1305,1310 ----
***************
*** 1314,1322 ****
  has no effect.
  
  This function returns @code{nil}.
- 
- The name @code{buffer-flush-undo} is not considered obsolete, but the
- preferred name is @code{buffer-disable-undo}.
  @end deffn
  
    As editing continues, undo lists get longer and longer.  To prevent
--- 1313,1318 ----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Is buffer-flush-undo obsolete?
  2005-02-03 20:12   ` Lute Kamstra
@ 2005-02-05 17:39     ` Richard Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2005-02-05 17:39 UTC (permalink / raw)
  Cc: emacs-devel

    Shall I just remove the reference to buffer-flush-undo, like this?

Yes.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-05 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-02 11:35 Is buffer-flush-undo obsolete? Lute Kamstra
2005-02-03 19:13 ` Richard Stallman
2005-02-03 20:12   ` Lute Kamstra
2005-02-05 17:39     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).