From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Water Lin Newsgroups: gmane.emacs.help Subject: Re: Can I build a dictionary in my Emacs? Date: Fri, 27 Nov 2009 16:32:53 +0800 Organization: A poorly-installed InterNetNews site Message-ID: <87pr74fjuy.fsf@ymail.invalid> References: <87vdgyx9lb.fsf@ymail.invalid> <87zl69vsq3.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259349953 30719 80.91.229.12 (27 Nov 2009 19:25:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2009 19:25:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 27 20:25:46 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 1NE6Rt-0002q1-9q for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Nov 2009 20:25:45 +0100 Original-Received: from localhost ([127.0.0.1]:58054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NE6Rs-0004x4-Q6 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Nov 2009 14:25:44 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.neu.edu.cn!www.shinco.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-NNTP-Posting-Host: 119.131.176.18 Original-X-Trace: www.shinco.com 1259310771 24411 119.131.176.18 (27 Nov 2009 08:32:51 GMT) Original-X-Complaints-To: news@www.shinco.com Original-NNTP-Posting-Date: Fri, 27 Nov 2009 08:32:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:SKHTRcFcTZEsHtJmjXaD+0Sv1lE= Original-Xref: news.stanford.edu gnu.emacs.help:175103 X-Mailman-Approved-At: Fri, 27 Nov 2009 14:25:12 -0500 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:70196 Archived-At: Tim X writes: > Water Lin writes: > >> I want to build a dictionary in my Emacs. So I can put my specific >> words, expressions and their meanings into it. >> >> By doing this, when I need them, I don't need to google them out again. >> >> I don't know if it is suitable to call it dictionary, but it likes >> dictionary. >> >> Any good suggestions? >> >> Thanks >> > Emacs lisp has support ofr hashes and essentially, that would provide > the basic abstraction you want, but there is considerable work to > provide a useful interface etc. This is work that is pretty much already > done by other packages, so I feel you would be re-inventing a new > wheel. > > for example, emacs integrates well with spelling checkers, such as > ispell and most of these have support for including a personal > dictionary and adding words to the dictionary. As this is integrated > into things like spell checking and packages like flyspell, you get the > benefit of standard funcitons, such as spell checking using your > personal dictionary as well as the ones that come built-in. > > Rather than build/write your own, look into emacs support for spell > checking and see if you can add your word definitions to that existing > mechanism. Less work and easier to maintain in the long-term. > > Tim Ok, Thanks, I will read something about ispell later. Thanks Water Lin -- Water Lin's notes and pencils: http://en.waterlin.org Email: WaterLin@ymail.com