From: gerd.moellmann@t-online.de (Gerd Moellmann)
Cc: emacs-devel@gnu.org
Subject: Re: [storm@cua.dk: Re: Patch to disable links line in *info* buffer]
Date: 23 Jun 2002 11:37:11 +0200 [thread overview]
Message-ID: <86znxmibeg.fsf@gerd.free-bsd.org> (raw)
In-Reply-To: <200206222251.g5MMprs23105@aztec.santafe.edu>
Richard Stallman <rms@gnu.org> writes:
> Would you please help us with this? You know this code more
> than anyone.
>
> From: storm@cua.dk (Kim F. Storm)
> Subject: Re: Patch to disable links line in *info* buffer
> To: rms@gnu.org
> Cc: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>, jasonr@gnu.org,
> bob@rattlesnake.com, emacs-devel@gnu.org
> Date: 22 Jun 2002 01:56:31 +0200
>
> no-spam@cua.dk (Kim F. Storm) writes:
>
> > "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:
> >
> > > > The problem is that there is no named face which has this appearence,
> > > > so I cannot simply put a (face mode-line-bold) property on the string
> > > > returned by format-mode-line.
> > >
> > > Any reason why you can't use (face (mode-line bold)) ?
> >
> > Not anymore :-)
>
> Ok, I have changed format-mode-line to return a propertized string
> (changes are not committed yet), but the "face merging" doesn't always
> give the same result as the actual mode line:
>
> This combination works (*Help* is bold):
>
> (insert '#("-1:%% *Help* ..."
> 7 13 (face (mode-line :weight bold))))
>
> but this doesn't (*Help* isn't bold):
>
> (insert '#("-1:%% *Help* ..."
> 7 13 (face (mode-line-inactive :weight bold))))
The above list form of face property value doesn't look right. I
think it should be something like (mode-line (:weight bold)) instead.
Each element of the list should be either a named face or a list of
face attributes; see also the Lisp Reference. The face property value
above looks like it will use the non-existent named face `:weight'.
Since faces from a list-valued face property are merged from left to
right (AFAIR), the faces in the list should also be reversed:
((:weight bold) mode-line). Otherwise, if mode-line explicitly
specifies a weight, the (:weight bold) will have no effect.
next prev parent reply other threads:[~2002-06-23 9:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-22 22:51 [storm@cua.dk: Re: Patch to disable links line in *info* buffer] Richard Stallman
2002-06-23 9:37 ` Gerd Moellmann [this message]
2002-06-24 9:33 ` Richard Stallman
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=86znxmibeg.fsf@gerd.free-bsd.org \
--to=gerd.moellmann@t-online.de \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).