1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-02 05:32:08 -08:00
emacs/doc
Allen Li 3bbe9e6091 Avoid writing empty abbrev tables
Fixes bug#29923

'insert-abbrev-table-description' with a non-nil READABLE inserts Lisp
forms suitable for evaluation to restore the defined abbrevs.  We
don't have to insert a form for tables that do not have any abbrevs.

To implement this, we need to filter out system abbrevs before
checking if a table is empty, because system abbrevs were previously
skipped in the 'abbrev--write' call, at which point we would already
have started inserting the beginning of a table definition form.

* lisp/abbrev.el (insert-abbrev-table-description):
Skip inserting empty tables when READABLE is non-nil.
Clarify behavior in documentation string.
(abbrev--write): Remove system abbrev check.

* doc/lispref/abbrevs.texi (Abbrev Tables): Document behavior
with empty tables.

* etc/NEWS: Mention the change in behavior of
'insert-abbrev-table-description'.
2018-09-29 10:27:11 +03:00
..
emacs Merge from origin/emacs-26 2018-09-28 07:54:24 -07:00
lispintro Fix ‘make clean’ with a file named ‘-.o’ 2018-09-24 10:45:07 -07:00
lispref Avoid writing empty abbrev tables 2018-09-29 10:27:11 +03:00
man Merge from origin/emacs-26 2018-09-28 07:54:24 -07:00
misc Merge from origin/emacs-26 2018-09-28 07:54:24 -07:00