From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenneth Brun Nielsen Newsgroups: gmane.emacs.help Subject: Batch indent with specific mode Date: Thu, 29 Jan 2015 03:07:00 -0800 (PST) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1422533983 27097 80.91.229.3 (29 Jan 2015 12:19:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2015 12:19:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 29 13:19:43 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGo4U-0001hA-KZ for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2015 13:19:42 +0100 Original-Received: from localhost ([::1]:59126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGo4T-0005eJ-Kq for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2015 07:19:41 -0500 X-Received: by 10.66.102.1 with SMTP id fk1mr23137pab.14.1422529620380; Thu, 29 Jan 2015 03:07:00 -0800 (PST) X-Received: by 10.140.40.242 with SMTP id x105mr152qgx.14.1422529620325; Thu, 29 Jan 2015 03:07:00 -0800 (PST) Original-Path: usenet.stanford.edu!hl2no4208354igb.0!news-out.google.com!q4ni23qan.0!nntp.google.com!v8no4273381qal.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.178.145.2; posting-account=Y2qrgwkAAACbbT37NX8gk-aSqpI-3T6p Original-NNTP-Posting-Host: 93.178.145.2 User-Agent: G2/1.0 Injection-Date: Thu, 29 Jan 2015 11:07:00 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:210078 X-Mailman-Approved-At: Thu, 29 Jan 2015 07:19:30 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102359 Archived-At: Verilog files usually have the extension *.v. I want to batch indent a Verilog-syntax file named something.va following this idea: http://www.veripool.org/projects/verilog-mode/wiki/Faq#How-do-I-reindent-Verilog-code-from-the-command-line If I directly on the file something.va it DOES NOT work: -- $ emacs --batch verilog.va -f verilog-batch-indent Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/verilog-mode-init.el (source)... Symbol's function definition is void: verilog-batch-indent -- If I rename the file to something.v it works: -- $ emacs --batch verilog.v -f verilog-batch-indent Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/verilog-mode-init.el (source)... Processing /home/kennethn/Documents/sandbox/emacs/verilog.v Indenting region... Indenting region...done Saving file /home/kennethn/Documents/sandbox/emacs/verilog.v... Wrote /home/kennethn/Documents/sandbox/emacs/verilog.v -- How can I tweak the batch function to work for *.va files? Best regards, Kenneth