From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David McCracken Newsgroups: gmane.emacs.bugs Subject: bug#60669: Linux Emacs 27.1 custom toolbar icons Date: Sun, 8 Jan 2023 13:01:26 -0800 Message-ID: <998e8e01-2c89-da4b-9c36-83b987af3bdf@ixont.com> 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="31308"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: 60669@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 09 00:40:18 2023 Return-path: Envelope-to: geb-bug-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 1pEfGz-0007za-Tp for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Jan 2023 00:40:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEfGt-0003uY-Lp; Sun, 08 Jan 2023 18:40:11 -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 1pEfGl-0003tu-DC for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 18:40:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEfGk-0000VX-TW for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 18:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEfGk-0000Gz-Nn for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 18:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David McCracken Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Jan 2023 23:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60669 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1673221148950 (code B ref -1); Sun, 08 Jan 2023 23:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jan 2023 23:39:08 +0000 Original-Received: from localhost ([127.0.0.1]:34981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEfFs-0000FA-F2 for submit@debbugs.gnu.org; Sun, 08 Jan 2023 18:39:08 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:36264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEdHc-0000vp-UA for submit@debbugs.gnu.org; Sun, 08 Jan 2023 16:32:52 -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 1pEdHc-0008De-Ox for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 16:32:48 -0500 Original-Received: from bosmailout05.eigbox.net ([66.96.188.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEdHb-0002fk-6W for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 16:32:48 -0500 Original-Received: from [10.20.15.1] (helo=bosmailscan01.eigbox.net) by bosmailout05.eigbox.net with esmtp (Exim) id 1pEcnN-0005BT-8f for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 16:01:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ixont.com; s=dkim; h=Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8BOnbff6202Xev9WX6QqGP1gJePPYBgcQy+T1mscRmY=; b=CL9ig+41vLqNxVIbjLBdYqn4a9 tLMS+rJO0VQbmM/qUS1+zqKRLB0dZpW6ciE87TQ6Z71+pn+U/amVJk4eMBdoqBhusH2grTSCXvOvz NA/T0MmS7LaOLfwRK5Ti48LDg8vbHT5b91gxR+JbERGbEsvcgUCsQpaITJZ6bKyVqQ98XojMGQqpX MFzLOzcLVdfYzAAF4crxPM8LLF1CYIRmqAET3hh2avHpvtL7R1Sau3xlWx2YGcDL5uNqMHhCy8+4h 7iAsU4+cL3rVMmLRJiHuHWMmYgvl4An4/L5K0UmWzfry/13N69IlY7QC6+eHMG/30ggbmEMLTCjhX sa9db6vA==; Original-Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan01.eigbox.net with esmtp (Exim) id 1pEcnM-0006v3-56 for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 16:01:32 -0500 Original-Received: from bosauthsmtp08.yourhostingaccount.com ([10.20.18.8]) by bosimpout12 with id 6M1V290010ASroS01M1YuS; Sun, 08 Jan 2023 16:01:32 -0500 X-Authority-Analysis: v=2.3 cv=d4VuNSrE c=1 sm=1 tr=0 a=BF10AaGwQl41phDg7WSPyA==:117 a=8V9CQAzvb1UE/5s8aP8Njg==:17 a=IkcTkHD0fZMA:10 a=RvmDmJFTN0MA:10 a=mKwSscnsFN4A:10 a=ftvGiPgexfJggSUz8EAA:9 a=QEXdDO2ut3YA:10 Original-Received: from 23-115-169-72.lightspeed.mtryca.sbcglobal.net ([23.115.169.72]:60266 helo=[192.168.1.66]) by bosauthsmtp08.eigbox.net with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) id 1pEcnI-0008Cr-RE for bug-gnu-emacs@gnu.org; Sun, 08 Jan 2023 16:01:28 -0500 Content-Language: en-US X-EN-UserInfo: 7db9acb10a66b5d38e8efde72e4a1877:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: davidm@ixont.com X-EN-OrigIP: 23.115.169.72 X-EN-OrigHost: 23-115-169-72.lightspeed.mtryca.sbcglobal.net Received-SPF: pass client-ip=66.96.188.5; envelope-from=SRS0=lx//uD=5F=ixont.com=davidm@eigbox.net; helo=bosmailout05.eigbox.net X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 08 Jan 2023 18:39:03 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252970 Archived-At: The Emacs 27.1 provided (apt-get install) by Ubuntu 22.04 reduces support for custom toolbar icons. It only works with B/W pbm files and only if located in /usr/share/emacs/27.1/etc/images and only if there isn't an xpm file with the same base name. i.e. name.pbm works but not if there is a name.xpm in the directory. If these conditions are not met nothing is displayed. This does not seem to be baked into Emacs 27.1 because these restrictions don't exist in Windows Emacs 27.1. They are also not inherent in Linux because they don't exist in Linux Emacs 26.1. There are two serious problems with these seemingly unnecessary changes. B/W icons reduce not just the aesthetic quality but also subtle visual clues that help an icon convey its meaning. Accepting only icons in the version-numbered installation directory means that custom icons are wiped out by upgrading Emacs. The installer program I provide with my Emacs library stores its (xpm) icons in ~/icons (a directory created by my installer). My library accesses these by e.g. (tool-bar-add-item "~/icons/lxa-pin" Linux Emacs 27.1 is the only version in which this does not work. To test whether it does not like that the directory is relatively insecure, I tried moving my icons to /usr/local but they were still ignored. In all other versions, adding the xpm extension to the reference causes it to fail but I tested this anyway and it accomplished nothing.