From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 34898@debbugs.gnu.org
Subject: bug#34898: 24.4; `message-separator' face only works for default value of `mail-header-separator'
Date: Mon, 18 Mar 2019 11:46:01 -0700 [thread overview]
Message-ID: <87a7hs2f86.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <86zhptjnl4.fsf@zoho.eu>
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> The value of `mail-header-separator' gets added to
>> `message-font-lock-keywords', which does the actual fontification. Using
>> setq to change the value of `mail-header-separator' did not change the
>> font lock keyword, despite setting the variable before message.el is
>> loaded (or is it pre-loaded?). Using the customize interface to set
>> `mail-header-separator' *does* work as expected.
>
> 0. emacs -Q
> 1. (setq mail-header-separator "--") C-j
> 2. C-x m
>
> Note that setting mail-header-separator before loading message.el works
> as expected.
>
> 3. M-x customize-variable RET mail-header-separator RET
> 4. Change value from "--" to "--foo--"
> 5. C-c C-c
> 6. C-x m
>
> Note that "--foo--" gets inserted, but message-font-lock-keywords still
> holds the value that mail-header-separator had at the time message.el
> was loaded.
>
> Since mail-header-separator lacks a custom setter, it makes no
> difference whether you use setq or Customize, so long as its value is
> changed before message.el is loaded. Otherwise, you have to reevaluate
> and reapply message-font-lock-keywords.
I didn't try with emacs -Q, probably something in my setup ends up
loading message.el at startup.
Thanks,
Eric
next prev parent reply other threads:[~2019-03-18 18:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-17 19:41 bug#34898: 24.4; `message-separator' face only works for default value of `mail-header-separator' Emanuel Berg
2019-03-18 2:59 ` Eric Abrahamsen
2019-03-18 3:14 ` Emanuel Berg
2019-03-18 17:21 ` Basil L. Contovounesios
2019-03-18 22:55 ` Emanuel Berg
2019-03-18 16:46 ` Eli Zaretskii
2019-03-18 16:55 ` Emanuel Berg
2019-03-18 17:01 ` Basil L. Contovounesios
2019-03-18 18:23 ` Basil L. Contovounesios
2019-04-22 23:43 ` Basil L. Contovounesios
2019-05-13 20:00 ` Lars Ingebrigtsen
2019-05-14 1:18 ` Basil L. Contovounesios
2019-03-18 17:14 ` Basil L. Contovounesios
2019-03-18 18:46 ` Eric Abrahamsen [this message]
[not found] ` <handler.34898.C.155779671310380.notifdonectrl.0@debbugs.gnu.org>
2019-05-14 11:15 ` bug#34898: acknowledged by developer (Re: bug#34898: 24.4; `message-separator' face only works for default value of `mail-header-separator') Emanuel Berg
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a7hs2f86.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=34898@debbugs.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.