+2011-09-19 Leo Liu <sdl.web@gmail.com>
+
+ * replace.el (occur-revert-arguments): Make it permanent-local.
+ (occur-mode): Don't call font-lock-defontify.
+
2011-09-19 Chong Yidong <cyd@stupidchicken.com>
* net/ldap.el (ldap-search-internal): Don't push empty search
(defvar occur-revert-arguments nil
"Arguments to pass to `occur-1' to revert an Occur mode buffer.
See `occur-revert-function'.")
+(make-variable-buffer-local 'occur-revert-arguments)
+(put 'occur-revert-arguments 'permanent-local t)
(defcustom occur-mode-hook '(turn-on-font-lock)
"Hook run when entering Occur mode."
\\{occur-mode-map}"
(set (make-local-variable 'revert-buffer-function) 'occur-revert-function)
- (make-local-variable 'occur-revert-arguments)
- (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)
(setq next-error-function 'occur-next-error))
\f
In this mode, changes to the *Occur* buffer are also applied to
the originating buffer.
-To return to ordinary Occur mode, use \\[occur-mode]."
+To return to ordinary Occur mode, use \\[occur-cease-edit]."
(setq buffer-read-only nil)
(add-hook 'after-change-functions 'occur-after-change-function nil t)
(message (substitute-command-keys