From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Beware Newsgroups: gmane.emacs.help Subject: Re: Use emacs function (beautify) in emacs script Date: Wed, 7 Oct 2009 07:20:54 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9e7265c2-6bf4-49d3-85d3-0682d9f0c463@a6g2000vbp.googlegroups.com> References: <388cd55d-b86b-4f3a-886c-c05ae4d032ce@q40g2000prh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254970686 21799 80.91.229.12 (8 Oct 2009 02:58:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 02:58:06 +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 Oct 08 04:57:56 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 1MvjCW-0005M7-Ck for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 04:57:56 +0200 Original-Received: from localhost ([127.0.0.1]:38316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvjCW-0001zs-3S for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Oct 2009 22:57:56 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!a6g2000vbp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: 195.115.128.234 Original-X-Trace: posting.google.com 1254925254 8682 127.0.0.1 (7 Oct 2009 14:20:54 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 7 Oct 2009 14:20:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a6g2000vbp.googlegroups.com; posting-host=195.115.128.234; posting-account=vEyO1woAAACo2vvLkqB78k2NdTQCDYAm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173635 X-Mailman-Approved-At: Wed, 07 Oct 2009 22:53:12 -0400 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:68751 Archived-At: On 7 oct, 10:43, mdj wrote: > On Oct 7, 6:04=A0pm, Beware wrote: > > > Hi all, > > > I used a simply script to auto indent my VHDL code files. But in emacs > > there is a function which set all VHDL keywords in uppercase =A0with > > beautify function in VHDL mode menu. > > > So i would to use this function in my script but i don't know how. > > > If someone can help me, i very appreciate. > > From the VHDL mode help (which you can read yourself if you open a > buffer in VHDL mode with C-h m): > > =A0CODE BEAUTIFICATION: > =A0 =A0 `C-c M-b' and `C-c C-b' beautify the code of a region or of the > entire > =A0 =A0 buffer respectively. =A0This inludes indentation, alignment, and > case > =A0 =A0 fixing. =A0Code beautification can also be run non-interactively > using the > =A0 =A0 command: > > =A0 =A0 =A0 emacs -batch -l ~/.emacs filename.vhd -f vhdl-beautify-buffer > > Matt Hi, I've another question. In my script i adjust my options : (custom-set-variables '(vhdl-upper-case-attributes t) '(vhdl-upper-case-keywords t) '(vhdl-upper-case-types t) ) But some functions are don't take in account, like : falling_edge or rising_edge. however they appear in the vhdl-mode.el file under "defconst vhdl-02-functions" So, my question is, how to uppercase these keywords too, because (vhdl- upper-case-functions t) don't exist (or i don't see it). Thanks