unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing colour face for mode-line-buffer-identification
Date: Sat, 27 Jul 2024 16:13:20 +0200	[thread overview]
Message-ID: <87r0bezzwf.fsf@web.de> (raw)
In-Reply-To: GPD7vFzOtLgYCiiFxraB8QPyu9iy0W20hb9mKDvr-4rVRQFjoHHj4tcsJzuJ344I27PF0lqvt6LJBW6gbiwsvDPa0vgVUmdtFdmg0eIh3Zw=@protonmail.com

Heime <heimeborgia@protonmail.com> writes:

> > Calling `propertized-buffer-identification' returns a one-element
> > list containing the propertized string.` propertize' that string
> > again to
> > change the face.
> > 
> > Unless the face should depend on the buffer or mode. This would be a
> > different situation.
> > 
> > 
> > Michael.
>
> Have done this before but got an error
>
> Debugger entered--Lisp error: (wrong-type-argument stringp (#(" %8b " 0 5 (face mode-line-buffer-id help-echo "Buffer name\nmouse-1: Previous buffer\nmouse-3: Next..." mouse-face mode-line-highlight local-map (keymap (header-line keymap (mouse-3 . mode-line-next-buffer) (down-mouse-3 . ignore) (mouse-1 . mode-line-previous-buffer) (down-mouse-1 . ignore)) (mode-line keymap (mouse-3 . mode-line-next-buffer) (mouse-1 . mode-line-previous-buffer)))))))
>   propertize((#(" %8b " 0 5 (face mode-line-buffer-id help-echo

I had said that you `propertize' the string.  Not the list of course.
You can't add text properties to a list.


Michael.




      reply	other threads:[~2024-07-27 14:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-26 20:11 Changing colour face for mode-line-buffer-identification Heime
2024-07-26 20:32 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-27  9:43   ` Heime
2024-07-27 12:12     ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-07-27 13:04       ` Heime
2024-07-27 14:13         ` Michael Heerdegen via Users list for the GNU Emacs text editor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0bezzwf.fsf@web.de \
    --to=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).