all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Adding multi-group regexps to align-rules-list
@ 2009-05-20 18:59 Peter Monsson
  2009-05-21 13:49 ` Scott Frazer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Monsson @ 2009-05-20 18:59 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-22 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.