From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71162: bug-gnu-emacs@gnu.org Date: Fri, 24 May 2024 09:15:54 +0300 Message-ID: <86wmnj3fc5.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3469"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71162@debbugs.gnu.org To: David McCracken Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 24 08:17:41 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 1sAOFJ-0000hV-Nh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 08:17:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAOEx-0007O1-DX; Fri, 24 May 2024 02:17:21 -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 1sAOEa-0006ov-Ry for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 02:16:58 -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 1sAOEa-0001ux-JD for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 02:16:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAOEg-0004Hc-66 for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 02:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 May 2024 06:17:02 +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.171653137216453 (code B ref 71162); Fri, 24 May 2024 06:17:02 +0000 Original-Received: (at 71162) by debbugs.gnu.org; 24 May 2024 06:16:12 +0000 Original-Received: from localhost ([127.0.0.1]:35160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAODr-0004HJ-PS for submit@debbugs.gnu.org; Fri, 24 May 2024 02:16:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAODp-0004H6-MV for 71162@debbugs.gnu.org; Fri, 24 May 2024 02:16:11 -0400 Original-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 ) id 1sAODc-0001dB-LH; Fri, 24 May 2024 02:15:56 -0400 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=DbdA9LHuR7Mymor82RpD2H8buP3LJZ+jHSCNwGTsb40=; b=fRTMovxVtZfC Nh9S7MUTMU7hTeBhnpXCXpTjOA7cBoQtdqHs9fyjrYcG7y2Tupx1YDUpe5M6giFSOmrBXbs9eX8rb ANTvX0na/Gl8TRfqmCmd0pDIO0FDXA91bY3ogInU+UoweZWAs67sR/MoAk/9oDUrd414KWMNobGdQ FQgbJ2oLlkDorjumZ/UbvSmh2dhWK9alUPNtKP7vo/7YTcmE0ytTJn7emtT95wYc2k0CoVIUKfLHW g57aFCA92v8vO2ZXT3WgmqewT4trrPIMgyUdBFM9OW1sSvTDCQBWSzinOheSBplx8CDiRYbucLuaG O/UgTosFyqqpH5ZQVaz7WQ==; In-Reply-To: (message from David McCracken on Thu, 23 May 2024 21:08:24 -0700) 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:285739 Archived-At: > 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.