[Top][All Lists]

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

Re: undo-information kept for *occur*

From: Richard Stallman
Subject: Re: undo-information kept for *occur*
Date: Mon, 26 Feb 2007 03:47:23 -0500

    > I use "occur" on big (> 100 MB) text-files quite often. While doing the 
    > very nice filtering, emacs regularly, but not always, output a message 
    > about the undo-information that prompts me to give it a yes or no 
    > aswear. I cannot exactly remember the wording, but yes means "yes, go 
    > along and drop the ability to undo the changes in the *occur* buffer".
    > Could this kind of behaviour be avoided? I can see no occasion when I 
    > would like to undo in an *occur*-buffer.

Emacs turns off undo data generation while computing the *occur* buffer:

    (defun occur-engine (regexp buffers out-buf nlines case-fold-search
                                title-face prefix-face match-face keep-props)
      (with-current-buffer out-buf
        (let ((globalcount 0)
              ;; Don't generate undo entries for creation of the initial 
              (buffer-undo-list t)
              (coding nil))

So why does it build up a lot of undo records?

reply via email to

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