emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: [T. V. Raman] read-only modes should be using buffer-disable-undo?


From: T. V. Raman
Subject: Re: [T. V. Raman] read-only modes should be using buffer-disable-undo?
Date: Sat, 22 Jan 2005 07:40:21 -0800

most of what you say is valid; incidentally I do use wdired in dired
mode for renaming files en-masse. However, the original point still
remains; modes like Man-mode etc should not be enabling undo -- at
least while they are are madlly running around the buffer doing search
and replace tasks to format the content. Let's focus on that ---
rather than get caught up in "is undo useful" -- there is no argument
there, undo is useful.>>>>> "Luc" == Luc Teirlinck <address@hidden> writes:

    Luc> T. V. Raman wrote: I wasn't refering to the optimization with
    Luc> respect to grouping small chunks of output; rather, I was
    Luc> indicating that perhaps we could avoid having undo
    Luc> information altogether in read-only modes like man-mode.

    Luc> On the one hand, there probably are many read-only modes that
    Luc> only enable undo because it is enabled by default and the
    Luc> author just forgot to disable it.  Clearly, we should fix
    Luc> those if we find them.  On the other hand, undo is not
    Luc> necessarily useless in read-only buffers, because they can be
    Luc> made writable with C-x C-q.  Dired even provides
    Luc> functionality to use the undo info without having to do C-x
    Luc> C-q.

    Luc> For instance is undo info in the Buffer Menu useless?  That
    Luc> is not obvious.  It certainly is not as useful as in writable
    Luc> buffers.  But suppose for instance that you delete a buffer
    Luc> in the Buffer Menu with `d' and `x'.  You then realize that
    Luc> you probably inadvertently deleted the wrong buffer.  You can
    Luc> do C-x C-q and then undo.  This will not bring the buffer
    Luc> back automatically, but you can see which buffer you deleted.
    Luc> You can then do `g' to update the Buffer Menu again.  The
    Luc> entire procedure even works if you auto revert the Buffer
    Luc> Menu (in the CVS version), because deleting a buffer with d
    Luc> and x marks the buffer modified, protecting it from further
    Luc> reverts until the user reverts it by hand.

    Luc> Sincerely,

    Luc> Luc.

-- 
Best Regards,
--raman

      
Email:  address@hidden
WWW:    http://emacspeak.sf.net/raman/
AIM:    TVRaman
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc




reply via email to

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