From: Uwe Brauer <oub@mat.ucm.es>
To: help-gnu-emacs@gnu.org
Subject: (inverse)-add-local-mode-abbrev (was: flyspell: local abbrev in different languages)
Date: Fri, 28 Sep 2007 10:31:17 +0200 [thread overview]
Message-ID: <87y7eryywa.fsf_-_@mat.ucm.es> (raw)
In-Reply-To: mailman.1416.1190960922.18990.help-gnu-emacs@gnu.org
>>>>> "Andreas" == Andreas Röhler <andreas.roehler@online.de> writes:
>>
>> 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
Ok I see this works. However the main question is how to add
entries to
(define-abbrev-table 'spanish-minor-mode-abbrev-table '(
("tx" "texto" nil 0)
))
There are only two functions I know of namely
(inverse)-add-mode-abbrev which adds to a global-mode-abbrev-table
and
inverse-add-global-abbrev
which adds to the global-abbrev-table
And flyspell makes use of one of them.
So what would be needed is a
(inverse)-add-local-mode-abbrev
which adds to a
local-mode-abbrev-table
And then to include that into the flyspell code.
I just tested the interaction between a global-mode-abbrev-table and a
local-mode-abbrev-table.
I had in an emacs-lisp file I defined tx as text and in the minor mode
tx as texto. When turning the minor mode on and off, the abbrev of the
minor mode was used not that of the global mode, as it should be
Uwe
next prev parent reply other threads:[~2007-09-28 8:31 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
[not found] ` <mailman.1416.1190960922.18990.help-gnu-emacs@gnu.org>
2007-09-28 8:31 ` Uwe Brauer [this message]
2007-09-28 15:12 ` 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=87y7eryywa.fsf_-_@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=help-gnu-emacs@gnu.org \
/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.