From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: outrageous comment syntax Date: Wed, 02 Nov 2005 22:50:25 -0500 Message-ID: References: <1130888214.707028.123130@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1130990158 27817 80.91.229.2 (3 Nov 2005 03:55:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Nov 2005 03:55:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 03 04:55:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EXWCZ-0005bc-T2 for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Nov 2005 04:55:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXWCZ-0004Yb-CV for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Nov 2005 22:55:47 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.rogers.com!news.rogers.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 02 Nov 2005 21:50:25 -0600 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3 X-Accept-Language: en Original-Newsgroups: gnu.emacs.help In-Reply-To: <1130888214.707028.123130@g14g2000cwa.googlegroups.com> Original-Lines: 24 Original-NNTP-Posting-Host: 69.194.228.44 Original-X-Trace: sv3-NLGKRqc/u1jegCTzvl5iOXIbSSBBCxwvvFJLLZHmmPAuwB21r7h1g4KMsaKhAsz5aRVuEp7jPgsVgCU!cKSLPaiDRl4eexT01EefC7eKcpjBwLq8D0k/JSqqgaQOG6ggbVNt6MQn7UlIqjpyAZqCm7Bdczzk!ZW5iIYAjVA== Original-X-Complaints-To: abuse@rogers.com X-DMCA-Complaints-To: abuse@rogers.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:135176 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:30767 Archived-At: rgb wrote: > Ian Zimmerman wrote: > >>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 :-( > > > When you san "cannot be" I assume you mean that use of shy groups > (?: ...) is insufficient to your needs? > I didn't know Emacs had them. Thanks for pointing them out to me.