From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Michael V. Antosha" Newsgroups: gmane.emacs.help Subject: Re: troubleshoot C-M-/ key binding (dabbrev-completion) Date: Sun, 21 Jan 2024 23:59:15 +0200 Message-ID: References: <87le8izde0.fsf@martinmarshall.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34084"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Martin Marshall To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 21 23:00:19 2024 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 1rRfrW-0008eT-Ni for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Jan 2024 23:00:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRfqk-0001Z0-Ks; Sun, 21 Jan 2024 16:59:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRfqd-0001XT-3v for help-gnu-emacs@gnu.org; Sun, 21 Jan 2024 16:59:27 -0500 Original-Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rRfqX-0003jJ-WC for help-gnu-emacs@gnu.org; Sun, 21 Jan 2024 16:59:22 -0500 Original-Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-204f50f305cso1706572fac.3 for ; Sun, 21 Jan 2024 13:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705874356; x=1706479156; darn=gnu.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oWaIbvhz9MkOrvKupUWpmwnFyHSZZZac0GYyD+PKLT8=; b=l57beXf5Vdci1s2WtBLOhw1LRJFvp/xtKhdGB/VKUx0rhAY8cEvy9vReGUVNUiuQhg GRUq79rXfcNVM3ew6HyMp3h5PS0jZPBIQyk0vCULBMTk/1oMpTzfF5BdDV4NdD/z/cW3 H7068gwExPsQk78nJgE/PSBDJTuzRPgO2Dy2ovHCqAMO+wlyX+FEbTrE36RJBV56z+ot jHJORd4OsUeOZ7G09UkcaWF58Mf2BplcJQvJe+oqunuRSm7R7cMgu41PZ5RsKL6zv0Dz RUTL7mtjyTLcH6sREWisCvWoMbJGfsTFyOgzaHMu/LHBnMVFy8V5E0FH0IRlsAmAZB1f OeNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705874356; x=1706479156; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oWaIbvhz9MkOrvKupUWpmwnFyHSZZZac0GYyD+PKLT8=; b=EYWNjzBMHdClA7ZNPxBMb6aAayXmJcflXV2Lcr+o8ejylDDsaosmFv3cmQkFOO2x9A me6IvlmjNFv4ETdlyFV8LVQeHx+sEgytSkAfszF8pyLGyp/2r+W2TKyXe2K9+bH/RMmB S2R/6aeXXhhgaO7ZaFO8Lp+fQi1vZ8yZTDiSh1nUrkQhT2J4Vi5ied6a0mrH7SuAVd/Y 8Zw2SdoIOX226x+PuKBLu0c6550YzGTYXpv4UWflec9Bhy+fhh9iixqsgoNjX/OipFz0 6Eoe72laKTjci2VRyrPdhxDf3C7YVGlnGBr33zGSY74Uau6FtnYd9sWC/RyENONLBd6Y 59yw== X-Gm-Message-State: AOJu0Yw3nrnhfgpXliCXMFMFZSMHu1qgejB+hrspUSW8UoxonAiGxTdS v5Ag20vVb9BW396lozXgzVkx23GgevrifFoOsxof6TnUZ8IWphpzUrdZnfSlNslSRbwUugCBvQV wmJOSpq0JvKP3+9n/8foiq6LCYw6Gh5ob+dc= X-Google-Smtp-Source: AGHT+IGiafl80d41otXnNKc7HtBDgnEi5bttsVXHMHMbusRB5736LFnu/raoEDfYKwtNXpZQsc+6h14ZyfZQVEC3t40= X-Received: by 2002:a05:6808:1396:b0:3bd:bb91:d217 with SMTP id c22-20020a056808139600b003bdbb91d217mr252491oiw.77.1705874355847; Sun, 21 Jan 2024 13:59:15 -0800 (PST) Original-Received: by 2002:a05:6359:4c21:b0:175:ca5:904e with HTTP; Sun, 21 Jan 2024 13:59:15 -0800 (PST) In-Reply-To: <87le8izde0.fsf@martinmarshall.com> Received-SPF: pass client-ip=2001:4860:4864:20::32; envelope-from=michael.antosha@gmail.com; helo=mail-oa1-x32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145772 Archived-At: On 1/21/24, Martin Marshall wrote: > "Michael V. Antosha" writes: > >> 3. Using C-M-/ (i.e. pressing Ctrl+Alt+SLASH) seems to have the same >> effect as M-/ (dabbrev-expand). > > What effect is that? I prepared a description of a test procedure to specify the effect, but I chose to skip sending it to keep my post shorter and because it seems unnecessary now (explained below). > Are you sure there are multiple completion candidates in the buffer? Yes. > If there's only one candidate in the buffer, `dabbrev-completion' will > immediately complete the word without bringing up a "*Completions*" > buffer. That would look like the same thing `dabbrev-expand' does. I understand differences and similarities between the two commands, I first tested their behavior without key bindings, through M-x dabbrev-* > You can check which key Emacs thinks you pressed and which command it > called by invoking `view-lossage' (bound to "C-h l"). Martin, thank you very much! That's really useful. What I'm seeing now proves my original suspicion: - when I press "Alt+SLASH" emacs interprets it as ESC / [dabbrev-expand] - when I press "Ctrl+Alt+SLASH" emacs interprets it, as ESC / [dabbrev-expand] ESC / [dabbrev-expand] C-h l [view-lossage] What could I do further to find out why these different combinations are understood by emacs as ESC / sequence? For comparison, Ctrl+Alt+BACKSLASH works fine. Below are keys/commands from C-h l after pressing Ctr+BACKSLASH, then Alt+BACKSLASH, then Ctrl+Alt+BACKSLASH: C-\ [toggle-input-method] ... ESC \ [delete-horizontal-space] ... ESC C-\ [indent-region] C-h l [view-lossage] I also tried to emulate C-M-/ by pressing ESC and then pressing Ctrl+SLASH, the result is quite unexpected: ESC C-_ [nil] C-h l [view-lossage] -- Michael V. Antosha