[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: Tue, 27 Feb 2007 02:38:44 -0500

    *** 739,744 ****
    --- 739,745 ----
        (use-local-map occur-mode-map)
        (setq major-mode 'occur-mode)
        (setq mode-name "Occur")
    +   (setq buffer-undo-list t) ; Don't record undo information.
        (set (make-local-variable 'revert-buffer-function) 
        (make-local-variable 'occur-revert-arguments)
        (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)

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.

reply via email to

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