help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Lisp comments enclosed inside #|..|#


From: Akshay Srinivasan
Subject: Re: Lisp comments enclosed inside #|..|#
Date: Sat, 18 Feb 2012 21:33:03 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120212 Thunderbird/10.0.1

On 02/18/2012 07:00 PM, Valentin Baciu wrote:
On Sat, Feb 18, 2012 at 3:39 AM, Akshay Srinivasan
<akshaysrinivasan@gmail.com> wrote:
Hello,
    I had issues with emacs not rendering comments enclosed inside #|..|#
properly in lisp-mode. Does anyone know how to fix this ?

Thanks,
Akshay

If you are super cereal about this issue then you should provide more details.
The trouble is I have to then format things in colour :)
Anyway here is basically what the problem is:

I have the following code say:
-----------
..
#|
;; blah blah
;; blah blah

(eval-when (load compile eval)
(defun make-fortran-name (name)
 ...
|#
---------------
Everything within #|..|# should be in the coloured as a comment, but in this particular case everything after (eval-when..) parts is coloured like un-commented lisp code.

I can attach the source file if you like. But this happens, as I have observed, when there are strings inside the comment block. I don't know enough elisp (and not frustrated enough) to go through the lisp-mode code (yet).

Thanks,
Akshay

P.S: Using color in HTML:
#|
;; blah blah
;; blah blah

(eval-when (load compile eval)

(defun make-fortran-name (name)
 ...
|#


instead of
#|
;; blah blah
;; blah "blah"
;;
(eval-when (load compile eval)

(defun make-fortran-name (name)
 ...
|#



reply via email to

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