GNU bug report logs - #77384
31.0.50; Image slice is ignored on mode/header/tab line

Previous Next

Package: emacs;

Reported by: David Ponce <da_vid <at> orange.fr>

Date: Sun, 30 Mar 2025 14:02:01 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 77384-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Ponce <da_vid <at> orange.fr>
Cc: 77384-done <at> debbugs.gnu.org
Subject: Re: bug#77384: 31.0.50; Image slice is ignored on mode/header/tab line
Date: Sun, 30 Mar 2025 19:16:00 +0300
> Date: Sun, 30 Mar 2025 17:44:18 +0200
> Cc: 77384 <at> debbugs.gnu.org
> From: David Ponce <da_vid <at> orange.fr>
> 
> On 2025-03-30 16:53, Eli Zaretskii wrote:
> > You need to do it the other way around:
> > 
> >    (let* ((img (find-image '((:file "splash.svg"))))
> > 	  (size (image-size img t))
> > 	  (h (frame-char-height))
> > 	  (y (- (cdr size) h h h))
> > 	  (txt (propertize " " 'display (list `(slice 0 ,y 0.5 ,h) img))))
> >       (insert txt "\n")                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >       (setq header-line-format txt))
> > 
> > IOW, first slice, then the image spec.
> 
> Oh! I didn't even think to try that. It works perfectly now.
> You can close this bug.
> 
> Thank you so much for your help, once again!

You're welcome.  Closing.




This bug report was last modified 75 days ago.

Previous Next


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