From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Make `C-x {' and `C-x }' repeatable Date: Wed, 22 May 2013 21:55:38 +0300 Organization: JURTA Message-ID: <87r4gyondh.fsf@mail.jurta.org> References: <87mwrombc3.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369249189 4356 80.91.229.3 (22 May 2013 18:59:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 May 2013 18:59:49 +0000 (UTC) Cc: Gauthier =?iso-8859-1?Q?=D6stervall?= , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 22 20:59:48 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UfEGJ-0000a9-Ls for ged-emacs-devel@m.gmane.org; Wed, 22 May 2013 20:59:47 +0200 Original-Received: from localhost ([::1]:33821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEGJ-0007W8-42 for ged-emacs-devel@m.gmane.org; Wed, 22 May 2013 14:59:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEGD-0007Oq-Nc for emacs-devel@gnu.org; Wed, 22 May 2013 14:59:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfEGB-0003hX-3n for emacs-devel@gnu.org; Wed, 22 May 2013 14:59:41 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:56143 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfEGA-0003gs-Tz for emacs-devel@gnu.org; Wed, 22 May 2013 14:59:39 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 37C70258B9E938; Wed, 22 May 2013 11:59:36 -0700 (PDT) In-Reply-To: (Drew Adams's message of "Wed, 22 May 2013 10:44:54 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.218.105 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159731 Archived-At: > With Juri's suggestion you can make the first use of a command use > a step size of 6, but repeating it puts you back to a step size of 1. > Perhaps there is a simple fix to make Juri's suggestion behave better > in this respect. I don't know why a prefix arg exits temporary-overlay-map. Trying to (define-key window-size-adjust-keymap [?\C-u] 'universal-argument) doesn't help to fix this. `C-u' still terminates the key sequence `C-x } } } } C-u }'. > I want to have a repeatable command bound to a key on `isearch-mode-map'. In bug#10654 I proposed a patch that implements repeatable keys for Isearch e.g. `M-s C-f C-f M-f C-f ...' Maybe a better implementation would be with the help of `set-temporary-overlay-map'. I'll try to do this for Isearch. But it seems repeat.el can't be used if there are different commands in the key sequence.