From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: New Context Menu Date: Wed, 25 Aug 2021 02:41:56 +0700 Message-ID: References: <83y28wyozn.fsf@gnu.org> <87a6l8it83.fsf@mail.linkov.net> <83sfz0wfxz.fsf@gnu.org> <87y28sqhq8.fsf@mail.linkov.net> <83lf4sw246.fsf@gnu.org> <87o89oqcpv.fsf@mail.linkov.net> <20210823180207.ud2v7aar5ws5l7yj@Ergus> <87wnob1iik.fsf@mail.linkov.net> <87a6l7tgqx.fsf@aol.com> <20210824160552.mtr5fvglhywsjpq2@Ergus> 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="5332"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Emacs developers , Juri Linkov To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 24 21:43:43 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mIcKl-0001CC-OH for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 21:43:43 +0200 Original-Received: from localhost ([::1]:48670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIcKk-0008Hj-9u for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 15:43:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIcJZ-0007Ta-KB for emacs-devel@gnu.org; Tue, 24 Aug 2021 15:42:29 -0400 Original-Received: from mail-vk1-xa2d.google.com ([2607:f8b0:4864:20::a2d]:34394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIcJM-0000qQ-4O; Tue, 24 Aug 2021 15:42:29 -0400 Original-Received: by mail-vk1-xa2d.google.com with SMTP id 1so5863450vkk.1; Tue, 24 Aug 2021 12:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gbo0/WbzdVdWWc11GxanOtWhOsjzLQ4q3JFYVFgUzBU=; b=pG6Wt9npoPM82WspcKauzZ96dMjNEVns0cy45Ear+OjSxxOINoiO/oMT6Nx7I6raet CJ3vG7a6eq6ithoBxXbk7bZt/GCxmDdSgH9/Q8c9qHByVVQFkvNnSI+JZ5h81BTiUQ/0 uCpuCVQNMU2Lurw1scTOcnRDm72qN6DpkuhwRXpCWx+EuaojMy8ML6Py2JXpO5clXEej kaOPSrTXo26AIEbw7FN0Q6CRJdXpfb9QTm2nksEZHxZ/wHGVbyO42jFv0UDG7Xzy0klE PwwZxzjNe4EhjtK8YjAuTtpThN1yot/IJOa5W6x0uUAnD2u8Eax1l1F4+LnYPOURZQOI l4Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gbo0/WbzdVdWWc11GxanOtWhOsjzLQ4q3JFYVFgUzBU=; b=gc1z48i7HJOPS4zd15byP/46aYwOz/hCIFHdL54r7nwgRkbDiFQUapZkXr6prXVQYE Mfp9nckunVujRqMGACv+LHhheT5WLqgvgwBzm9WPTk2Ojzg86r5xZ48KPwYhp6gAFWZf WpBWA9Jv9FSBaJpvykrP08WklH6lniL5As1DkkwUNYscHt+OVi3e12zdFeVgcBhh6Pug /kYsbck2qzT6K9+KuL/iSVczW8ZWgPWiqxM7l9Js2W/6eH1J6WFp/rAHAeuNq6EjLFG8 ZIk6kovGmecM61SF9su5KXPL7vSxbFQgpsPaJmCdr/rLAyrEkKR9MtKMVwqdwBDBwkv4 LxmQ== X-Gm-Message-State: AOAM5327H7P9jICNox7OqFEHwG5dTo/44pBHDAco1idmmymHwkt0YkNe cAiYUQmP9SyfzYPNJ4mmlcH/n9/Ez5QgDZeSKtg= X-Google-Smtp-Source: ABdhPJyn0QXo0VVCE2LlN0B+ymIg2ehTAtW9lagB/jNMfiOa5mDAWCfKfP74iP6Zi5jQBOIab98Lc2nawnZh6UO50ek= X-Received: by 2002:a1f:3213:: with SMTP id y19mr27278778vky.13.1629834128520; Tue, 24 Aug 2021 12:42:08 -0700 (PDT) In-Reply-To: <20210824160552.mtr5fvglhywsjpq2@Ergus> Received-SPF: pass client-ip=2607:f8b0:4864:20::a2d; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa2d.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272920 Archived-At: On Tue, 24 Aug 2021 at 23:06, Ergus wrote: > It is not wrong actually. Because keys like [menu] require an > alternative for those that don't have such a key. That's why in some > emulators they are the same sequence than some other complex > combinations like S- or C-S-; or some keys not present in our > keyboards anymore (like ) but can be emulated with combinations. The alternative for people who don=E2=80=99t have Menu is Shift+F10. Has be= en since Windows 95 and is adopted by GTK applications. And wxWidgets applications. And maybe other X toolkits as well. Shift+F6 is =E2=80=9Cgo to previous pane=E2=80=9D in Windows guidelines. Le= ave that for people who want an easier key than C-- C-x o. What I=E2=80=99m opposed to is doing things in an application to cover for = a design flaw in a single terminal emulator. > >* Push for terminfo to include a string capability that indicates the > >sequence sent by the Menu key. Push for the terminfo database to > >include that capability for major terminal emulators. > > > I already discussed this with the xterm developer, but the current > translation is direct and does not rely on tricks in the emulator > side. Xterm actually can distinguish between them, but I can't force > every emacs user to use xterm because it is very limited in many > aspects. How is it direct? The evdev keycode is 135. CSI 2 9 ~ is the VT220 sequence for F16; in evdev, is 194. (F16 also somewhat explains rxvt=E2=80=99s Shift+F6, by pretending Shift+F<= n> is F<10+n>. Still wrong, because there are 12 function keys! Also because one can build a keyboard that has both F16 and Menu, as USB HID Tables assign different codes to these.) > Actually the recommended terminal emulator to work with emacs is > xterm. It is the most compatible and actually was a topic of a previous > discussion/question I did long time ago. The most compatible with what? VT220? Not relevant nowadays. PC keyboard that most everybody has on their desk? No. > xterm allows to distinguish between S- and the [menu] sequence, they > are different. But urxvt and many others don't; so that will imply that > in urxvt, the context menu will take at least 3 keys when bound to > [S-f10]. Because binding to [menu] will also take [S-f6]. That's what I > want to avoid. Also because S- is already taken. To avoid having Menu take Shift+F6, get rxvt to use different sequences for Menu and Shift+F6.