emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redisplay: NS port, high CPU load


From: David Reitter
Subject: Re: Redisplay: NS port, high CPU load
Date: Thu, 9 Jun 2016 06:12:39 +1000

On Jun 9, 2016, at 5:55 AM, Alan Third <address@hidden> wrote:

> Does the Aquamacs toolbar use different images or something, or is it
> identical to the GNU Emacs one?

No it uses different images and provides a different set of commands.

The offending item seems to be revert-buffer.  Indeed, if in disabled state, 
updates go on and on.  As soon as you modify the buffer, it’s enabled, and 
updates stop.  Here’s the entry from tool-bar-map:

(revert-buffer menu-item "Revert Buffer" revert-buffer :enable
                (or
                 (not
                  (eq revert-buffer-function 'revert-buffer--default))
                 (not
                  (eq revert-buffer-insert-file-contents-function 
'revert-buffer-insert-file-contents--default-function))
                 (and buffer-file-number
                      (or
                       (and buffer-file-name
                            (file-remote-p buffer-file-name))
                       (buffer-modified-p)
                       (not
                        (verify-visited-file-modtime
                         (current-buffer))))))
                :help "Re-read current buffer from its file" :image
                (image :type png :file 
"/Users/dr/emacs/nextstep/Aquamacs.app/Contents/Resources/etc/images/update.tiff"
 :background "grey" :mask heuristic)
                :label "Revert")




reply via email to

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