1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00
emacs/etc
Allen Li f5896e2cbf Rework empty abbrev table omitting
There were two problems with the original implementation:

1. It changed the behavior of insert-abbrev-table-description when
READABLE is nil to sometimes insert one Emacs Lisp expression and
sometimes insert nothing.
2. It broke the tests.

This commit reworks this so that insert-abbrev-table-description
always inserts an expressions even if no abbrevs need to be saved and
making only write-abbrev-file check that a table has any abbrevs to
save before calling insert-abbrev-table-description.  This duplicates
the work of filtering the table for savable abbrevs, but the benefit
of keeping the API is worth it.

* doc/lispref/abbrevs.texi (Abbrev Tables): Update documentation.
* lisp/abbrev.el (write-abbrev-file): Skip tables without user abbrevs
(insert-abbrev-table-description): Always insert the define
expression.
(abbrev--table-symbols): New function.
* test/lisp/abbrev-tests.el (abbrev--table-symbols-test):
Add test for abbrev--table-symbols.
2018-10-12 11:44:15 +03:00
..
charsets Update copyright year to 2018 2018-01-01 00:57:59 -08:00
e Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
forms Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus
images Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
nxml Update nXML to use Emacs's Unicode support, and lexical-binding 2016-01-15 10:29:20 -05:00
org Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
refcards Fix ‘make clean’ with a file named ‘-.o’ 2018-09-24 10:45:07 -07:00
schema Update copyright year to 2018 2018-01-01 00:57:59 -08:00
srecode Update copyright year to 2018 2018-01-01 00:57:59 -08:00
themes Disable no-byte-compile in built-in themes 2018-07-13 11:28:16 -04:00
tutorials Fix copyright years by hand 2018-01-01 01:02:09 -08:00
AUTHORS * etc/AUTHORS: Update. 2018-05-25 17:19:29 +02:00
CALC-NEWS ; Fix doc typos related to indefinite articles 2018-02-16 17:33:57 -05:00
CENSORSHIP Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
compilation.txt Update copyright year to 2018 2018-01-01 00:57:59 -08:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
DEBUG Merge from emacs-26 2018-06-10 18:43:49 -04:00
DEVEL.HUMOR Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
DISTRIB Update copyright year to 2018 2018-01-01 00:57:59 -08:00
edt-user.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
emacs-buffer.gdb Bring emacs-buffer.gdb up to date with recent lisp.h changes. 2018-01-26 18:52:19 -08:00
emacs.appdata.xml * etc/emacs.appdata.xml: Update Emacs screenshot. 2018-06-06 20:55:33 +02:00
emacs.desktop
emacs.icon
emacs.service Notify systemd in daemon-initialized and kill-emacs (Bug#31498) 2018-07-25 21:07:03 -04:00
enriched.txt ; * etc/enriched.txt (hanging-indents): Remove extra indent. 2018-09-17 22:46:22 +03:00
ERC-NEWS Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ETAGS.EBNF ; Fix doc typos related to indefinite articles 2018-02-16 17:33:57 -05:00
ETAGS.README Update copyright year to 2018 2018-01-01 00:57:59 -08:00
FTP Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
future-bug
GNU
GNUS-NEWS Update copyright year to 2018 2018-01-01 00:57:59 -08:00
gnus-tut.txt Update copyright year to 2018 2018-01-01 00:57:59 -08:00
grep.txt Update copyright year to 2018 2018-01-01 00:57:59 -08:00
HELLO * etc/HELLO: Add a few more scripts. 2018-05-26 15:11:20 +03:00
HISTORY * etc/HISTORY: Cite Brinkoff on early history. 2018-07-01 08:25:46 -07:00
JOKES
LINUX-GNU Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
MACHINES Update copyright year to 2018 2018-01-01 00:57:59 -08:00
MH-E-NEWS Update copyright year to 2018 2018-01-01 00:57:59 -08:00
MORE.STUFF
NEWS Rework empty abbrev table omitting 2018-10-12 11:44:15 +03:00
NEWS.1-17 * etc/NEWS.18: Use outline-mode and a more standard format 2018-09-28 15:54:15 -04:00
NEWS.18 * etc/NEWS.18: Use outline-mode and a more standard format 2018-09-28 15:54:15 -04:00
NEWS.19 Audit use of lsh and fix glitches 2018-08-21 13:44:32 -07:00
NEWS.20 Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
NEWS.21 ; Fix doc typos related to indefinite articles 2018-02-16 17:33:57 -05:00
NEWS.22 ; Fix doc typos related to indefinite articles 2018-02-16 17:33:57 -05:00
NEWS.23 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
NEWS.24 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
NEWS.25 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
NEWS.26 Merge from origin/emacs-26 2018-10-03 09:23:16 -07:00
NEXTSTEP Update copyright year to 2018 2018-01-01 00:57:59 -08:00
NXML-NEWS Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ORDERS
ORG-NEWS Update Org to v9.1.9 2018-03-27 23:34:41 +02:00
package-keyring.gpg
PROBLEMS Merge from origin/emacs-26 2018-09-15 09:20:32 -07:00
ps-prin0.ps Update copyright year to 2018 2018-01-01 00:57:59 -08:00
ps-prin1.ps Update copyright year to 2018 2018-01-01 00:57:59 -08:00
publicsuffix.txt Update publicsuffix.txt. 2016-02-06 16:11:18 +11:00
README Update copyright year to 2018 2018-01-01 00:57:59 -08:00
rgb.txt
ses-example.ses Update copyright year to 2018 2018-01-01 00:57:59 -08:00
spook.lines
TERMS Update copyright year to 2018 2018-01-01 00:57:59 -08:00
THE-GNU-PROJECT Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
TODO Doc fixes re obsolete items 2018-03-13 13:49:05 -04:00
WHY-FREE Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
yow.lines Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2018 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)