From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Monsson Newsgroups: gmane.emacs.help Subject: Adding multi-group regexps to align-rules-list Date: Wed, 20 May 2009 11:59:21 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242848450 5272 80.91.229.12 (20 May 2009 19:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 19:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 20 21:40:43 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M6rec-00038M-3W for geh-help-gnu-emacs@m.gmane.org; Wed, 20 May 2009 21:40:42 +0200 Original-Received: from localhost ([127.0.0.1]:53929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6reb-0005Tc-G2 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 May 2009 15:40:41 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o20g2000vbh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 212.242.197.46 Original-X-Trace: posting.google.com 1242845961 5369 127.0.0.1 (20 May 2009 18:59:21 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 20 May 2009 18:59:21 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o20g2000vbh.googlegroups.com; posting-host=212.242.197.46; posting-account=N1YbiAkAAACg7sVjhGDTDTBashE-IRQ2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169346 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64598 Archived-At: 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