From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Enhancing the Org/Gnus experience Date: Fri, 05 Nov 2010 13:58:13 +0100 Message-ID: <808w18x6ze.fsf@mundaneum.com> References: <80k4lj78ui.fsf@mundaneum.com> <87sk07fl3s.fsf@gmail.com> <80k4lf337a.fsf@mundaneum.com> <80vd4z9q2f.fsf@mundaneum.com> <874oc2z2uv.fsf@gmail.com> <8062wdcp6y.fsf@mundaneum.com> <877hgtfhaq.fsf@ucl.ac.uk> <87sjzhdxmh.fsf@gmail.com> <87zktpchzr.fsf@ucl.ac.uk> <87r5f1hxf0.fsf@thinkpad.tsdh.de> <874obwvsv5.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, Eric S Fraga wrote: > Tassilo Horn writes: >> Eric S Fraga writes: >>>> if it is working, then the following code block should be fontified as >>>> if in an Org-mode buffer >>>> >>>> #+begin_src emacs-lisp >>>> (message "is it working?") >>>> #+end_src >>> >>> Definitely not working then! This comes out as simple text in gnus >>> and doesn't look at all like it would in an org buffer for me. >> >> Hm, for me it's shown the same as verbatim blocks or stuff like > > Just to update you all. I found the problem and it had nothing to do > with either gnus or org! The problem was that I had the following in my > font-lock-mode-hook: > > : (show-ws-highlight-trailing-whitespace) > > This seemed to wipe out all other font locking information in gnus. Funny. I have this -- a lot in comments! -- in my .emacs file: #+begin_src emacs-lisp ;; highlight trailing whitespaces in all modes (setq-default show-trailing-whitespace t) ;; ;; FIXME When turned on, Gnus becomes black and white only... ;; ;;*** show-wspace (emacs-goodies-el) ;; (when (try-require 'show-wspace) ;; ;; Highlight tabs ;; (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) ;; ;; ;; Highlight trailing whitespace ;; (add-hook 'font-lock-mode-hook 'show-ws-highlight-trailing-white= space) ;; ;; ;; Highlight non-breaking spaces ;; (add-hook 'font-lock-mode-hook 'show-ws-highlight-hard-spaces)) ;; FIXME Same problem as above ;; ;; highlight tabs in all modes ;; (add-hook 'font-lock-mode-hook ;; '(lambda () ;; (font-lock-add-keywords ;; nil ;; '(("\t" 0 'trailing-whitespace prepend))))) ;; ;; show zero-width spaces ;; (font-lock-add-keywords ;; nil ;; `((,(format "\\(%c\\)" ?\u200b) ; #\ZERO_WIDTH_SPACE ;; (1 (progn (compose-region (match-beginning 1) (match-end 1) ;; ?\u2b1b ; #\BLACK_LARGE_SQUARE ;; 'decompose-region) ;; nil))))) #+end_src Hence, the same observation as yours regarding Gnus. I think I once asked h= elp on the Emacs and Gnus newsgroups, but the answer is very low there, and I never got anybody even confirming it... > Whether this is a problem with the whitespace highlighting codes or > within gnus, I don't know but I can live without trailing spaces being > highlighted! Though, I do have highlight of trailing whitespaces. The first 2 lines must= be it. > Apologies for all the noise and thanks to all that tried to help me! You're welcome. And... then... what's your impression?=C2=A0;-) Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode