aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichal Nazarewicz2013-06-30 18:29:23 -0400
committerStefan Monnier2013-06-30 18:29:23 -0400
commitef099a941f7fb2d74ce1768388463f18b284f9c5 (patch)
tree1573bfacf90fc940c297c5428c132e9e65318716 /etc
parent6d89e343ab402851d94e37b2ca79a67e4c6fb474 (diff)
downloademacs-ef099a941f7fb2d74ce1768388463f18b284f9c5.tar.gz
emacs-ef099a941f7fb2d74ce1768388463f18b284f9c5.zip
Add `remember-notes' function to store random notes across Emacs
restarts. * remember.el (remember-data-file): Add :set callback to affect notes buffer (if any). (remember-notes): New command. (remember-notes-buffer-name, bury-remember-notes-on-kill): New defcustoms for the `remember-notes' function. (remember-notes-save-and-bury-buffer): New command. (remember-notes-mode-map): New variable. (remember-mode): New minor mode. (remember-notes--kill-buffer-query): New function. * lisp/startup.el (initial-buffer-choice): Add notes to custom type. * src/buffer.c (FKill_buffer): Run `kill-buffer-query-functions' before checking whether buffer is modified. This lets `kill-buffer-query-functions' cancel killing of the buffer or save its content before `kill-buffer' asks user the "Buffer %s modified; kill anyway?" question. * remember.el (remember-append-to-file): Don't mix `find-buffer-visiting' and `get-file-buffer'. * lisp/files.el (find-file-noselect): Simplify conditional expression.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index c8bf903c579..3a8ef2314a8 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -90,6 +90,14 @@ simply disabling Transient Mark mode does the same thing.
90** `initial-buffer-choice' can now specify a function to set up the 90** `initial-buffer-choice' can now specify a function to set up the
91initial buffer. 91initial buffer.
92 92
93** `remember-notes' creates a buffer whose content is saved on kill-emacs.
94You may think of it as a *scratch* buffer whose content is preserved.
95In fact, it was designed as a replacement for *scratch* buffer and can
96be used that way by setting `initial-buffer-choice' to `remember-notes'
97and `remember-notes-buffer-name' to "*scratch*". Without the second
98change, *scratch* buffer will still be there for notes that do not
99need to be preserved.
100
93** `write-region-inhibit-fsync' now defaults to t in batch mode. 101** `write-region-inhibit-fsync' now defaults to t in batch mode.
94 102
95** ACL support has been added. 103** ACL support has been added.