help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 24.2.1: ispell: use of local ispell-personal-dictionary


From: Akim Demaille
Subject: Re: 24.2.1: ispell: use of local ispell-personal-dictionary
Date: Tue, 27 Nov 2012 15:59:46 +0100

Le 24 nov. 2012 à 03:57, Michael Heerdegen <michael_heerdegen@web.de> a écrit :

> Hi Akim,

Hi Michael, thanks for the answer!

> your file local variable `ispell-personal-dictionary' is bound to the
> string "../en.dict" when you open your file.  Note that no expansion of
> the ".." takes place.  Whether this string later is interpreted as
> intended or not is just luck…

But it used to work.  This looks very much like a regression to me.

I have run the following experiment, on a file with these local variables:

%%% Local Variables:
%%% mode: latex
%%% coding: utf-8
%%% ispell-dictionary: "american"
%%% ispell-personal-dictionary: "en.dict"
%%% TeX-master: t
%%% fill-column: 76
%%% End:

Of course, what is expected is that en.dict is a local file, "in ./"
relatively to the file with these local variables.

With Emacs 22, I have the expected behavior:

$ /usr/bin/emacs --version
GNU Emacs 22.1.1
Copyright (C) 2007 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

$ /usr/bin/emacs f.tex
              -- (here, I "M-x ispell", and "C-z" Emacs)

zsh: suspended  /usr/bin/emacs f.tex
$ ps aux | grep aspell
[…] /opt/local/bin/aspell -a -m -d en_US --encoding=utf-8 -p 
/Users/akimd/src/lrde/cours-mob/mob1/src/lecture_2/en.dict

As you can see, the location of the en.dict is correct (well, you
cannot see because I have not shown where f.tex was, and it is
there, /Users/akimd/src/lrde/cours-mob/mob1/src/lecture_2).

Now with Emacs 24:

$ emacs --version
GNU Emacs 24.2.1
Copyright (C) 2012 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

$ emacs mob1/src/lecture_2/f.tex

zsh: suspended  emacs mob1/src/lecture_2/f.tex
$ ps aux | grep aspell
[…] /opt/local/bin/aspell -a -m -d en_US -p /Users/akimd/en.dict 
--encoding=utf-8

this time its completely wrong.


The previous behavior was much more useless, as it made it possible
for a repository of documents to share a dictionary, something much
more useful than Local Words.

Yes, there is the "eval" option, but that's working around a bug imho,
with the nasty effect that each time the document is opened, you have
to validate the action.

If "personal" was really meant to be the user's personal data, then
it was easy to use "~/" to make it clear.  Today, the way the dictionary
name is turned absolutely forbids the previous useful approach.

Or have I missed something?

Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]