[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: Tue, 27 Feb 2007 10:49:03 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> This is not correct, because it seems to leave buffer-undo-list
> permanently set to t.  That prevents undoing of changes made by hand
> by the user.

Locally binding `buffer-undo-list' around the `erase-buffer' in
`occur-1' is trivial.  But `occur-mode' has this

  (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)

which means I would have to bind `buffer-undo-list' whenever I change
the major-mode for this buffer.  Locally bind `buffer-undo-list' around
`kill-all-local-variables' in `occur-mode'?

reply via email to

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