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

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

Re: Adding multi-group regexps to align-rules-list


From: Peter Monsson
Subject: Re: Adding multi-group regexps to align-rules-list
Date: Fri, 22 May 2009 12:05:03 -0700 (PDT)
User-agent: G2/1.0

On May 22, 5:49 pm, bojohan+n...@dd.chalmers.se (Johan Bockgård)
wrote:
> Peter Monsson <petermons...@yahoo.dk> writes:
> >                       (regexp  . "\\(?:in\\|out\\)put\\(?:\\(\\s-+\\)\\
> > (?:\\[.*\\]\\(\\s-+\\)\\)?\\)")
> >                       (group . (1 . (2 . ( 3 . 4))))
>
>   (regexp . "\\<\\(?:in\\|out\\)put\\(\\s-+\\)\\(?:\\[.*]\\)?\\(\\s-*\\)")
>   (group  . (1 2))

Ahh, now I get it. The wrong type argument: integer-or-marker-p error
comes when the second group doesn't even exist. In your solution the
second group always exists as it can match the empty string and align
that.

Thank you, Johan, for your help and also thanks to Scott for some
inspiration on new stuff to add to the align rules.

Best Regards
Peter


reply via email to

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