[OS X Emacs] Re: MacOSX-Emacs Digest, Vol 40, Issue 3

Marc Shapiro -- at work marc.shapiro at acm.org
Thu Feb 10 17:26:53 EST 2011


> From: Marinos K <marinos at agxivatein.com>
> Subject: Re: [OS X Emacs] Re: delete parantheses pair
> 
> [...]
>  (cond ((or (looking-at "\\s(") (looking-at "\\s[") (looking-at "\\s{")

This doesn't make sense.  The regexp "\\s(" stands for "any opening parenthesis, as defined by the current syntax", so it would usually include all of ([{.

The regexps "\\s[" ans "\\s{" don't mean anything AFAIK.

See here for a concise explanation of Emacs regexps: http://www.emacswiki.org/emacs/RegularExpression

And BTW the error message is wrong, it should be "Not looking at open parenthesis nor quote"

					Marc





More information about the MacOSX-Emacs mailing list