unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: [Proposed Minor-mode] Speed of thought Lisp
Date: Mon, 26 Jan 2015 17:37:23 -0200	[thread overview]
Message-ID: <CAAdUY-J1RiwsAqfexgqjyA-Xn7iYXgLH37Y2Md1o39nix0zhVw@mail.gmail.com> (raw)
In-Reply-To: <jwvsieysz1r.fsf-monnier+emacs@gnu.org>

2015-01-25 12:49 GMT-02:00 Stefan Monnier >>    - C-c f :: Find
function under point. If it is not defined, create a
>>    definition for it below the current function and leave point inside.
>>    - C-c v :: Same, but for variable.
>
> For variables (and macros and defsubst), it's important that the
> declaration be before rather than "below".  For plain functions I also
> like to define them before I use them, tho it's not indispensable.

Good point, I'll change that.

>> Cheers to all, and please let me hear your thoughts!
>
> Sounds neat.  Even neater would be to make the list dynamic.
> As suggested on g.e.h, it could do a "completion with `initials' style",
> selecting the first completion, with sorting based on frequency hints.

I'm happy to change and extend the abbrevs to something based on usage
frequency of current Emacs core, but implementing a completion system
would just feel like reinventing abbrevs. Also, these expansions work
best as a complement to tab-completion, not as
yet-another-tab-completion. While tab-completion handles user-defined
symbols which are project-dependent and can change at any time, these
abbrevs offer a fixed set of symbols that are always useful and easy
to remember.

Unless you meant to sort based on the user's current usage frequency
(something dynamic), but that would be a whole other beast to tackle
and I wouldn't even be sure where to start :-).



  reply	other threads:[~2015-01-26 19:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-24 16:38 [Proposed Minor-mode] Speed of thought Lisp (was: Abbrevs for the most frequent elisp symbols) Artur Malabarba
2015-01-25 14:49 ` [Proposed Minor-mode] Speed of thought Lisp Stefan Monnier
2015-01-26 19:37   ` Artur Malabarba [this message]
2015-01-26 21:01     ` Dmitry Gutov
2015-01-26 23:46       ` Rasmus
2015-01-27  2:17         ` Dmitry Gutov
2015-01-27  3:36     ` Stefan Monnier
2015-01-27 12:28 ` Oleh Krehel
2015-01-27 13:57   ` Artur Malabarba
2015-01-27 14:15     ` Oleh Krehel
2015-01-27 15:25       ` Stefan Monnier
2015-01-27 15:40         ` Oleh Krehel
2015-01-27 16:40           ` Rasmus
2015-01-27 18:19             ` Oleh Krehel
2015-01-27 18:23               ` Dmitry Gutov
2015-01-27 18:29                 ` Oleh Krehel

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-J1RiwsAqfexgqjyA-Xn7iYXgLH37Y2Md1o39nix0zhVw@mail.gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).