[Top][All Lists]

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

Re: undo-information kept for *occur*

From: martin rudalics
Subject: Re: undo-information kept for *occur*
Date: Mon, 26 Feb 2007 11:29:29 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> 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 contents.
>          (buffer-undo-list t)
>          (coding nil))
>          ...
> So why does it build up a lot of undo records?

I think most of them come from `erase-buffer' in `occur-1' (`occur-mode'
sets `buffer-undo-list' to nil).  `font-lock-defontify' should add some

reply via email to

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