From: "Andreas Röhler" <andreas.roehler@online.de>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: flyspell: local abbrev in different languages
Date: Fri, 28 Sep 2007 08:28:49 +0200 [thread overview]
Message-ID: <200709280828.50434.andreas.roehler@online.de> (raw)
In-Reply-To: <87myv8cim2.fsf@mat.ucm.es>
Am Donnerstag, 27. September 2007 16:01 schrieb Uwe Brauer:
> >>>>> "Andreas" == Andreas Röhler <andreas.roehler@online.de> writes:
> >
> > ...
> >
> > 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öhler
;;; (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))
next prev parent reply other threads:[~2007-09-28 6:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-26 8:31 flyspell: local abbrev in different languages Uwe Brauer
2007-09-26 16:28 ` Andreas Röhler
[not found] ` <mailman.1324.1190824116.18990.help-gnu-emacs@gnu.org>
2007-09-26 18:24 ` Uwe Brauer
2007-09-27 13:24 ` Andreas Röhler
[not found] ` <mailman.1393.1190899494.18990.help-gnu-emacs@gnu.org>
2007-09-27 14:01 ` Uwe Brauer
2007-09-28 6:28 ` Andreas Röhler [this message]
[not found] ` <mailman.1416.1190960922.18990.help-gnu-emacs@gnu.org>
2007-09-28 8:31 ` (inverse)-add-local-mode-abbrev (was: flyspell: local abbrev in different languages) Uwe Brauer
2007-09-28 15:12 ` flyspell: local abbrev in different languages Stefan Monnier
2007-09-28 15:40 ` Uwe Brauer
2007-09-28 16:29 ` prbl msg mode (was: flyspell: local abbrev in different languages) Uwe Brauer
2007-09-28 17:45 ` prbl msg mode Uwe Brauer
2007-09-27 9:51 ` flyspell: local abbrev in different languages Uwe Brauer
2007-09-27 10:27 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200709280828.50434.andreas.roehler@online.de \
--to=andreas.roehler@online.de \
--cc=help-gnu-emacs@gnu.org \
--cc=oub@mat.ucm.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.