From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: "modern" colors Re: Changes for emacs 28 Date: Sat, 12 Sep 2020 14:26:33 +0200 Message-ID: <20200912122633.gyvhlvwmzcpflo7o@Ergus> References: <20200909165723.kdnwicwvplmezusr@Ergus> <20200910102000.2t6tsju745xutg7u@Ergus> <20200910110832.ko66gqnqo4l664d6@Ergus> <20200911134225.zhnlq7cdhmu2iraj@Ergus> <20200911221435.go7b5kz2zcvxp2ft@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Gregory Heytings , "Alfred M. Szmidt" , TEC , Yuan Fu , Emacs developers To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 12 14:27:29 2020 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 1kH4cr-0004qS-4h for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Sep 2020 14:27:29 +0200 Original-Received: from localhost ([::1]:40450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kH4cq-0006TP-7W for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Sep 2020 08:27:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kH4c8-0005Xo-7r for emacs-devel@gnu.org; Sat, 12 Sep 2020 08:26:45 -0400 Original-Received: from sonic311-13.consmr.mail.bf2.yahoo.com ([74.6.131.123]:43650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kH4c5-0006bQ-HI for emacs-devel@gnu.org; Sat, 12 Sep 2020 08:26:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1599913599; bh=un9UDOgE28bK2JkxO2sRx07wJ+LIhP6TJjnUMwLV/V0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=Yc63qq1pd/3xzTg5KN9SAFkgmp3FQGJJg7gTfDMGc91wDWk73sIX70I7KbSfUh8BTYel0SOoKGb6f/NJUbHae+bwbqWQ/i8uCbgKknHhdf2fsAvffelCo+sJk5TtchZ2j0sj4eGk6vRSUBeM6/uGG8Na0/XQVO48tf6mr3woAhrHOEmjcZ7jJjRBQLu2TJGIhGnnDit1WN9025SWKJgWspoY3RngjlRoiEnfcGaRNefxldBfXibYBa3/81c8ioVMsitYJYp0cPSTCLf0kFmMPc6Tbhk5UT6n4xw3oph1hBnGiEVceASc3O4hhjGqMJAV1/TvVmiVbOXWrbdCWN/cPw== X-YMail-OSG: WyFKFdwVM1nQd4YTn9Tepfc_8kVAhXmgWFwCRckHMT7.W032QbCJc.BQaxZnAVO Lyno5azfOT.KgewYiFp52XdTCwizROcHCzpN2fgmKgdgqt9iAWUcf.mTZh62YuT.WnT3jsUN2dFh bSgHTMUndmxJWyeDM7PpwEgyWEzg2V0KSwsTP38JScIeC3FI2aJQXDD1AVJurtXvVy0KM0tvhncv .SpuQTFYubXq4qBueNDNjxrOlEcMy0UmWi2Iy_cs9Fo3Y2Mi.MCdAf0ez715erw01PFZffpG84zN e32qTsryRzbQJSC4Wb1W_lR8AsUlLnxhiriV.jNryrdZBaMdEkzU4SvFV.KKeGQFhREOrt8HJ4ih AaDmvhNkIGi8VMeFv7xDhW4ZLImI6ePtPwnmLHTVordXEzyZ3bYtpKKOCW2KPpNvUox1iljLTQ6c GazGffQ1qWBplIrbPkM2obZG_S_TYtk7A.OKkcPwqFF7yy9v2eBbUJTb.2ePa4oXagPCktC8xE7p wxfnSPpuYTtKlDYzJWuYaM8PUoF_9KAFDq8vVyGNxe3uDfnUjq_I5f9G3nXrdQGrbx2yFSWQuwcW mwA3VDqR6hs2tA0YjLx73PUj6wOqO_AMKhUa8zANCAeCUMkpYZq.pohaaBUGZjt0w63gdikfi_OF 0ByAy9cIHSPj2FPEyYq8RtAI5z63kocm5PV8Wkkp1XtSfx7rEbq2CNqpaK0uC7W8TxWS2Hpddasj JGQL1r.yIMK2yFLSRxDWwdBAl8LAuGHUh9rBBDPzt9xWWoWEFQKVUemY8P.SEwMZbcXT4YNeXIP4 gteQyNvf9SZEpBbEvy31aZxWBkJeHkRNZeiWiUVKoT Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Sat, 12 Sep 2020 12:26:39 +0000 Original-Received: by smtp422.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b78729427af703006bd3ec9804cc58f4; Sat, 12 Sep 2020 12:26:37 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.16583 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.131.123; envelope-from=spacibba@aol.com; helo=sonic311-13.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/12 08:26:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:255324 Archived-At: On Sat, Sep 12, 2020 at 06:13:38PM +0700, Yuri Khan wrote: >On Sat, 12 Sep 2020 at 05:15, Ergus wrote: > > >I want to clarify an important detail here. Right click is expected to >display a *context menu* and the context menu is expected to contain >commands that are related to the object that received the right click. >This does not always correlate with “the most common operations”. > >Right-clicking a misspelled word offers a list of possible >corrections. Right-clicking with a highlighted region offers Cut and >Copy. (Actually, Cut/Copy/Paste are always on the context menu for >text editors, and get enabled/disabled depending on availability.) In >a programming mode, right-clicking an identifier could offer >xref-find-definitions and xref-find-references. > >Applications made with greater attention to UI design also extend the >context menu functionality to other UI elements. Right-clicking a >toolbar offers to hide or customize it. Right-clicking a tab offers to >save or close the document. > >Implementing a context menu in Emacs is not a simple matter of binding > to any of the menus displayed by . Someone™ >needs to pick things that are relevant in each context. More likely, >each major mode needs to pick things that are appropriate in its >buffers. Totally agree (maybe not properly explained in my text). So far there is some work already done on external packages and the mode-specific menus have some information about the context. We only need to set that in a smarter way. It is not that complex so far, at least for the text part. But this goes beyond my capabilities and I don't think that the experts are convinced yet (for the moment).