unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mathias Dahl <mathias.dahl@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Abbrev suggestions - feedback appreciated
Date: Sat, 7 Oct 2017 17:13:06 +0200	[thread overview]
Message-ID: <CABrcCQ5Kta1428L1JOpcz1C-7bUdtfCWS+qU7cbKdf+YMFP0xg@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY2yExC6__FTDeHNu+A9nOsDPut9CuG4kngZwvwPKXL1iw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1749 bytes --]

>
> Hi Mathias,


Hi, and thanks for your comments!

This will be a pretty cool feature.
>

I thought so too :)


> I see just one caveat. I don't use abbrev for "auto-correct", but I know
> that many folks do[1].
>

Neither do I, mostly (I have a few "corrections" as well, but mostly I used
it to type long or "hard" words using fewer characters.)

So people could have abbrev entries like "eamcs" that "expand" to "emacs".
> So with this feature, the user will be suggested to type "eamcs" each time
> they correctly type "emacs"?
>

Yes, or the last defined abbrev for "emacs" anyway (if there are more than
one).


> If so, can the suggestion be enabled only when the abbreviation is shorter
> than the expansion by N number of characters, where that N can be set using
> a defcustom? (I would default that to 2 or 3).
>

It would be possible to have an option like that, or similar. The option
could keep the diff in number of characters or the diff in percentage, or
whatever clever thing we want. I will try to implement it.

Also, someone mailed me about the scenario where there are more than one
abbrev for the same expansion. Right now, you will get a suggestion to use
the most recently defined abbrev. I wonder how useful it would be to see
the full list of abbrevs that might expand to a certain expansion... For
me, the primary idea is to remind me that I have at least one abbrev
defined for a certain expansion. If there are more than one, the reminder
is enough, at least for me. I would probably have a look (M-x edit-abbrevs
RET) to see what I have defined.

Does anyone else here think it would be useful to list all abbrevs that
expand to a certain expansion? Surely it would be doable, but it would also
be slower.

/Mathias

[-- Attachment #2: Type: text/html, Size: 2838 bytes --]

  reply	other threads:[~2017-10-07 15:13 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-16  7:51 Abbrev suggestions - feedback appreciated Mathias Dahl
2017-09-16  8:46 ` Eli Zaretskii
2017-09-17 13:15   ` Mathias Dahl
2017-09-16 13:22 ` Stefan Monnier
2017-09-17 13:22   ` Mathias Dahl
2017-09-17 14:03     ` Mathias Dahl
2017-09-17 21:23     ` Stefan Monnier
2017-09-17 21:56       ` Mathias Dahl
2017-10-03 12:51         ` Kaushal Modi
2017-10-07 15:13           ` Mathias Dahl [this message]
2017-10-07 15:29             ` Stefan Monnier
2017-10-07 17:18               ` Mathias Dahl
2017-10-07 18:40                 ` Mathias Dahl
2017-10-07 22:29                   ` Ian Dunn
2017-10-07 22:44                     ` Stefan Monnier
2017-10-08 16:38                       ` Ian Dunn
2018-09-17 21:48                         ` Mathias Dahl
2018-09-18  2:05                           ` Stefan Monnier
2020-05-11 21:37                             ` Mathias Dahl
2020-05-11 22:39                               ` Mathias Dahl
2020-05-11 22:58                               ` Stefan Monnier
2020-05-16 22:10                                 ` Mathias Dahl
2020-05-16 22:22                                   ` Mathias Dahl
2020-05-17  3:13                                     ` Stefan Monnier
2020-05-17 14:59                                       ` Mathias Dahl
2020-05-17 15:45                                         ` Eli Zaretskii
2020-05-17 18:43                                           ` Mathias Dahl
2020-05-17 21:20                                             ` Stefan Monnier
2020-05-18 22:00                                               ` Mathias Dahl
2020-06-04 20:14                                                 ` Mathias Dahl
2017-10-07 22:40                 ` Stefan Monnier
2017-10-08 15:28                   ` Mathias Dahl
  -- strict thread matches above, loose matches on Subject: below --
2017-10-08  8:15 Seweryn Kokot
2017-10-08 15:25 ` Mathias Dahl

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=CABrcCQ5Kta1428L1JOpcz1C-7bUdtfCWS+qU7cbKdf+YMFP0xg@mail.gmail.com \
    --to=mathias.dahl@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kaushal.modi@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).