From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: flyspell: local abbrev in different languages Date: Fri, 28 Sep 2007 08:28:49 +0200 Message-ID: <200709280828.50434.andreas.roehler@online.de> References: <873ax16d51.fsf@mat.ucm.es> <87myv8cim2.fsf@mat.ucm.es> 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: sea.gmane.org 1190960946 23711 80.91.229.12 (28 Sep 2007 06:29:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2007 06:29:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Uwe Brauer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 08:29:02 2007 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 1Ib9LR-0005M2-EJ for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2007 08:29:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ib9LO-0002FA-2J for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2007 02:28:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ib9L6-0002Es-LF for help-gnu-emacs@gnu.org; Fri, 28 Sep 2007 02:28:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ib9L5-0002DS-9s for help-gnu-emacs@gnu.org; Fri, 28 Sep 2007 02:28:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ib9L5-0002D6-4L for help-gnu-emacs@gnu.org; Fri, 28 Sep 2007 02:28:39 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ib9L4-0004xj-Na for help-gnu-emacs@gnu.org; Fri, 28 Sep 2007 02:28:38 -0400 Original-Received: from [84.190.138.67] (helo=karton) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1Ib9L13IG4-0008GX; Fri, 28 Sep 2007 08:28:36 +0200 User-Agent: KMail/1.8.2 In-Reply-To: <87myv8cim2.fsf@mat.ucm.es> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX19subJ/m8PxOPK7POiIEmol6h/3Wpo9ivP4uZJ AavPp3yqtHvNlVFf+D4VAejb3OjSFujpviLZNqjmPpMZ8vJdKq p0eDbvZQvM5zK6QitaIwQ== X-Detected-Kernel: Linux 2.6? (barebone, rare!) 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:47940 Archived-At: Am Donnerstag, 27. September 2007 16:01 schrieb Uwe Brauer: > >>>>> "Andreas" =3D=3D Andreas R=F6hler write= s: > > > > ... > > > > Don't think so. > > > > With both functions below I'm able to expand `tx' to > > `texto' as shown (extrait from .abbrev_defs). Inserted > > this by hand first, maybe "(copy-abbrev-table > > text-mode-abbrev-table)" in my function didn't had the > > effect. > > Hm now I am really confused. > Your function copies an existing table into a new one. But what I > would like to do is to have in LaTeX mode, either spanish-minor mode > or german-minor-mode or english-minor-mode turn on. > > Then according to this minor mode flyspell should write in the > corresponding (minor) mode tables. I don't see how your code does > this. > > As I understand it, you can define some abbrevs in say your > english-mayor-mode and then with your function copy it into > minor-mode-table. > > Do I understand that correctly? > > Unfortunately I could no test your codes since it contains some emacs > specific functions namely copy-abbrev-table for which no equivalent > seems to exit in XEmacs. > > Uwe I've dropped this copy-function, whose intention was a side-effect, not needed as it turns out. Spanish minor-mode works here as shown below. Should it not work with XEmacs now, please send a notice. To install further language-tables it might be necessary to edit `.abbrev_defs' by hand inserting something like (define-abbrev-table 'MY-minor-mode-abbrev-table '( )) Thats all AFAIS Andreas R=F6hler ;;; (define-abbrev-table 'spanish-minor-mode-abbrev-table '( ;;; ("tx" "texto" nil 0) ;;; )) (define-minor-mode spanish-minor-mode "Switch on Spanish minor mode." nil nil nil (set (make-local-variable 'spanish-minor-mode) t) (unless (memq 'spanish-minor-mode-abbrev-table abbrev-table-name-list) (add-to-list 'abbrev-table-name-list 'spanish-minor-mode-abbrev-table)) (setq local-abbrev-table spanish-minor-mode-abbrev-table)) (defun disable-spanish-minor-mode () "Disable Spanish minor-mode. " (interactive) (setq spanish-minor-mode nil) (setq local-abbrev-table text-mode-abbrev-table))