From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: outrageous comment syntax Date: Mon, 31 Oct 2005 23:29:42 -0500 Organization: Bell Sympatico Message-ID: <87mzkp2drb.fsf-monnier+gnu.emacs.help@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130819501 16913 80.91.229.2 (1 Nov 2005 04:31:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 04:31:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 01 05:31:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EWnmt-0000BQ-JL for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Nov 2005 05:30:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EWnms-0004un-Vz for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Oct 2005 23:30:19 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:GXQd3gYDxueCrL4TcTgEGo6erK8= Original-Lines: 21 Original-NNTP-Posting-Host: 70.48.82.56 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1130819389 70.48.82.56 (Mon, 31 Oct 2005 23:29:49 EST) Original-NNTP-Posting-Date: Mon, 31 Oct 2005 23:29:49 EST Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news.glorb.com!news.louisville.edu!tor-nx1!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:135138 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30729 Archived-At: > comment-start-skip's value is > "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *" > Local in buffer simple-haskell.el; global value is nil > Documentation: > *Regexp to match the start of a comment plus everything up to its body. > If there are any \(...\) pairs, the comment delimiter text is held to begin > at the place matched by the close of the first pair. > However, I have a language with two comment syntaxes, one of which > depends on leading context and the other doesn't. How in the world can > I set this variable properly? The context must be within the first > group, and it cannot be :-( I guess you can't. Unless of course some concrete detail makes it possible, but since you haven't provided any... If you indeed can't, report it with M-x report-emacs-bug, of course, Stefan