diff options
| author | Allen Li | 2017-12-31 20:33:21 -0800 |
|---|---|---|
| committer | Eli Zaretskii | 2018-09-29 10:27:11 +0300 |
| commit | 3bbe9e609138ae88a4c98bcee0da8fcf8b4a3e80 (patch) | |
| tree | dddace7db216a1ca095fc3ebfd19c5935818c16e /src/floatfns.c | |
| parent | 48ff4c0b2f78f1812fa12e3a56ee5f2a0bc712f7 (diff) | |
| download | emacs-3bbe9e609138ae88a4c98bcee0da8fcf8b4a3e80.tar.gz emacs-3bbe9e609138ae88a4c98bcee0da8fcf8b4a3e80.zip | |
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'.
Diffstat (limited to 'src/floatfns.c')
0 files changed, 0 insertions, 0 deletions