diff options
author | Mauro Aranda <maurooaranda@gmail.com> | 2020-09-20 01:04:39 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-09-20 01:04:39 +0200 |
commit | 1278a9a907e59b22d8e20a806055c7cb92959017 (patch) | |
tree | 38f476a3a267e5af87fd8f03fb6e416d07842f13 /lisp/emacs-lisp/cursor-sensor.el | |
parent | 4d184fb07f543d96c0a3a40480a0d8b86c472931 (diff) | |
download | emacs-1278a9a907e59b22d8e20a806055c7cb92959017.tar.gz emacs-1278a9a907e59b22d8e20a806055c7cb92959017.tar.bz2 emacs-1278a9a907e59b22d8e20a806055c7cb92959017.zip |
New command: revert-buffer-with-fine-grain
* doc/emacs/files.texi (Reverting): Document the new command and the
new variable.
* etc/NEWS: Mention the new command and the new variable.
* lisp/files.el (revert-buffer-with-fine-grain): New command. Revert
a buffer trying to be non-destructive, by using replace-buffer-contents.
(revert-buffer-insert-file-contents-delicately): New function, alternative
to revert-buffer-insert-file-contents-function--default-function.
(revert-buffer-with-fine-grain-max-seconds): New variable. Passed as
argument MAX-SECS of replace-buffer-contents.
* test/lisp/files-tests.el (files-tests-lao files-tests-tzu): Helper
variables, taken from diffutils manual, to test reverting a buffer.
(files-tests-revert-buffer)
(files-tests-revert-buffer-with-fine-grain): New tests (bug#18).
Diffstat (limited to 'lisp/emacs-lisp/cursor-sensor.el')
0 files changed, 0 insertions, 0 deletions