diff options
| author | Leo Liu | 2011-09-19 14:57:55 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-09-19 14:57:55 -0400 |
| commit | 08d355e3eb01f875e64828e5eabea56f874567f1 (patch) | |
| tree | e73303615340d9c30d0717d03a752049a95da6a2 | |
| parent | f01da43fd209ccf6bfa794c304b7926170ef54f0 (diff) | |
| download | emacs-08d355e3eb01f875e64828e5eabea56f874567f1.tar.gz emacs-08d355e3eb01f875e64828e5eabea56f874567f1.zip | |
Fixes for Occur Edit mode.
* replace.el (occur-revert-arguments): Make it permanent-local.
(occur-mode): Don't call font-lock-defontify.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/replace.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dcc91e9572a..54b8e1ff7a2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-09-19 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * replace.el (occur-revert-arguments): Make it permanent-local. | ||
| 4 | (occur-mode): Don't call font-lock-defontify. | ||
| 5 | |||
| 1 | 2011-09-19 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-09-19 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * net/ldap.el (ldap-search-internal): Don't push empty search | 8 | * net/ldap.el (ldap-search-internal): Don't push empty search |
diff --git a/lisp/replace.el b/lisp/replace.el index 455e1a511e8..bf6425f4099 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -826,6 +826,8 @@ a previously found match." | |||
| 826 | (defvar occur-revert-arguments nil | 826 | (defvar occur-revert-arguments nil |
| 827 | "Arguments to pass to `occur-1' to revert an Occur mode buffer. | 827 | "Arguments to pass to `occur-1' to revert an Occur mode buffer. |
| 828 | See `occur-revert-function'.") | 828 | See `occur-revert-function'.") |
| 829 | (make-variable-buffer-local 'occur-revert-arguments) | ||
| 830 | (put 'occur-revert-arguments 'permanent-local t) | ||
| 829 | 831 | ||
| 830 | (defcustom occur-mode-hook '(turn-on-font-lock) | 832 | (defcustom occur-mode-hook '(turn-on-font-lock) |
| 831 | "Hook run when entering Occur mode." | 833 | "Hook run when entering Occur mode." |
| @@ -853,8 +855,6 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it. | |||
| 853 | 855 | ||
| 854 | \\{occur-mode-map}" | 856 | \\{occur-mode-map}" |
| 855 | (set (make-local-variable 'revert-buffer-function) 'occur-revert-function) | 857 | (set (make-local-variable 'revert-buffer-function) 'occur-revert-function) |
| 856 | (make-local-variable 'occur-revert-arguments) | ||
| 857 | (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) | ||
| 858 | (setq next-error-function 'occur-next-error)) | 858 | (setq next-error-function 'occur-next-error)) |
| 859 | 859 | ||
| 860 | 860 | ||
| @@ -876,7 +876,7 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it. | |||
| 876 | In this mode, changes to the *Occur* buffer are also applied to | 876 | In this mode, changes to the *Occur* buffer are also applied to |
| 877 | the originating buffer. | 877 | the originating buffer. |
| 878 | 878 | ||
| 879 | To return to ordinary Occur mode, use \\[occur-mode]." | 879 | To return to ordinary Occur mode, use \\[occur-cease-edit]." |
| 880 | (setq buffer-read-only nil) | 880 | (setq buffer-read-only nil) |
| 881 | (add-hook 'after-change-functions 'occur-after-change-function nil t) | 881 | (add-hook 'after-change-functions 'occur-after-change-function nil t) |
| 882 | (message (substitute-command-keys | 882 | (message (substitute-command-keys |