1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
emacs/etc
Mattias Engdegård e9f9827eb0 Avoid polling in global-auto-revert-mode (bug#35418)
Make `auto-revert-avoid-polling' have effect in global-auto-revert-mode.
Buffers actually handled by that mode are marked with a non-nil value
of `auto-revert--global-mode'.  When global-auto-revert-mode is
entered, eligible buffers are marked in that way, and hooks are set up
to mark new buffers and take care of buffers whose file names change.
This way the existing poll-avoidance logic can be used, since the
entire set of buffers in auto-revert is known.

A new hook, `after-set-visited-file-name-hook', was added to handle
the case when the file name of a tracked buffer changes.

* lisp/autorevert.el (auto-revert-avoid-polling): Amend doc string.
(auto-revert--global-mode): New buffer-local variable.
(global-auto-revert-mode): Mark existing buffers and set up hooks when
mode is entered; do the opposite when exited.
(auto-revert--global-add-current-buffer)
(auto-revert--global-adopt-current-buffer)
(auto-revert--set-visited-file-name-advice): New functions.
(auto-revert--polled-buffers, auto-revert--need-polling-p)
(auto-revert-notify-handler)
(auto-revert-active-p): Modify logic to cover global-auto-revert-mode.
* lisp/files.el (after-set-visited-file-name-hook): New hook.
(set-visited-file-name-hook): Call new hook.
* test/lisp/autorevert-tests.el (top):  Use lexical-binding.
(auto-revert-test--write-file, auto-revert-test--buffer-string)
(auto-revert-test--wait-for, auto-revert-test--wait-for-buffer-text)
(auto-revert-test05-global-notify): New test.
* doc/lispref/hooks.texi (Standard Hooks):
Mention new hook (in a comment, since it's unclear whether it should
actually be documented here)
* etc/NEWS (Changes in Specialized Modes and Packages): Update entry.
2019-05-20 11:26:51 +02:00
..
charsets Update copyright year to 2019 2019-01-01 01:01:13 +00:00
e
forms Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus
images Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nxml
org Update copyright year to 2019 2019-01-01 01:01:13 +00:00
refcards Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
schema Update copyright year to 2019 2019-01-01 01:01:13 +00:00
srecode Update copyright year to 2019 2019-01-01 01:01:13 +00:00
themes Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tutorials Fixes for "Maintainer:" and related lines 2019-05-19 21:34:27 -07:00
AUTHORS * etc/AUTHORS: Update. 2019-04-11 21:57:49 +02:00
CALC-NEWS ; * etc/CALC-NEWS: Update header for 2015/11 maintainer change. 2019-03-05 22:37:21 -08:00
ChangeLog.1 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
compilation.txt Update copyright year to 2019 2019-01-01 01:01:13 +00:00
COPYING
DEBUG Improve UBSan discussion in etc/DEBUG 2019-04-22 17:26:25 -07:00
DEVEL.HUMOR
DISTRIB Update copyright year to 2019 2019-01-01 01:01:13 +00:00
edt-user.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
emacs-buffer.gdb Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
emacs.appdata.xml Update copyright year to 2019 2019-01-01 01:01:13 +00:00
emacs.desktop
emacs.icon
emacs.service Notify systemd in daemon-initialized and kill-emacs (Bug#31498) 2018-07-25 21:07:03 -04:00
enriched.txt Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ERC-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ETAGS.EBNF Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ETAGS.README Update copyright year to 2019 2019-01-01 01:01:13 +00:00
future-bug
gnus-tut.txt Update copyright year to 2019 2019-01-01 01:01:13 +00:00
grep.txt Update copyright year to 2019 2019-01-01 01:01:13 +00:00
HELLO Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
HISTORY * etc/HISTORY: Update for Emacs 26.2 release. 2019-04-11 21:59:28 +02:00
JOKES
MACHINES Update copyright year to 2019 2019-01-01 01:01:13 +00:00
MH-E-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS Avoid polling in global-auto-revert-mode (bug#35418) 2019-05-20 11:26:51 +02:00
NEWS.1-17 * lisp/help-fns.el (help-fns-describe-variable-functions): New hook 2019-04-12 12:37:00 -04:00
NEWS.18 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
NEWS.19 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
NEWS.20 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
NEWS.21 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.22 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.23 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.24 * etc/NEWS.24: Belatedly announce delete-consecutive-dups. 2019-05-01 22:17:10 -04:00
NEWS.25 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.26 Merge from origin/emacs-26 2019-04-21 07:51:38 -07:00
NEXTSTEP Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NXML-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ORG-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
package-keyring.gpg * etc/package-keyring.gpg: Add the 2019 key 2019-04-23 16:36:59 -04:00
PROBLEMS Merge from origin/emacs-26 2019-02-08 09:20:40 -08:00
ps-prin0.ps Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ps-prin1.ps Update copyright year to 2019 2019-01-01 01:01:13 +00:00
publicsuffix.txt
README Update copyright year to 2019 2019-01-01 01:01:13 +00:00
rgb.txt
ses-example.ses Update copyright year to 2019 2019-01-01 01:01:13 +00:00
spook.lines
TERMS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
TODO * lisp/progmodes/flymake.el: Rename flymake-start-on-newline (bug#34294) 2019-05-05 23:05:01 +03:00
yow.lines

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2019 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)