diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-09-01 13:30:55 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-09-01 13:30:55 +0000 |
commit | 8c707380550b47e17b41f100f179d3d6b7338ca0 (patch) | |
tree | 6cbcfaf2837de38c8fd82a2abf465c788ef6675c /lisp/imenu.el | |
parent | eddc765847f3fa6e29b7edce26a56b008b74595c (diff) | |
download | emacs-8c707380550b47e17b41f100f179d3d6b7338ca0.tar.gz |
* imenu.el (imenu-update-menubar): Use buffer-chars-modified-tick.
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r-- | lisp/imenu.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el index d9c75c5fdd4..ed190c24e12 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -967,15 +967,15 @@ A trivial interface to `imenu-add-to-menubar' suitable for use in a hook." (defvar imenu-buffer-menubar nil) (defvar imenu-menubar-modified-tick 0 - "The value of (buffer-modified-tick) as of last call to `imenu-update-menubar'.") + "The value of (buffer-chars-modified-tick) as of the last call +to `imenu-update-menubar'.") (make-variable-buffer-local 'imenu-menubar-modified-tick) (defun imenu-update-menubar () (when (and (current-local-map) (keymapp (lookup-key (current-local-map) [menu-bar index])) - (not (eq (buffer-modified-tick) - imenu-menubar-modified-tick))) - (setq imenu-menubar-modified-tick (buffer-modified-tick)) + (/= (buffer-chars-modified-tick) imenu-menubar-modified-tick)) + (setq imenu-menubar-modified-tick (buffer-chars-modified-tick)) (let ((index-alist (imenu--make-index-alist t))) ;; Don't bother updating if the index-alist has not changed ;; since the last time we did it. |