From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Richard Subject: Re: Starting emacs followed directly by org-agenda search and visiting file removes color formatting Date: Wed, 26 Jun 2013 11:44:01 +0200 Message-ID: <87vc51cila.fsf@yahoo.fr> References: <86fvxgkc4c.fsf@somewhere.org> <874ndwfx4z.fsf@bzg.ath.cx> <519CC1CF.3060908@online.de> <519CDE8A.5060604@online.de> <87ip2aw2of.fsf@bzg.ath.cx> <864nduawg2.fsf@somewhere.org> <87ip2ahuwq.fsf@bzg.ath.cx> <51A27AC4.7070702@online.de> <8761y4aoux.fsf@bzg.ath.cx> <874nd3rq8u.fsf@bzg.ath.cx> <8761x2dwlx.fsf@yahoo.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrmGj-0004R8-Ns for emacs-orgmode@gnu.org; Wed, 26 Jun 2013 05:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrmGh-0004x5-EW for emacs-orgmode@gnu.org; Wed, 26 Jun 2013 05:44:05 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:15842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrmGh-0004wZ-8C for emacs-orgmode@gnu.org; Wed, 26 Jun 2013 05:44:03 -0400 In-Reply-To: <8761x2dwlx.fsf@yahoo.fr> (Nicolas Richard's message of "Tue, 25 Jun 2013 17:43:38 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Michael Brand , Rainer Stengele , Org Mode Nicolas Richard writes: > I just noticed this thread, which i think reports exactly the issue I > reported here [this thread was before, but the title didn't catch my > eyes -- sorry about that] <87zjuv2r79.fsf@yahoo.fr> and more or less > "fixed" here <87bo7ati0m.fsf@yahoo.fr> (not sent as a patch because I'm > unsure about it) s/patch/commit/ Let me make that a commit anyway -- I've had no problem with it since I applied it to my tree and maybe it's easier for you to review. HTH : >From e7e9946235df776cf9b8998ff80116d06597668e Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Fri, 21 Jun 2013 10:23:43 +0200 Subject: [PATCH] Move (org-set-font-lock-defaults) from (org-set-regexps-and-options) to (org-mode) * lisp/org.el (org-set-regexps-and-options): don't set font-lock defaults here. (org-mode): set them here. This fixes the bug mentionned in [[gnus:nntp+news.gmane.org:gmane.emacs.orgmode#87zjuv2r79.fsf@yahoo.fr]] --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index f55c53e..7fd1576 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5146,8 +5146,7 @@ Support for group tags is controlled by the option (mapcar (lambda (w) (substring w 0 -1)) (list org-scheduled-string org-deadline-string org-clock-string org-closed-string))) - (org-compute-latex-and-related-regexp) - (org-set-font-lock-defaults)))) + (org-compute-latex-and-related-regexp)))) (defun org-file-contents (file &optional noerror) "Return the contents of FILE, as a string." @@ -5331,6 +5330,7 @@ The following commands are available: (setq buffer-display-table org-display-table)) (org-set-regexps-and-options-for-tags) (org-set-regexps-and-options) + (org-set-font-lock-defaults) (when (and org-tag-faces (not org-tags-special-faces-re)) ;; tag faces set outside customize.... force initialization. (org-set-tag-faces 'org-tag-faces org-tag-faces)) -- 1.8.1.5