From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: 29923@debbugs.gnu.org
Cc: Allen Li <vianchielfaura@gmail.com>,
Noam Postavsky <npostavs@users.sourceforge.net>
Subject: bug#29923: [PATCH] Skip writing empty abbrev tables
Date: Wed, 19 Sep 2018 08:04:11 +0200 [thread overview]
Message-ID: <0c0713fa-e8c7-938b-c2b6-d18dd59b3e5c@easy-emacs.de> (raw)
In-Reply-To: <CADbSrJwD=g4Y3HNwze5ZjBzG8f6Hq4mZw6ywR3oQt9_k5pR9BQ@mail.gmail.com>
On 19.09.2018 04:55, Allen Li wrote:
> On Tue, Sep 18, 2018 at 3:53 PM Noam Postavsky <npostavs@gmail.com> wrote:
>>
>> Allen Li <darkfeline@felesatra.moe> writes:
>>
>>> The system abbrev omitting worked (if readable is nil); it's
>>> implemented in abbrev--write.
>>> However, that doesn't allow us to skip writing a table if it only
>>> contains system abbrevs;
>>> we'll still see a table with abbrevs, write the opening of the
>>> define-abbrev-table form,
>>> and then realize in abbrev-write that all of the abbrevs are system abbrevs.
>>
>> Ah, it would be good to have this information in the commit message, as
>> the patch is a bit confusing to read otherwise.
>
> Done. I have also removed the system abbrev check in abbrev--write since
> it is redundant now and this is the only place it is called.
>
AFAIU
add-mode-abbrev expect a respective abbrev-table existing.
(add-abbrev
(if only-global-abbrevs
global-abbrev-table
(or local-abbrev-table
(error "No per-mode abbrev table")))
Will this still work?
Cheers,
Andreas
next prev parent reply other threads:[~2018-09-19 6:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-01 3:44 bug#29923: 25.3; write-abbrev-file inserts many empty tables Allen Li
2018-01-01 4:36 ` bug#29923: [PATCH] Skip writing empty abbrev tables Allen Li
2018-09-09 20:43 ` Noam Postavsky
2018-09-15 1:22 ` Allen Li
2018-09-18 22:53 ` Noam Postavsky
2018-09-19 2:55 ` Allen Li
2018-09-19 6:04 ` Andreas Röhler [this message]
2018-09-26 9:03 ` Allen Li
2018-09-19 6:44 ` Eli Zaretskii
2018-09-26 9:01 ` Allen Li
2018-09-29 7:29 ` Eli Zaretskii
2018-09-09 0:31 ` bug#29923: 25.3; write-abbrev-file inserts many empty tables Allen Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0c0713fa-e8c7-938b-c2b6-d18dd59b3e5c@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=29923@debbugs.gnu.org \
--cc=npostavs@users.sourceforge.net \
--cc=vianchielfaura@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).