From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Akshay Srinivasan Newsgroups: gmane.emacs.help Subject: Re: Lisp comments enclosed inside #|..|# Date: Sat, 18 Feb 2012 21:33:03 +0530 Message-ID: <4F3FCBB7.4080904@gmail.com> References: <4F3F013E.5040502@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080108030808000505060500" X-Trace: dough.gmane.org 1329581141 11172 80.91.229.3 (18 Feb 2012 16:05:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2012 16:05:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Valentin Baciu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 18 17:05:40 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rymn4-00007C-Go for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 17:05:40 +0100 Original-Received: from localhost ([::1]:54991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rymn2-0006V1-Q7 for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Feb 2012 11:05:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rymmw-0006Ub-Cl for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 11:05:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rymmu-0008Kc-Uu for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 11:05:30 -0500 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:63733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rymmu-0008KW-Iz for help-gnu-emacs@gnu.org; Sat, 18 Feb 2012 11:05:28 -0500 Original-Received: by pbcwz17 with SMTP id wz17so5111321pbc.0 for ; Sat, 18 Feb 2012 08:05:27 -0800 (PST) Received-SPF: pass (google.com: domain of akshaysrinivasan@gmail.com designates 10.68.237.106 as permitted sender) client-ip=10.68.237.106; Authentication-Results: mr.google.com; spf=pass (google.com: domain of akshaysrinivasan@gmail.com designates 10.68.237.106 as permitted sender) smtp.mail=akshaysrinivasan@gmail.com; dkim=pass header.i=akshaysrinivasan@gmail.com Original-Received: from mr.google.com ([10.68.237.106]) by 10.68.237.106 with SMTP id vb10mr43753849pbc.4.1329581127525 (num_hops = 1); Sat, 18 Feb 2012 08:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; bh=b48ujXq40fpkBloJ0CsgILREm/CYRZ2gI4xdG4cgB1g=; b=rDfXIJZXbDNMpisTaw58d8kTcSUd6xOGbCCXppZ7xz8YY8BE5aezj4LlRmNvJ5ZqOz f+j5Qmen63IUrd+ygiQVX79HBPArp3C+0xLutHPmsg81WTplpxTY8NGpqotk5z7WdwRR /InflM8JAJ12bE5RnY7JuHqJeYU7HKFnNQcCg= Original-Received: by 10.68.237.106 with SMTP id vb10mr35710712pbc.4.1329581127448; Sat, 18 Feb 2012 08:05:27 -0800 (PST) Original-Received: from [192.168.1.3] ([117.192.82.148]) by mx.google.com with ESMTPS id k2sm8192905pba.28.2012.02.18.08.05.24 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 18 Feb 2012 08:05:26 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120212 Thunderbird/10.0.1 In-Reply-To: X-Enigmail-Version: 1.3.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83787 Archived-At: This is a multi-part message in MIME format. --------------080108030808000505060500 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 02/18/2012 07:00 PM, Valentin Baciu wrote: > On Sat, Feb 18, 2012 at 3:39 AM, Akshay Srinivasan > 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) ... |# --------------080108030808000505060500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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)
 ...
|#


--------------080108030808000505060500--