From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: Character repeation detection Date: Sun, 9 Mar 2014 16:46:47 +0000 (UTC) Message-ID: References: <878usjewew.fsf@gmail.com> <87eh2bmlvd.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1394383651 24615 80.91.229.3 (9 Mar 2014 16:47:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2014 16:47:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 09 17:47:39 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WMgt1-0003mC-BJ for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Mar 2014 17:47:39 +0100 Original-Received: from localhost ([::1]:44771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMgt1-0003Wi-1N for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Mar 2014 12:47:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMgsi-0003WO-PT for help-gnu-emacs@gnu.org; Sun, 09 Mar 2014 12:47:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMgsb-0006Hj-GH for help-gnu-emacs@gnu.org; Sun, 09 Mar 2014 12:47:20 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMgsb-0006Hc-96 for help-gnu-emacs@gnu.org; Sun, 09 Mar 2014 12:47:13 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WMgsZ-0003QX-VY for help-gnu-emacs@gnu.org; Sun, 09 Mar 2014 17:47:12 +0100 Original-Received: from 84-236-108-177.pool.digikabel.hu ([84.236.108.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Mar 2014 17:47:11 +0100 Original-Received: from adatgyujto by 84-236-108-177.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Mar 2014 17:47:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 84.236.108.177 (Opera/9.80 (Windows NT 6.1) Presto/2.12.388 Version/12.16) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96340 Archived-At: Jambunathan K 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.