[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: colours lost
From: |
Madhu |
Subject: |
Re: colours lost |
Date: |
Sat, 06 Jul 2019 21:03:44 +0530 |
* Noam Postavsky
<CAM-tV-9rsqFrrX31dB66m=h6cfW7HrawvhUCLXMtUUqYos78=g@mail.gmail.com> :
Wrote on Wed, 15 May 2019 09:31:42 -0400:
> On Wed, 15 May 2019 at 09:15, Madhu <enometh@meer.net> wrote:
>
>> I haven't figured out what triggers the problem yet, but the clue is
>> it is related to global-font-lock-mode.
>>
>> When the problem described occurs, global-font-lock-mode is t.
>>
>> C-u C-x = on a piece of text which shows the bold face in the *Faces*
>> buffer shows:
>> ,----
>> | There are text properties here:
>> | button (t)
>> | category help-face-button
>> | fontified t
>> | help-args (bold)
>> | read-face-name bold
>> `----
>>
>> After setting (global-font-lock-mode -1) and reverting *Faces* restores
>> the list-faces-display as expected.
>>
>> Now C-u C-x = shows
>> ,----
>> | There are text properties here:
>> | button (t)
>> | category help-face-button
>> | face bold
>> | help-args (bold)
>> | read-face-name bold
>> `----
>>
>> So When the problem occurs all text is "fontified" and faces seem to
>> be ignored.
>
> Sounds like it could be another instance of Bug#35481. Maybe you are
> enabling some minor mode which calls font-lock-add-keywords or
> similar?
>
> See https://debbugs.gnu.org/35481 and also https://debbugs.gnu.org/35044.
I've extracted one twisted test case from my .emacs and it is something
of a mystery.
;; Put this form in a file, say f.el
(eval-after-load 'gnus-sum
'(progn
(defadvice gnus-summary-save-article (after rmail-label-prompter-advice
activate)
(if (eq gnus-default-article-saver 'gnus-summary-save-in-rmail)
(message "foo")
(message "bar"))) ))
Then open a file which does not autoload org-mode but which can be
converted to org-mode. For example I use hyperbole's DEMO file:
emacs -Q -eval '(list-colors-display)' -l f.el ~/elisp/pkg/hyperbole/DEMO
Then with DEMO as the current buffer, do M-x org-mode
Then M-x list-colors-display shows my colours are gone.
(gnus-default-article-saver is a variable defined n gnus-art and may not
be defined when gnus-sum is loaded.)
[Unrelated notes]
1 Although this mailing list is being propagated to the usenet group, the
posts on the usenet group do not seem to make it to the mailing list.
2 Setting mail-user-agent to message-user-agent instead of
sendmail-user-agent drops all the References headers when replying to a
mail from a gnus summary buffer.
--
- Re: colours lost,
Madhu <=