all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tom <adatgyujto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Character repeation detection
Date: Sun, 9 Mar 2014 16:46:47 +0000 (UTC)	[thread overview]
Message-ID: <loom.20140309T173938-680@post.gmane.org> (raw)
In-Reply-To: 87eh2bmlvd.fsf@gmail.com

Jambunathan K <kjambunathan <at> gmail.com> writes:

> 
> Here is a quick one that checks for 2 characters in a row.
> 
> Are you sure you don't want flyspell-mode and only this. What is your
> usecase.  Why would you want this?

I want to use it as a hotkey.

It occured to me it's very unusual to type the same character 3
times in a row. Two can occur in words, but 3 practically never.

Therefore it could be used as a single key hotkey in text buffers
where otherwise you use the characters to type.

For example, I want to invoke occur. I press o and keep it pressed.
After auto repeat types 3 o characters this function kicks in, removes
the 3 typed Os from the buffer, removes the additional Os from the
keyboard buffer (if I kept it pressed for two long) and calls occur.

It seems to me it would be more convenient than typing multikey 
hotkeys and it would give lots of new free bindings in addition to 
the existing ones.




  reply	other threads:[~2014-03-09 16:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-09  5:47 Character repeation detection Tom
2014-03-09  6:08 ` Jambunathan K
2014-03-09  7:08   ` Tom
2014-03-09  7:12     ` Tom
2014-03-09 13:47       ` Marcin Borkowski
2014-03-09 15:29       ` Jambunathan K
2014-03-09 16:46         ` Tom [this message]
2014-03-09 17:13           ` Marcin Borkowski
2014-03-09 18:20             ` Andreas Röhler
2014-03-09 18:39             ` Tom
2014-03-09 20:20           ` Tom
2014-03-10  1:20           ` Stefan Monnier
     [not found]         ` <mailman.16788.1394383649.10748.help-gnu-emacs@gnu.org>
2014-03-09 17:46           ` Dan Espen
2014-03-09 18:42             ` Tom
2014-03-10  1:15           ` Joost Kremers
2014-03-10  1:59       ` Eric Abrahamsen
2014-03-09 16:29 ` Yuri Khan
     [not found] ` <mailman.16786.1394382568.10748.help-gnu-emacs@gnu.org>
2014-03-09 17:39   ` Pascal J. Bourguignon

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=loom.20140309T173938-680@post.gmane.org \
    --to=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.
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.