emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Enhancing the Org/Gnus experience
Date: Fri, 05 Nov 2010 13:58:13 +0100	[thread overview]
Message-ID: <808w18x6ze.fsf@mundaneum.com> (raw)
In-Reply-To: 874obwvsv5.fsf@pinto.chemeng.ucl.ac.uk

Hi Eric,

Eric S Fraga wrote:
> Tassilo Horn <tassilo-IGUgQLVVQiRCV4ILt04nZQ@public.gmane.org> writes:
>> Eric S Fraga <ucecesf-hclig2XLE9Zaa/9Udqfwiw@public.gmane.org> 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-whitespace)
      ;;
      ;;   ;; 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 help
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? ;-)

Best regards,
  Seb

-- 
Sébastien 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

  reply	other threads:[~2010-11-05 12:58 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-15 15:51 Enhancing the Org/Gnus experience Sébastien Vauban
2010-10-15 16:59 ` Eric Schulte
2010-10-18 15:55   ` Sébastien Vauban
2010-10-18 20:57     ` Sébastien Vauban
2010-10-31 17:30       ` Eric Schulte
2010-10-31 20:57         ` Dan Davison
2010-11-04 11:18         ` Sébastien Vauban
2010-11-04 11:40           ` Eric S Fraga
2010-11-04 12:22             ` Eric Schulte
2010-11-04 13:53               ` Eric S Fraga
2010-11-04 15:06                 ` Sébastien Vauban
2010-11-04 16:21                 ` Tassilo Horn
2010-11-05 12:48                   ` Eric S Fraga
2010-11-05 12:58                     ` Sébastien Vauban [this message]
2010-11-05 21:36                       ` Eric S Fraga
2010-11-04 13:11             ` Sébastien Vauban
2010-11-04 14:24               ` Eric S Fraga
2010-11-04 15:11               ` Eric S Fraga
2010-11-04 13:29           ` Eric Schulte
2010-11-04 14:16             ` Sébastien Vauban
2010-11-04 15:24               ` Eric Schulte
2010-11-04 18:18           ` Jambunathan K
2010-11-29 13:40         ` Julien Danjou
2010-11-29 14:11           ` Sébastien Vauban
2011-01-17 16:09             ` Julien Danjou
2011-01-19 13:28               ` Sébastien Vauban
2011-01-20 10:16                 ` Julien Danjou
2011-01-20 18:00                   ` Julien Danjou
2011-01-20 22:09                     ` Sébastien Vauban

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=808w18x6ze.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).