From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: hw Newsgroups: gmane.emacs.help Subject: Re: vterm and Meta? Date: Tue, 01 Aug 2023 18:25:35 +0200 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="24695"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 01 18:26:26 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 1qQsCY-0006Br-38 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 18:26:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQsBu-0001rA-JV; Tue, 01 Aug 2023 12:25:46 -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 1qQsBr-0001qN-Ly for help-gnu-emacs@gnu.org; Tue, 01 Aug 2023 12:25:43 -0400 Original-Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQsBp-0007xU-6A for help-gnu-emacs@gnu.org; Tue, 01 Aug 2023 12:25:43 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1690907136; cv=none; d=strato.com; s=strato-dkim-0002; b=f9RqZlhdJwcOxMEX2xBFa/5lkfooL1M+wJVTg8pYdmJ2R5zvuVPJkKogmXfVicJwa3 ORZYtjeWjLWtr4bG3clxb4znWg4pc+E8xnKoExn1SZilCzRk0L6loDkOg5iS9K+OWuwv jfaAqF+erHksehtu6WgA9E3KzmB06pcsOq7191rOnDWhqo+k5nRmZuUfm4jXedn7Pbn1 i6IULZdDTJu1DX8J06Y7wFYe7wfLIU1gjVtzegk2mY45kUpMOwi2n0HhkzX6tqzYJKaR ufPon+rkZzADX9t5IrzOxrbMG3g7mCIRr3bLja/beydNuMuul/cDxALSkCnDEEMLQLfZ nOtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1690907136; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=kfMu5cOUYoS3Fs/Qjk4g+Rqi1JyhNt3kXB5zfNUzBmU=; b=hV3WBEs+5mz87e9u/JQP040YJs0rmV3hQLWYkWF9ByG+GYVSuWiL6KBDiBAC0LINGd tUuekOh00S7RgG72Sy+TNZnJXiqSeYa4U2eYTuczgOG4zV0ZymtXAXBO0J272f6sO/Wp OimeCToCIJ2oWwgEgzqow3m76r5OJfZT/VTzrQyOCsKbpteVpKtV+l338y8h/lRU7UYR NVwZQbbba2/82Es6+4/CBkJDqLQWxIZ3xDHCA17tPCImmkO6DfAK6TT/aZ/T5EzRiJH7 /Wz3aSspI2r2QxnJmInKdNH4tYTMU6f7vGbvNN03Xu7jrWQpJ7d2FYYEtM//3Cb5tP6O FnEw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1690907136; s=strato-dkim-0002; d=adminart.net; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=kfMu5cOUYoS3Fs/Qjk4g+Rqi1JyhNt3kXB5zfNUzBmU=; b=U0MP7tYDutQ1BbPlhazuPCTmjPRU++ZLELIJJ5/cVwsFN0TfbVqd1UJUV046SrHyV/ +aip0u48vq8BKY8RFrIOLxm4RuCTuDWTe3SqgtaXASkiVYKeiu/pvOrWmIDJsEZ+r0P+ Jm1HRvtoYIRCjQjQxgCr7dn9sDL6jrKu3b/6A2izPkz6/AeUFEqPQK7tyYuqWeOnlgXz NDH3gWMkzdzDrijNproAs37tvhYIb1FFRuNvwrfulkiOApmVgJIGILTD0noCcvy6oBpV uiuJIo+F6rjMwSH9gZ1T8xMdI3x6wChOohKdnvwhqb/3Xst03/KRwH1KqvLSNNm44KtI hAKg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1690907136; s=strato-dkim-0003; d=adminart.net; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=kfMu5cOUYoS3Fs/Qjk4g+Rqi1JyhNt3kXB5zfNUzBmU=; b=uGkHw55z/EwXLVxEmXTW17IOHT278/zkSPo3nmMcbnHoy15N2xnQay3pUcgCYiHEGQ 8ePPrdc/1KPBBNeYacBg== X-RZG-AUTH: ":O2kGeEG7b/pS1Ey9Rna9iAZFrfz26y6zbtmqiE/f0+UVPWzfkhbRoUzSCTTNnjIupuXQshKqSG7HgphPv/kc/YeRUrW7Q+K30FhwK6zFf7Z8m4qs" Original-Received: from [IPv6:2a09:8e40:1122:f400:f177:7f3c:18f2:8e66] by smtp.strato.de (RZmta 49.6.6 AUTH) with ESMTPSA id Qbac0bz71GPaWvD (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Tue, 1 Aug 2023 18:25:36 +0200 (CEST) In-Reply-To: <84a152e2-2332-9a18-3bd6-51b08ea4e6a1@gmail.com> Received-SPF: none client-ip=81.169.146.162; envelope-from=hw@adminart.net; helo=mo4-p00-ob.smtp.rzone.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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:144536 Archived-At: On Tue, 2023-08-01 at 17:09 +0200, Thibaut Verron wrote: > On 01/08/2023 16:21, hw wrote: > >=20 > > > If not, Meta is usually bound to a modifier key (afaik by default the > > > one immediately left of the space bar, e.g. alt on PC keyboards), and > > > that works in vterm. > > 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. It's the same when running emacs in a terminal, as an X11 > > client or with wayland. >=20 > Yes, that is still the case. Alt is bound to Meta (as a modifier) on GUI= =20 > clients, and so is Esc (as a prefix). Alt doesn't really do much. > > The key left of the space bar has always been the Alt key on all PC > > keyboards I've used so far. Pressing, for example, Alt-x, inserts x > > into the buffer (like into this buffer I'm writing this reply in, and > > into the vterm buffer). > >=20 > > How is it that it's different for you? >=20 > I have no idea! It should be the default behavior, at least for GUI=20 > Emacs: Meta (the emacs modifier) is bound to Alt (the modifier key), and= =20 > Alt is free to bind to another modifier. I would guess that either your= =20 > keyboard has an unconventional mapping, or your Emacs has an=20 > unconventional setting. I have used quite a few different keyboards over the decades, so that's probably not it. > How is it with emacs -q? >=20 > 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 global-map), which is an interactive built-in function in =E2=80=98C source code=E2=80=99 ..." It used to be possible to do stuff with key bindings through xmodmap. I haven't been able to do anything like that with wayland. >=20 > Best wishes, >=20 > Thibaut >=20 > PS. I just tried it in a terminal and it also works there, I was not=20 > expecting it. But it might depend on the capabilities of your terminal= =20 > emulator. Alt or ESC, or both?