From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: vterm and Meta? Date: Tue, 1 Aug 2023 19:54:36 +0000 Message-ID: References: <83089d3fe2e4d5cf3369d7831a88877002a21557.camel@adminart.net> <85451979-85a8-033d-6148-18f5394edac7@gmail.com> <84a152e2-2332-9a18-3bd6-51b08ea4e6a1@gmail.com> 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="13588"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs , hw Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 01 21:55:28 2023 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 1qQvSp-0003Kx-SF for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 21:55:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQvSJ-00085A-W5; Tue, 01 Aug 2023 15:54:56 -0400 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 1qQvSI-000852-Ci for help-gnu-emacs@gnu.org; Tue, 01 Aug 2023 15:54:54 -0400 Original-Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQvSG-0007DH-NS for help-gnu-emacs@gnu.org; Tue, 01 Aug 2023 15:54:54 -0400 Original-Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-348dfefd1a4so30587025ab.1 for ; Tue, 01 Aug 2023 12:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690919691; x=1691524491; h=subject:references:in-reply-to:message-id:to:from:date:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=zZLIdcpxz4d9O6sOoKQUpivIkIXzlNbsT2/qRVjpaPI=; b=HwmA66Ged8S1bOO3R4VcGhWeIxyW6ExxTohAutZDaBk0CM1V+B/ewV7/c/4kZzwvUJ +kezKT9K+oC3T3bghkhiFPXpkdiNfuq9kEJ0e9D48u9lrX4ZKE79ZNEvaYSDXxly7EF8 INGOe8mjjuKZjDDXTRWPgFDN5t7/U7svBI8iKyktHnNI8PVkDttnSswMS1aixjce7Rjf VVT5s5oXg1bOIcMrxlkntfmHqQkIpBE6Qu7AEr5aQtK4TtmT6FgthGMbJcmpLT+vMAhC lTLHmmcv53g2153KJsffReWlXgnxhr69K1b8YMLG0D8RzzYWQeORmtdBNrdNd6H29uW8 juVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690919691; x=1691524491; h=subject:references:in-reply-to:message-id:to:from:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zZLIdcpxz4d9O6sOoKQUpivIkIXzlNbsT2/qRVjpaPI=; b=NyK3bSuUyXo/fkrIAu45g6cg257ihVq8YTFgLNSpEFnlKW6YYaXMCKuEF9crUUGLmg Ws3oQAbftUHKMgeQkLDE4r16H/OjdAF+STYd/FtDkzAiX4Rd7ZMGov/McAqTlz93/lNd UYnSe4vgwUXQYdXXJDjbglwxRjBpbqppidyyfCRt8sHm4GWCTqH880nEvqxTsuZnHy5F 7jfuTKDexWgwl/x8l2NPx9Pwo4QK0RBOXb3cQRr8lkTHHy6D6TMPPQAfwIPRCLejSUpX wHtbcFpNWap/7pAwmTusmWQybpKGZ2NQDw4sDd/AEv3sU8uzZaNbKo2ujeygpaMMqHuD Z7JQ== X-Gm-Message-State: ABy/qLaFdPSz5Xi3fhB0gMOpk31QJTyupDLANWZGpMLexKIbQGgOiWB+ C1Nrhu8b1A0QDEbnUYvkZ9jnN/NfURDpDw== X-Google-Smtp-Source: APBJJlEuGGPivOh03HI/O0wz/ki26d6rTeKF9T6/auBtyE/NSPA8tMsTXba6xfY8nSLzHgfuA8DYOA== X-Received: by 2002:a05:6e02:dcc:b0:346:7c6d:c667 with SMTP id l12-20020a056e020dcc00b003467c6dc667mr11753659ilj.13.1690919690782; Tue, 01 Aug 2023 12:54:50 -0700 (PDT) Original-Received: from localhost (224.90.239.35.bc.googleusercontent.com. [35.239.90.224]) by smtp.gmail.com with ESMTPSA id f18-20020a056e0204d200b00345840d442csm4074607ils.66.2023.08.01.12.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 12:54:50 -0700 (PDT) X-Shortwave-Message-Id: m-2aafb2e3-87ce-42db-ba09-612c5a459ccc In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::131; envelope-from=thibaut.verron@gmail.com; helo=mail-il1-x131.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:144544 Archived-At: > It looks up x: "runs the command self-insert-command (found in > global-m= ap), which is an interactive built-in function in =E2=80=98C source > code= =E2=80=99 =2E=2E=2E" Even with emacs -q? Are you perhaps trying to use Me= ta like you use Esc, releasing Alt before you press x ? > Alt or ESC, or b= oth? Both, but I'm only surprised about Alt, Esc should always work=2E On= Tue Aug 1, 2023, 04:25 PM GMT, hw wrote: > On T= ue, 2023-08-01 at 17:09 +0200, Thibaut Verron wrote: >> On 01/08/2023 16:21= , hw wrote: >> > >> > > If not, Meta is usually bound to a modifier key (af= aik by default the >> > > one immediately left of the space bar, e=2Eg=2E a= lt on PC keyboards), and >> > > that works in vterm=2E >> > Uhm, I've been = using emacs for over 30 years and in all these years, >> > the ESC key was = always used for a meta key across all instances by >> > default=2E It's the= same when running emacs in a terminal, as an X11 >> > client or with wayla= nd=2E >> >> Yes, that is still the case=2E Alt is bound to Meta (as a modif= ier) on GUI >> clients, and so is Esc (as a prefix)=2E > > Alt doesn't real= ly do much=2E >> > The key left of the space bar has always been the Alt ke= y on all PC >> > keyboards I've used so far=2E Pressing, for example, Alt-x= , inserts x >> > into the buffer (like into this buffer I'm writing this re= ply in, and >> > into the vterm buffer)=2E >> > >> > How is it that it's di= fferent for you? >> >> I have no idea! It should be the default behavior, a= t least for GUI >> Emacs: Meta (the emacs modifier) is bound to Alt (the mo= difier key), and >> Alt is free to bind to another modifier=2E I would gues= s that either your >> keyboard has an unconventional mapping, or your Emacs= has an >> unconventional setting=2E > > I have used quite a few different = keyboards over the decades, so > that's probably not it=2E >> How is it wit= h emacs -q? >> >> What key does C-h k Alt-x look up for you? M-x, A-x, or x= ? > > It looks up x: "runs the command self-insert-command (found in > glob= al-map), which is an interactive built-in function in =E2=80=98C source > c= ode=E2=80=99 =2E=2E=2E" > > It used to be possible to do stuff with key bin= dings through xmodmap=2E > I haven't been able to do anything like that wit= h wayland=2E >> >> Best wishes, >> >> Thibaut >> >> PS=2E I just tried it i= n a terminal and it also works there, I was not >> expecting it=2E But it m= ight depend on the capabilities of your terminal >> emulator=2E > > Alt or = ESC, or both? > >