all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Any infrastructure to select one of a few options in Emacs core?
Date: Sat, 14 May 2016 06:18:43 +0200	[thread overview]
Message-ID: <86r3d55l24.fsf@student.uu.se> (raw)
In-Reply-To: 87shxrczlt.fsf@mbork.pl

Marcin Borkowski <mbork@mbork.pl> writes:

> ...

Check out my 'buc' module! (I don't remember why
I called it that.)

It is actually brilliant. You have a bunch of
options: A, B, ... N.

Then you have keys on your keyboard: RET, SPC, TAB,
DEL, that are close and fast and singular.

So there is an association between the options, and
the keys!

But the genius of it is, if you don't care for any
of the options displayed and shortcutted, just type!
Any other char will take away the whole "buc prompt"
and instead appear as the first char in the input
string, i.e., an arbitrary string is still inputable!

Also, I added a function so that it works like
a cache, with the most recently selected option
always being the leftmost (RET), and then sorted
rightways... It is an open question if this really is
beneficial - it can be frustrating as well, if the
keys keep moving around! It should at least
be disableable.

A screenshot:

    http://user.it.uu.se/~embe8573/dumps/buc.png

The source:

    http://user.it.uu.se/~embe8573/conf/emacs-init/buc.el

-- 
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 29 Blogomatic articles -                   




  parent reply	other threads:[~2016-05-14  4:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-09 10:09 Any infrastructure to select one of a few options in Emacs core? Marcin Borkowski
2016-05-09 14:13 ` Drew Adams
2016-05-09 15:40   ` Marcin Borkowski
2016-05-09 16:37     ` Kaushal Modi
2016-05-09 17:10       ` Marcin Borkowski
2016-05-09 17:27         ` Drew Adams
2016-05-09 18:08           ` Marcin Borkowski
2016-05-09 18:16             ` Drew Adams
2016-05-19 20:06               ` Marcin Borkowski
2016-05-20  1:16                 ` John Mastro
2016-05-20 23:52                   ` John Mastro
2016-05-21 20:48                     ` Marcin Borkowski
2016-05-09 18:36             ` Pascal J. Bourguignon
2016-05-14  4:20               ` Emanuel Berg
2016-05-21 20:49               ` Marcin Borkowski
2016-05-14  4:18 ` Emanuel Berg [this message]
2016-05-21 20:52   ` Marcin Borkowski
     [not found]   ` <mailman.43.1463863961.1216.help-gnu-emacs@gnu.org>
2016-05-22  6:32     ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r3d55l24.fsf@student.uu.se \
    --to=embe8573@student.uu.se \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.