GNU bug report logs - #60669
Linux Emacs 27.1 custom toolbar icons

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: David McCracken <davidm@HIDDEN>; Keywords: moreinfo; dated Sun, 8 Jan 2023 23:40:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 60669 <at> debbugs.gnu.org:


Received: (at 60669) by debbugs.gnu.org; 9 Jan 2023 03:32:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 08 22:32:43 2023
Received: from localhost ([127.0.0.1]:35365 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pEitu-0000yp-U9
	for submit <at> debbugs.gnu.org; Sun, 08 Jan 2023 22:32:43 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pEits-0000yY-Gv
 for 60669 <at> debbugs.gnu.org; Sun, 08 Jan 2023 22:32:41 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pEitn-00031C-5z; Sun, 08 Jan 2023 22:32:35 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=cnLfaMY2/URPZ73tGxNEOoF8kxWEvoQ4IaxuGzvEanE=; b=QeNAxdDbCvw2
 6H3w6GMlJJROM/mAfRH1HVMZOjGLoX8XbiJC69JoUc0d9ubsCJmIbFPHa0zZRac5Xwz6ke2jeXflj
 rj6Pf71DN+8miu292eAF6bJM3yNkn+HkP4t6HFC1mqkhBu7yx+JbNaoIG9W2kZcAXz9abJQJPHnjn
 SRb4Um/xMGM/k+hUtyvnHVkZQwMTu3EVhCjEk9fOgxxIsDKvhggiyDskOji0GJeYgFLnr5CyGhppm
 q97zWWSMsF1ollmz3hk7VUwKAJ2kvzTOaer0XXTFYIGBOVffllEhyFrHbR1Syh+AMCndqQNoGtNM9
 KSyc6+xtIuLdg0E8YAWXww==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pEitm-0003SK-IW; Sun, 08 Jan 2023 22:32:34 -0500
Date: Mon, 09 Jan 2023 05:32:58 +0200
Message-Id: <83eds4pel1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: David McCracken <davidm@HIDDEN>
In-Reply-To: <998e8e01-2c89-da4b-9c36-83b987af3bdf@HIDDEN> (message from
 David McCracken on Sun, 8 Jan 2023 13:01:26 -0800)
Subject: Re: bug#60669: Linux Emacs 27.1 custom toolbar icons
References: <998e8e01-2c89-da4b-9c36-83b987af3bdf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 60669
Cc: 60669 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sun, 8 Jan 2023 13:01:26 -0800
> From: David McCracken <davidm@HIDDEN>
> 
> 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.

Can you please show a reproducible recipe, starting from "emacs -Q",
that exhibits the problem you are describing?  I don't think I
understand what exactly doesn't work in your case.

Also, please use "M-x report-emacs-bug" to post the details, as that
command collects important details about the Emacs build configuration
that make investigation easier.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#60669; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jan 2023 23:39:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 08 18:39:08 2023
Received: from localhost ([127.0.0.1]:34981 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pEfFs-0000FA-F2
	for submit <at> debbugs.gnu.org; Sun, 08 Jan 2023 18:39:08 -0500
Received: from lists.gnu.org ([209.51.188.17]:36264)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <SRS0=lx//uD=5F=ixont.com=davidm@HIDDEN>)
 id 1pEdHc-0000vp-UA
 for submit <at> debbugs.gnu.org; Sun, 08 Jan 2023 16:32:52 -0500
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 <SRS0=lx//uD=5F=ixont.com=davidm@HIDDEN>)
 id 1pEdHc-0008De-Ox
 for bug-gnu-emacs@HIDDEN; Sun, 08 Jan 2023 16:32:48 -0500
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 <SRS0=lx//uD=5F=ixont.com=davidm@HIDDEN>)
 id 1pEdHb-0002fk-6W
 for bug-gnu-emacs@HIDDEN; Sun, 08 Jan 2023 16:32:48 -0500
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@HIDDEN; 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==;
Received: from [10.115.3.32] (helo=bosimpout12)
 by bosmailscan01.eigbox.net with esmtp (Exim) id 1pEcnM-0006v3-56
 for bug-gnu-emacs@HIDDEN; Sun, 08 Jan 2023 16:01:32 -0500
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
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@HIDDEN; Sun, 08 Jan 2023 16:01:28 -0500
Message-ID: <998e8e01-2c89-da4b-9c36-83b987af3bdf@HIDDEN>
Date: Sun, 8 Jan 2023 13:01:26 -0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.6.1
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: David McCracken <davidm@HIDDEN>
Subject: Linux Emacs 27.1 custom toolbar icons
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-EN-UserInfo: 7db9acb10a66b5d38e8efde72e4a1877:931c98230c6409dcc37fa7e93b490c27
X-EN-AuthUser: davidm@HIDDEN
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@HIDDEN;
 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-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 08 Jan 2023 18:39:03 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.2 (-)

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.





Acknowledgement sent to David McCracken <davidm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#60669; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 10 Jan 2023 09:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.