From: Peter Monsson <petermonsson@yahoo.dk>
To: help-gnu-emacs@gnu.org
Subject: Adding multi-group regexps to align-rules-list
Date: Wed, 20 May 2009 11:59:21 -0700 (PDT) [thread overview]
Message-ID: <d47520ec-f53f-486e-88c7-c6872b2ed3f2@o20g2000vbh.googlegroups.com> (raw)
Hi NG,
I'm trying to extend verilog mode with an alignment of input and
output ports such that
(
input test,
output test,
input [13:0] gfdgtrg,
output [112:1] dsfsf,
output control
);
becomes
(
input test,
output test,
input [13:0] gfdgtrg,
output [112:1] dsfsf,
output control
);
But I keep getting wrong type argument: integer-or-marker-p on the
group list. I've tried quoting, backtick, cons cells, lists, etc. but
nothing works. The documentation says that lists are allowed in group
and from skimming the source code it seems to be implemented as well.
So what am I doing wrong?
(add-hook 'align-load-hook (lambda ()
(add-to-list 'align-rules-list
'(verilog-port-args
(regexp . "\\(?:in\\|out\\)put\\(?:\\(\\s-+\\)\\
(?:\\[.*\\]\\(\\s-+\\)\\)?\\)")
(group . (1 . (2 . ( 3 . 4))))
(modes . '(verilog-mode))
(repeat . t)))))
Thanks in advance
Peter
next reply other threads:[~2009-05-20 18:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 18:59 Peter Monsson [this message]
2009-05-21 13:49 ` Adding multi-group regexps to align-rules-list 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
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=d47520ec-f53f-486e-88c7-c6872b2ed3f2@o20g2000vbh.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.