From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Make `C-x {' and `C-x }' repeatable Date: Thu, 23 May 2013 23:58:28 -0400 Message-ID: References: <87mwrombc3.fsf@mail.jurta.org> <87r4gyondh.fsf@mail.jurta.org> <87txltpcsv.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369367927 2874 80.91.229.3 (24 May 2013 03:58:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 03:58:47 +0000 (UTC) Cc: Gauthier =?iso-8859-1?Q?=D6sterva?= =?iso-8859-1?Q?ll?= , Drew Adams , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 24 05:58:46 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 1Ufj9R-0007XC-BP for ged-emacs-devel@m.gmane.org; Fri, 24 May 2013 05:58:45 +0200 Original-Received: from localhost ([::1]:33187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufj9R-0001gP-0A for ged-emacs-devel@m.gmane.org; Thu, 23 May 2013 23:58:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufj9I-0001eO-Hc for emacs-devel@gnu.org; Thu, 23 May 2013 23:58:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufj9C-00027Q-4u for emacs-devel@gnu.org; Thu, 23 May 2013 23:58:36 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:34474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufj9C-00027F-0q for emacs-devel@gnu.org; Thu, 23 May 2013 23:58:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxOBSiQ X-IPAS-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxOBSiQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14293161" Original-Received: from 69-165-154-5.dsl.teksavvy.com (HELO pastel.home) ([69.165.154.5]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 May 2013 23:58:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CE1AC678C4; Thu, 23 May 2013 23:58:28 -0400 (EDT) In-Reply-To: <87txltpcsv.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 24 May 2013 01:30:05 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:159757 Archived-At: > Adding it to the pseudo-code in (info "(elisp) Searching Keymaps") > is this what you meant? > (or (FIND-IN overriding-temporary-local-map) > (cond > (overriding-terminal-local-map > (FIND-IN overriding-terminal-local-map)) > (overriding-local-map > (FIND-IN overriding-local-map)) > ((or (FIND-IN (get-char-property (point) 'keymap)) > (FIND-IN TEMP-MAP) > (FIND-IN-ANY emulation-mode-map-alists) > (FIND-IN-ANY minor-mode-overriding-map-alist) > (FIND-IN-ANY minor-mode-map-alist) > (if (get-text-property (point) 'local-map) > (FIND-IN (get-char-property (point) 'local-map)) > (FIND-IN (current-local-map)))))) > (FIND-IN (current-global-map))) Right. > But `set-temporary-overlay-map' has no effect. Could the new > `overriding-temporary-local-map' help in this case? Presumably, yes. But maybe getting Isearch, universal-argument, and your isearch-yank-jump to correctly use set-temporary-overlay-map at the same time will prove tricky. I hope it will be workable, with the use of "composed keymaps". Stefan