GNU bug report logs - #5937
23.1.95; why saving empty abbrev tables

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 12 Apr 2010 15:24:02 UTC

Severity: minor

Fixed in version 24.1

Done: Leo <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #25 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#5937: 23.1.95; why saving empty abbrev tables
Date: Tue, 27 Apr 2010 09:46:17 +0100
On 2010-04-27 04:49 +0100, Stefan Monnier wrote:
>>>> It seems to make it more difficult for editing (edit-abbrevs) because
>>>> the buffer is full of empty abbrev.  I wonder if saving only non-empty
>>>> tables is better and user friendlier.
>>> It does sound like a good idea.  Any objection?
>> Would the following patch be acceptable?
>
> Actually, having tried it now for a while I do have an objection: it
> makes it harder to add entries to an abbrev-table if that table
> is empty.
>
> So I think a better option is to sort the tables such that empty tables
> are pushed to the end.

I thought of this question when creating the patch. I wasn't sure how
best to offer the option to add abbrevs to empty tables.

When I first tried out abbrev I was confused at edit-abbrevs by all
those empty tables. For example, the editing abbrevs buffer could easily
have 1000 lines with the empty tables show up. I thought I had done
something wrong with those C-x ail stuff. In the end I didn't use abbrev
for 2-3 years until last year when I started using snippet.

I think users use edit-abbrevs often to view and edit existing abbrevs
or adding new ones to a non-empty table. When an abbrev tale is empty it
is most likely the user hasn't used abbrevs in the major mode associated
with it. Personally, I prefer keeping the edit abbrevs buffer smaller.
It is cleaner and less confusing.

Do you think we can address this issue in another way for example by
offering a key biding to enter an empty table? For example, make M-RET
move point to the end of current abbrev table and asking for a table
name (with completion)? (this is similar to M-RET in org mode)

>         Stefan

Leo






This bug report was last modified 14 years and 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.