From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: master 47e313e9805: Unbind 'C-M-i' in Text mode Date: Wed, 6 Dec 2023 16:33:44 +0200 Message-ID: <5770145a-7c7b-f6e9-f004-9041f7e98657@gutov.dev> References: <170099515102.15929.4538081255360222923@vcs2.savannah.gnu.org> <20231126103911.6CEAFC25D5B@vcs2.savannah.gnu.org> <75c363c1-0dfd-c223-74f1-d98af65b3094@gutov.dev> <4db81b72-9a95-0d66-d623-31002ecdff08@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22761"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: emacs-devel@gnu.org To: Eshel Yaron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 06 15:34:54 2023 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 1rAszF-0005cy-Ig for ged-emacs-devel@m.gmane-mx.org; Wed, 06 Dec 2023 15:34:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAsyH-0006MU-2L; Wed, 06 Dec 2023 09:33:53 -0500 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 1rAsyF-0006Lb-Hb for emacs-devel@gnu.org; Wed, 06 Dec 2023 09:33:51 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rAsyD-0005LI-IP for emacs-devel@gnu.org; Wed, 06 Dec 2023 09:33:51 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 973475C0197; Wed, 6 Dec 2023 09:33:48 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 06 Dec 2023 09:33:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1701873228; x=1701959628; bh=Bgx1zOszxJF82axBa4N8iekCit/oZcKtK5y NOpPmepw=; b=ndd2ZYM9ljJTGjZSuwjOTPyH+IDS8GGZCx5AeT7Yskpqw41iFD/ fiswAl44LlkfFOnrST7s/htH3YjyZyy9e/AMWKfBhbo7uPFifRhf4SMBqXLdELEG sF+g67SE0bclwdB3igBUOVfmRAwt7mP8sS8NfKPZ/5Dn5E1yl4zLvJVxQl8I/+nb DSpa5bnxL+rCbJNbUde4VyTuWb1nbM01BCHxWzm+f+jJIdi8AwruVc2Gx7JmLGFH nPK8QW6w0Xhnz5VmGZW3b54wxPkgH9d8NxHXCYsarf/ZwIk5ipHVCWnAi15Irvs2 3k6rh95hJaV2lEO/vYp6P7lrLcqQGu7IbGg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701873228; x=1701959628; bh=Bgx1zOszxJF82axBa4N8iekCit/oZcKtK5y NOpPmepw=; b=M3PGrnyPAkfNPpKz5f5tfdWYy9XO04EajHGx9BQkR1wPoX6yhUv Yv4o8M7Kqsa4R/PFrh5s3ARKwe7thpFyDJD43ILA/T0nzhXrEVVt1DSntQy3V2tI SxhSxBP98b0M+HsedSezHFkuFCX3nJfeS8vrSmCSlOxvoPT8C6KFZtQh6UtbnxSX duIPnoA90dh+Cu7SrHdjSTUkU+/A7XJRBqSCJHH0Q6cLiwBIh7ZehQftkZmjBpXs IkoBfojZK0VhEF2P6lJDKStH2cTbGxX1S/aVKfcuOAqZKe39nAUrpjVip8o16y7y nC6T6Tg3XWMSW9RhSnyfWQFS/WURtKhPd/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudektddgieekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ejredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeeigfetveehveevffehledtueekie eikeeufeegudfgfeeghfdulefgfeevledvveenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Dec 2023 09:33:47 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.28; envelope-from=dmitry@gutov.dev; helo=out4-smtp.messagingengine.com X-Spam_score_int: -67 X-Spam_score: -6.8 X-Spam_bar: ------ X-Spam_report: (-6.8 / 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, NICE_REPLY_A=-4.02, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313561 Archived-At: On 06/12/2023 15:56, Eshel Yaron wrote: >> My preference would be "no annotation at all", if we're talking about >> simple solutions. > > Fine by me. I'm attaching a simple patch that does that. Thanks, pushed. >> The fourth option was a newspaper emoji? > > Well, it's supposed to be a book, you get it with `C-x 8 RET book RET`. Cool. >> I think the more comprehensive approach here would be to implement >> support for `:company-kind` in the default UI, and then return `text' >> in that function. > > I agree, that would be nice in general and help here too. For this case > I was also thinking about using the common part-of-speech of each word > as its annotation (e.g. "n" for nouns, "v" for verbs...) but we don't > get that information from the spelling dictionary, unfortunately. Note that this implementation approach conflates presentation with information. Symbolic values in company-kind with a pre-defined registry allow showing icons in GUI and prettily-formatted letters in the terminal. Being able to choose narrower categories sometimes could be handy, though.