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: Add new keyword in Emacs mode Date: Wed, 7 Oct 2009 13:57:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: <84edf5d0-744c-4bbf-9944-df5567892205@g23g2000vbr.googlegroups.com> References: <12ffbf59-f52a-4fe5-b149-b3aedf6368aa@h30g2000vbr.googlegroups.com> <7df3bc43-ff5e-434d-8c34-1859175635dc@v15g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254970864 22288 80.91.229.12 (8 Oct 2009 03:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 03:01:04 +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 05:00:54 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 1MvjFK-0006Fl-RT for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 05:00:51 +0200 Original-Received: from localhost ([127.0.0.1]:40004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvjFK-00044U-89 for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Oct 2009 23:00:50 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!g23g2000vbr.googlegroups.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: 88.160.144.1 Original-X-Trace: posting.google.com 1254949031 20943 127.0.0.1 (7 Oct 2009 20:57:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 7 Oct 2009 20:57:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g23g2000vbr.googlegroups.com; posting-host=88.160.144.1; posting-account=vEyO1woAAACo2vvLkqB78k2NdTQCDYAm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu comp.emacs:99266 gnu.emacs.help:173658 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:68754 Archived-At: On 7 oct, 22:46, Xah Lee wrote: > On Oct 7, 1:16 pm, Beware wrote: > > > Hi, > > > following the previous post i wrote, i'm wonder if it's possible to > > add new keyword in a mode of emacs. > > which is your previous post? not all read all threads in newsgroup > these days. Best to post the url to groups.google.com > > and what you mean by keywords? you want to add words so that keywoard > completion command will expand to your new words? > > are you talking about keyword completion in minibuffer? or in a major > lang mode? or minor modes such as ido? also, whether it's in shell, > file name completion, or just computer language's keyword? or user > defined function names? > > be specific in your question. > > if your question is about in a major mode of a particular language, > and you want keyword completion to work on user defined function, then > you can generate tag files. (i've never used this) Look for the emacs > doc node: (emacs) Tags > > if you want to add words to a language mode, you can use a hook and > add to its keyword list... but this depends on the implementation of > the mode. > > =E2=80=A2 How To Implement Keyword Completion in Emacs > =C2=A0http://xahlee.org/emacs/elisp_keyword_completion.html > > =C2=A0 Xah > =E2=88=91http://xahlee.org/ > > =E2=98=84 Hi, you'r wright, i forgot the url to my post : it's here : http://groups.google.fr/group/gnu.emacs.help/browse_thread/thre= ad/602ea705818926ef Well, i used emacs to produce my VHDL files. In fact, i use a script to do this. So i indent my code and i uppercase VHDL keywords. But, in this VHDL Mode, not all keywords are check and done. So i want to add some new keywords to have all VHDL keywords, i want in uppercase. I hope i'm clear now.