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: Tue, 24 Aug 2021 18:44:44 +0700 Message-ID: References: <838s0w1hiz.fsf@gnu.org> <871r6odq3s.fsf@mail.linkov.net> <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> 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="31927"; 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 13:46:07 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 1mIUsY-00088P-R8 for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 13:46:06 +0200 Original-Received: from localhost ([::1]:40694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIUsX-0001sO-Qj for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 07:46:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIUrT-0000vu-Qz for emacs-devel@gnu.org; Tue, 24 Aug 2021 07:44:59 -0400 Original-Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:34761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIUrS-0007tw-AD; Tue, 24 Aug 2021 07:44:59 -0400 Original-Received: by mail-ua1-x92d.google.com with SMTP id l24so5735790uai.1; Tue, 24 Aug 2021 04:44:56 -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; bh=0HafFEoQJ9I8WCKrxAuRbZ2CKs0huMlhVVldn+CIk6I=; b=bp1zyP9WrT+GadKKD/Moh5HlXSS2xPODwGyQWD7ktqKslB7BU0Lu+WahcTmO8FvFOT HSptFkcehfLKnps2WGAHrihxXwQDLi6gjkl5FxuLLlmc+FEdD4EsIaLXioPp7ihCAzA+ NaXTHuw3RJHulvKws0ksDDX/njqfOa6NGU5i9KzMdyYA7FTjjPo4GfxZ1SupZpL3QCuX SnXkcz6Ss5VjBFuLzGKD1bMGLrwDcxaxel8PFqwIsZrmMFxokKxf8V6GnG/7f6nZ4jRP iMJqayyiaSkBfFbKuTN8tcckP3Cx2WaFOWbZ7roCcYVP7/fu/K/elSYvkPj8ZD6+fszz xXZg== 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; bh=0HafFEoQJ9I8WCKrxAuRbZ2CKs0huMlhVVldn+CIk6I=; b=UFPIjb5XDKF24OksBqDsu4zaIRDXuE0AjkgKQPS7ZW4AAMXrkUP5vPGPfiRQ02QhYJ kDYes8iMugb9x1oCZ2KkEfDV43U1Qbi8ML6a271SG7oRXqTadDzq2LoxMRUTeUcAlz7d cOTETMkTiylOIa8BRNhd+Ludzhtq5C+dhSf9lcy2Bnb28Hs/S4fIS4aSeyIDEyekJmdZ jEjFovbiCh2yGEssDdxWa9/8msgAzaiJl7CUIU7HCPyKlk2x0hDBIWHIJP01ZXL9pwYB bPPJwvZmAqFKs9p03q2CSfNJGiKqznChhds6VFpROP5n72leKp6mtGdb7TMN38k6K127 6j0g== X-Gm-Message-State: AOAM530JlUKwNYNUDZldUgyfIiIonnTY53bACCHUiOt/aBC6UXlrO4BY stRd3c/4aBvy/04M4fyLUzYXW+I8Pc4esIBbAMk= X-Google-Smtp-Source: ABdhPJzR+cO3XIXE6ODub6wGM80OmFMhy+kndYJUodNIc7wuIqgzkcdNVRUHPGWCRbp50QpS5mjpUTzn5bvFbUPnOxc= X-Received: by 2002:a05:6102:34e5:: with SMTP id bi5mr12438413vsb.38.1629805496238; Tue, 24 Aug 2021 04:44:56 -0700 (PDT) In-Reply-To: <87a6l7tgqx.fsf@aol.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::92d; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92d.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:272905 Archived-At: On Tue, 24 Aug 2021 at 15:01, Ergus wrote: > >> lk201.el:35: (define-key map "\e[29~" [menu]) > >> rxvt.el:67: (define-key map "\e[29~" [S-f6]) > >> xterm.el:353: (define-key map "\e[29~" [print]) > >> > >> where "\e[29~" is the sequence the menu key sends. So maybe you could > >> use [S-f6] instead? > >> > >> That will make it work out of the box in urxvt. > > Maybe I miss explained myself. The idea to put it in [S-f6] is to make > the context menu work with the [menu] button out of the box when > available in urxvt (and on xterm if fixed). That would be wrong. Better: * 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. * Push for rxvt to change its Menu sequence to something different from Shift+F6, and submit that sequence to the terminfo database. * In rxvt.el, change \e[29~ to the new rxvt Menu sequence. Even better: * Use a terminal emulator that lets you distinguish all key combinations.