From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.help Subject: Re: colours lost Date: Sat, 06 Jul 2019 21:03:44 +0530 Message-ID: References: <83pnruo2ub.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8710"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 18:06:40 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjnCx-00028U-Ni for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 18:06:39 +0200 Original-Received: from localhost ([::1]:60466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjnCw-0007gN-Np for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 12:06:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34638) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjnCo-0007fr-KD for help-gnu-emacs@gnu.org; Sat, 06 Jul 2019 12:06:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjnCn-000410-Bx for help-gnu-emacs@gnu.org; Sat, 06 Jul 2019 12:06:30 -0400 Original-Received: from [117.193.13.11] (port=58738 helo=localhost.localdomain) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjnCm-0003DN-MW for help-gnu-emacs@gnu.org; Sat, 06 Jul 2019 12:06:29 -0400 Original-Received: (qmail 7601 invoked by uid 500); 6 Jul 2019 15:33:44 -0000 In-Reply-To: (Noam Postavsky's message of "Wed, 15 May 2019 09:31:42 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 117.193.13.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121105 Archived-At: * Noam Postavsky : Wrote on Wed, 15 May 2019 09:31:42 -0400: > On Wed, 15 May 2019 at 09:15, Madhu 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. --