From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: xenodasein--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Calling universal-argument with overriding-local-map Date: Wed, 5 Jan 2022 18:39:46 +0100 (CET) Message-ID: Reply-To: xenodasein@tutanota.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8049"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: monnier@iro.umontreal.ca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 05 18:42:32 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5AIx-0001up-Tj for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 18:42:31 +0100 Original-Received: from localhost ([::1]:33934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5AIw-0004SF-JK for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 12:42:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5AGW-0002t6-52 for help-gnu-emacs@gnu.org; Wed, 05 Jan 2022 12:40:00 -0500 Original-Received: from w4.tutanota.de ([81.3.6.165]:33760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5AGJ-0003lu-RL for help-gnu-emacs@gnu.org; Wed, 05 Jan 2022 12:39:59 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id 4FE0E10602EF; Wed, 5 Jan 2022 17:39:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641404386; s=s1; d=tutanota.de; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=P+NljSRk6UdFq5Jeyro+hANvUO+JJSYwJ7Tg9YtAHsI=; b=RaEBf23tWUBD5Xje6ejElBUeo9PmOl9ln4O8TZ+Jc4N6ED2Yil4lIybgyNTKwSiz cdqDtcKyO3m852fQzlQQYxQGAMxHYsszoiyOo5ewXL0rsWmzPi4UkgQejEn4BvA46Fo tWhllLywWpHElRERm2wxJef8YGmxypAHIdV9XNj+Uze9XYwWT6RquwcFcXuICUzn+tR t8Nz+ApLOlxNuVBRZHIYy2WnAeP3zDr5TjJ9MVlK/fsNCAHFGUhcKWD4/AQNDGS+l9J wGWmR/HP0Esh0heVXonCxvYZTpwieh5+FHnpVsi6JyHToxhB3drimr/2sSSeQuGUBXg jfruVp2tbg== Received-SPF: pass client-ip=81.3.6.165; envelope-from=xenodasein@tutanota.de; helo=w4.tutanota.de X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135111 Archived-At: https://lists.gnu.org/archive/html/help-gnu-emacs/2022-01/msg00018.html From:=C2=A0 =09Stefan Monnier > I have no idea what that means. > What do you mean by "calling universal-argument"? It is bound to a key in overriding-local-map, and bound to C-u in global-map.=C2=A0 I call it by pressing either of those keys on keyboard. What's the term for this?=C2=A0 Invoking command? > What do you mean by "gets the next non-digit command from global-map"? As universal-argument uses set-transient-map, if next command isn't bound in universal-argument-map, it is looked up in next active keymap I assume.=C2=A0 What I expected was that the next active keymap to be overriding-local-map, as per the link I sent in original mail and "(elisp) Searching Keymaps" (or (if overriding-terminal-local-map =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (F= IND-IN overriding-terminal-local-map)) =C2=A0=C2=A0=C2=A0 (if overriding-local-map =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (F= IND-IN overriding-local-map) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (or (FIND-IN (= get-char-property (point) 'keymap)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (FIND-IN-ANY emulation-mode-map-alists) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (FIND-IN-ANY minor-mode-overriding-map-alist) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (FIND-IN-ANY minor-mode-map-alist) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (if (get-text-property (point) 'local-map) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (FIND-IN (get-char-property (point) 'loca= l-map)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 (FIND-IN (current-local-map))))) =C2=A0=C2=A0=C2=A0 (FIND-IN (current-global-map))) However, "(elisp) Controlling Active Maps" implies that only one of o-t-l-m or o-l-m is active at a time, both can't be. -- Variable: overriding-terminal-local-map =C2=A0=C2=A0=C2=A0=C2=A0 If non-=E2=80=98nil=E2=80=99, this variable holds = a keymap to use instead of =C2=A0=C2=A0=C2=A0=C2=A0 =E2=80=98overriding-local-map=E2=80=99, the buffer= =E2=80=99s local keymap, text property or =C2=A0=C2=A0=C2=A0=C2=A0 overlay keymaps, and all the minor mode keymaps. =C2=A0=C2=A0=C2=A0=C2=A0 This variable is always local to the current termi= nal and cannot be =C2=A0=C2=A0=C2=A0=C2=A0 buffer-local.=C2=A0 *Note Multiple Terminals::.=C2= =A0 It is used to implement =C2=A0=C2=A0=C2=A0=C2=A0 incremental search mode. And they seem to behave that way.=C2=A0 Should I send this contradiction in manual as a bug?=C2=A0 Has this always been the behavior or when did it change?=C2=A0 I presume it used to be that both could be active, otherwise the site from the link and manual has always been wrong.