[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make Gnus highlighting Lisp snippets ?
From: |
Hans-Peter Binder |
Subject: |
Re: Make Gnus highlighting Lisp snippets ? |
Date: |
Tue, 29 Jun 2004 17:39:35 -0000 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin) |
* Marcus Frings <iam-est-hora-surgere@despammed.com> writes:
[...]
> I use a slightly modified version:
>
> ;; Highlight Lisp code in article buffer
> ;; Oliver Scholz in <m366152i3i.fsf@ID-87814.user.dfncis.de>
> ;; Alternative code: <86brpj6fq0.fsf@pille.fhaun.de>
> ;:*=========================================================
> (defvar egoge-emacs-lisp-ngs-regexp
> (regexp-opt '("de.comm.software.gnus" "de.comp.editoren"
> "gmane.emacs.gnus.general" "gnu.emacs.help"
> "gnu.emacs.gnus" "gnu.emacs.sources")))
>
> (defun egoge-mm-uu-emacs-lisp-test ()
> (setq file-name (match-string 1))
> (and gnus-newsgroup-name
> (string-match egoge-emacs-lisp-ngs-regexp gnus-newsgroup-name)))
>
> (add-to-list 'mm-uu-type-alist
> '(emacs-lisp
> "^("
> ")\\s-*\\(\n\n\\|\n?\\'\\)"
> mm-uu-emacs-sources-extract
> nil
> egoge-mm-uu-emacs-lisp-test))
>
> (mm-uu-configure)
It is the same code-snippet ;-) The only difference ist the Line
;; (setq file-name (match-string 1))
I've had problems with this line in Jan2003, so i have commented this
line. I never got problems with the Code-Snippet without the described line.
Now i have uncomment this and it works too :-)
Regards/Gruesse
Hans-Peter Binder
--
(coffee-mode -1)
Re: Make Gnus highlighting Lisp snippets ?, Marcus Frings, 2004/06/29