From: Peter Monsson <petermonsson@yahoo.dk>
To: help-gnu-emacs@gnu.org
Subject: Re: Adding multi-group regexps to align-rules-list
Date: Fri, 22 May 2009 12:05:03 -0700 (PDT) [thread overview]
Message-ID: <0313c784-5f25-4c15-8d34-02cedd02f298@k2g2000yql.googlegroups.com> (raw)
In-Reply-To: mailman.7639.1243007382.31690.help-gnu-emacs@gnu.org
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
prev parent reply other threads:[~2009-05-22 19:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 18:59 Adding multi-group regexps to align-rules-list Peter Monsson
2009-05-21 13:49 ` Scott Frazer
2009-05-22 15:49 ` Johan Bockgård
[not found] ` <mailman.7639.1243007382.31690.help-gnu-emacs@gnu.org>
2009-05-22 19:05 ` Peter Monsson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0313c784-5f25-4c15-8d34-02cedd02f298@k2g2000yql.googlegroups.com \
--to=petermonsson@yahoo.dk \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.