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#71162: bug-gnu-emacs@gnu.org Date: Sat, 25 May 2024 13:04:34 -0700 Message-ID: <601ad8ef-9b45-4cf5-8f28-18cf8bfa038c@ixont.com> References: <86wmnj3fc5.fsf@gnu.org> 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="21845"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71162@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 25 22:05:27 2024 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 1sAxdu-0005Pv-Kf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 May 2024 22:05:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAxdQ-0000oL-45; Sat, 25 May 2024 16:04:56 -0400 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 1sAxdO-0000np-J9 for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 16:04:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAxdO-0004TH-AY for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 16:04:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAxdV-00071S-WE for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 16:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David McCracken Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2024 20:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71162 X-GNU-PR-Package: emacs Original-Received: via spool by 71162-submit@debbugs.gnu.org id=B71162.171666750026983 (code B ref 71162); Sat, 25 May 2024 20:05:01 +0000 Original-Received: (at 71162) by debbugs.gnu.org; 25 May 2024 20:05:00 +0000 Original-Received: from localhost ([127.0.0.1]:45366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAxdT-000719-Le for submit@debbugs.gnu.org; Sat, 25 May 2024 16:05:00 -0400 Original-Received: from bosmailout09.eigbox.net ([66.96.189.9]:53307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAxdS-000713-Ae for 71162@debbugs.gnu.org; Sat, 25 May 2024 16:04:58 -0400 Original-Received: from bosmailscan09.eigbox.net ([10.20.15.9]) by bosmailout09.eigbox.net with esmtp (Exim) id 1sAxdD-0005JF-5O for 71162@debbugs.gnu.org; Sat, 25 May 2024 16:04:43 -0400 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:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lNcMQ+3w0Dnjz8/IOb277SyC+CaFFR7E3sEP6WbDc1E=; b=HLkBsYMfCNqe/OeGikvRcz6Bd4 ivkm726DuyF5RT2Yufrp5qu5i3KKMjTKpcrOhuK2rX62xAGm6cdAkNNViBS8mNYrm7ft8miKWFdhM 7siDioytgQb2gxYLd5xFKsteVbw4rSTB38K5HEQeqt8eYkQjwWPhsFj+D+WBtmZMxRJflnIaa/b+J 4WIydohUF/vVTWkZVRqmH7w5zC8IuA4cijAw6V0O0vV70uE4KKq9fBud8385r/yL16/KDtcKHOB4/ WeieeidYp4GJpaANoiOWi9dygKGmkBThJLWZsxqdak+vqRoohc6qHAKiCCZgMziHBt1X174BqpdPK vpnzjwIQ==; Original-Received: from [10.115.3.33] (helo=bosimpout13) by bosmailscan09.eigbox.net with esmtp (Exim) id 1sAxdA-0000XA-Qg for 71162@debbugs.gnu.org; Sat, 25 May 2024 16:04:40 -0400 Original-Received: from bosauthsmtp11.yourhostingaccount.com ([10.20.18.11]) by bosimpout13 with id TY4d2C0050EKspE01Y4gNH; Sat, 25 May 2024 16:04:40 -0400 X-Authority-Analysis: v=2.3 cv=Df2MVslW c=1 sm=1 tr=0 a=anyYG9rjTBM1sAjEBQ8Cew==:117 a=8V9CQAzvb1UE/5s8aP8Njg==:17 a=mDV3o1hIAAAA:8 a=IkcTkHD0fZMA:10 a=dr0PN7AwTpEA:10 a=TpHVaj0NuXgA:10 a=5uJjYwlGAAAA:8 a=_sCHbt-FhbEU9YVjU8AA:9 a=QEXdDO2ut3YA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=BFCC1qkpAUusnFHpP09J:22 Original-Received: from 23-115-169-72.lightspeed.mtryca.sbcglobal.net ([23.115.169.72]:60431 helo=[192.168.1.66]) by bosauthsmtp11.eigbox.net with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) id 1sAxd7-0002sI-FC; Sat, 25 May 2024 16:04:37 -0400 Content-Language: en-US In-Reply-To: <86wmnj3fc5.fsf@gnu.org> 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 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:285910 Archived-At: Sorry about my previous question about finding the source of tool-bar--image-expression. tool-bar.el.gz was easy to find. The 26.3 and 27.1 versions are not identical but the differences are unrelated to either of the problems I have encountered. I am going to instrument the function to try to track down the problem but I suspect that Ubuntu is the cause. Replacing Emacs 27.1 with 26.3 without changing the OS would answer the question but I don't know how to do this. I always just used apt-get install emacs. How can I install a downrev? On 2024-05-23 11:15 PM, Eli Zaretskii wrote: >> Date: Thu, 23 May 2024 21:08:24 -0700 >> From: David McCracken >> >> I have developed a library that includes a toolbar with custom icons. It >> works in all versions of Emacs in Windows and in Emacs version 26.3 >> under Ubuntu-Mate 20.54 but the toolbar doesn't work in Emacs 27.1 under >> Ubuntu-Mate 22.04. In my preferred configuration I put my icons under >> the user home directory so that this doesn't change if Emacs is >> updated. My library accesses this with e.g. >> (tool-bar-add-item "~/icons/lxa-next" >> to use my lxa-next.xpm icon. In Emacs 26.3 it also works to put my icon >> in /usr/share/emacs/26.3/etc/images and refer to it as simply >> "lxa-next". Emacs 27.1 shows nothing either way. My lxa-next.xpm appears >> similar to the native lock-broken.xpm (4.7kB vs. 4.6kB) so I >> experimented referring to that instead of mine and it worked. I also >> tested left-arrow but instead of left-arrow.xpm or pbm, it showed a very >> plain < image that doesn't exist in the images directory. It should be >> noted that there is a lock-broken.pbm but the xpm version was >> automatically selected. The icon selection mechanism of Emacs 26.3 is >> usable but could be improved by accepting an explicit icon file >> extension. That of 27.1 is unusable and, unless we can fix it, I will >> have to advise users of my library to install an older version of Emacs. > I tried to visit the XPM file you attached, and it displays okay with > both Emacs 27.1 and the current development version, at least on > MS-Windows. So I don't see a reason why this would not work on a tool > bar. I suggest that you post some minimal Lisp code that displays > these icons on the Emacs tool bar, starting from "emacs -Q", and then > we could try the code and see if the problem can be reproduced and > debugged. > > Btw, to clarify: you are saying that your XPM icons don't work in > Emacs 27.1 both on MS-Windows and on Ubuntu? Or only on Ubuntu? > > Thanks.