unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Tom <adatgyujto@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Abbrevs for the most frequent elisp symbols
Date: Wed, 31 Dec 2014 19:46:49 -0200	[thread overview]
Message-ID: <CAAdUY-Jb+wzfiFiA4mVSCXiKtptU1ebfrPDxBMhNVXgBgeR1Zg@mail.gmail.com> (raw)
In-Reply-To: <loom.20141231T104343-876@post.gmane.org>

company comes with a backend that matches the initials of defined symbols,
the only difference is that you have to type the hyphens, so a modification
of that backend would be a viable approach for this menu that's being
suggested.
That seems like a worthy addition to company-mode for me.

Still, I think that should be something separate from this system that's
being discussed. When there are collisions, I prefer to use the most common
option than to pop-up a completions menu. That's how my setup works right
now, it's part of what makes it fast and it feels awesome. :-)
Besides, I feel Emacs has enough options when it comes to completions, and
I'd rather this not be Yet Another One.

Maybe SPC could trigger the most common expansion (a la abbrev) and TAB
could trigger the completions menu (a la company).


2014-12-31 7:50 GMT-02:00 Tom <adatgyujto@gmail.com>:

> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> >
> > If you use the `initials' completion style, "wcb" will match
> > "with-current-buffer" (along with various others), so if we add a good
> > sorting based on known usage frequency (as suggested by the OP), the
> > cycling completion will behave very similarly to his abbrevs.
>
> I wonder if it is possible to combine abbrevs with completion.
>
> I feel the most convenient completion is abbrevs, because then you
> don't have to press anything to complete, it just happens. But
> if we use initials then there can be collisions.
>
> What if we could use initial-abbrevs to type lisp symbols, but when
> there is more possible completions for the abbrev (e.g. if there is an
> other  completion for wcb than with-current-buffer) then at
> abbrev expansion it would pop up a completion menu like company, etc.
> so right below the  line) with the possible completions sorted by
> frequency with the most frequent at the top.
>
> This would be the most convenient solution, because then you could
> just type initials and completions would pop up without pressing
> anything, or if there is no collision then it would expand
> immediately like any other abbrev.
>
>
>


  reply	other threads:[~2014-12-31 21:46 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-19 19:58 Abbrevs for the most frequent elisp symbols Tom
2014-12-25 14:56 ` Andreas Röhler
2014-12-29 15:58   ` Tom
2014-12-29 18:41     ` Andreas Röhler
2014-12-30 10:19       ` Tom
2014-12-30 12:01         ` Artur Malabarba
2014-12-30 21:47           ` Stefan Monnier
2014-12-31  9:50             ` Tom
2014-12-31 21:46               ` Artur Malabarba [this message]
2015-01-01  0:16                 ` Robert Thorpe
2014-12-30 14:12         ` Óscar Fuentes
     [not found] ` <mailman.16706.1419519419.1147.help-gnu-emacs@gnu.org>
2014-12-29  4:55   ` Emanuel Berg
2014-12-29 11:18 ` Marcin Borkowski
2014-12-29 15:28   ` Drew Adams
     [not found] <mailman.16504.1419019164.1147.help-gnu-emacs@gnu.org>
2014-12-29  4:21 ` Emanuel Berg
2014-12-29 11:24   ` Marcin Borkowski
     [not found]     ` <(message>
     [not found]       ` <from>
     [not found]         ` <Marcin>
     [not found]           ` <Borkowski>
     [not found]             ` <on>
     [not found]               ` <Mon>
     [not found]                 ` <29>
     [not found]                   ` <Dec>
     [not found]                     ` <2014>
     [not found]                       ` <12:24:20>
2014-12-29 13:09     ` Robert Thorpe
2014-12-29 15:28       ` Drew Adams
2014-12-29 16:28         ` Robert Thorpe
2014-12-29 13:26     ` Stefan Monnier
2014-12-29 13:40       ` Marcin Borkowski
2014-12-29 14:57         ` Stefan Monnier
2014-12-29 15:49   ` Tom
     [not found]   ` <mailman.16844.1419852282.1147.help-gnu-emacs@gnu.org>
2015-01-03  2:25     ` Emanuel Berg
2015-01-04  0:19       ` Artur Malabarba
     [not found]       ` <mailman.17204.1420330787.1147.help-gnu-emacs@gnu.org>
2015-01-05 21:16         ` Emanuel Berg
2015-01-08 20:53           ` Artur Malabarba
2015-01-03  2:31     ` Emanuel Berg

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=CAAdUY-Jb+wzfiFiA4mVSCXiKtptU1ebfrPDxBMhNVXgBgeR1Zg@mail.gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=adatgyujto@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).