emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] [bug #5044] lisp executes only first statement


From: Jim Ottaway
Subject: Re: [emacs-wiki-discuss] [bug #5044] lisp executes only first statement
Date: Wed, 11 Jan 2006 17:35:35 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>>>>> anonymous  <address@hidden> writes:

> Follow-up Comment #1, bug #5044 (project muse-el):

> This can be worked around by enclosing the statements in (progn ...).

> This one might be hard to fix.

> -- Michael Olson

What about:

(defun muse-colors-lisp-tag (beg end)
  (muse-unhighlight-region beg end)
  (add-text-properties
   beg end
   (list 'font-lock-multiline t
         'display (muse-eval-lisp
                   (concat "(progn "
                           (buffer-substring-no-properties (+ beg 6)
                                                           (- end 7))
                           ")"))
         'intangible t)))

and similar for muse-publish-lisp-tag

<lisp>(defun foo () "it works") (foo)</lisp>

is displayed as

it works

Regards,
-- 
Jim Ottaway




reply via email to

[Prev in Thread] Current Thread [Next in Thread]