diff options
| author | Michal Nazarewicz | 2013-06-30 18:29:23 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-06-30 18:29:23 -0400 |
| commit | ef099a941f7fb2d74ce1768388463f18b284f9c5 (patch) | |
| tree | 1573bfacf90fc940c297c5428c132e9e65318716 /etc | |
| parent | 6d89e343ab402851d94e37b2ca79a67e4c6fb474 (diff) | |
| download | emacs-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/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -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 |
| 91 | initial buffer. | 91 | initial buffer. |
| 92 | 92 | ||
| 93 | ** `remember-notes' creates a buffer whose content is saved on kill-emacs. | ||
| 94 | You may think of it as a *scratch* buffer whose content is preserved. | ||
| 95 | In fact, it was designed as a replacement for *scratch* buffer and can | ||
| 96 | be used that way by setting `initial-buffer-choice' to `remember-notes' | ||
| 97 | and `remember-notes-buffer-name' to "*scratch*". Without the second | ||
| 98 | change, *scratch* buffer will still be there for notes that do not | ||
| 99 | need 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. |