From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.bugs Subject: bug#13019: 24.2; ispell: use of local ispell-personal-dictionary Date: Fri, 30 Nov 2012 18:11:56 +0100 Message-ID: <20121130171156.GA5521@agmartin.aq.upm.es> References: <64FA190B-F4D1-4743-B468-DF2262348DF1@gmail.com> <11368004.8066.1354137417393.JavaMail.root@mx1-new.spamfiltro.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1354297685 3307 80.91.229.3 (30 Nov 2012 17:48:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 17:48:05 +0000 (UTC) Cc: Akim Demaille To: 13019@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 30 18:48:14 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TeUhB-0007ez-FL for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 18:48:13 +0100 Original-Received: from localhost ([::1]:56102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeUgz-00027U-VZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Nov 2012 12:48:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeU94-0004fl-Ku for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:12:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeU93-0000oZ-1l for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:12:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeU92-0000oQ-Ss for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:12:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TeUB4-000127-Aj for bug-gnu-emacs@gnu.org; Fri, 30 Nov 2012 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Agustin Martin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Nov 2012 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13019 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13019-submit@debbugs.gnu.org id=B13019.13542956483896 (code B ref 13019); Fri, 30 Nov 2012 17:15:02 +0000 Original-Received: (at 13019) by debbugs.gnu.org; 30 Nov 2012 17:14:08 +0000 Original-Received: from localhost ([127.0.0.1]:47238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeUAB-00010m-LI for submit@debbugs.gnu.org; Fri, 30 Nov 2012 12:14:08 -0500 Original-Received: from fibonacci.ccupm.upm.es ([138.100.198.70]:37432 helo=smtp.upm.es) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TeUA9-00010e-5B for 13019@debbugs.gnu.org; Fri, 30 Nov 2012 12:14:06 -0500 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/fibonacci-001) with ESMTP id qAUHBvkv027611; Fri, 30 Nov 2012 18:11:57 +0100 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id 1E715707; Fri, 30 Nov 2012 18:11:57 +0100 (CET) Content-Disposition: inline In-Reply-To: <11368004.8066.1354137417393.JavaMail.root@mx1-new.spamfiltro.es> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67671 Archived-At: On Wed, Nov 28, 2012 at 04:16:53PM -0500, Glenn Morris wrote: > Akim Demaille wrote: > > > I have recently upgraded my Emacs from 22.2.1 to 24.2.1, and there is > > a feature I lost: I could use ispell-personal-dictionary to specify a > > per-document *local* (i.e., relative to the directory of the file) > > dictionary. > > Presumably due to 2010-09-02 changes to ispell-init-process for > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6143 > > Perhaps a file-name-absolute-p check for various variables could be > file-local could be added to that. > > > | %%% ispell-dictionary: "american" > > | %%% ispell-personal-dictionary: "../en.dict" Actual problem happens in `ispell-start-process' where the string to be passed to the spellchecker as personal dictionary is expanded, (if ispell-current-personal-dictionary ; Use specified pers dict. (list "-p" (expand-file-name ispell-current-personal-dictionary))) and is indeed affected by the changes in `default-dictionary' coming from `ispell-init-process`. I think the only reason for that `expand-file-name' is the tilde expansion in non-UNIX systems. In UNIX systems tilde can be explicitly passed. Not sure if the directory {forward,back}slash is also related to this. I am thinking about expanding `ispell-current-personal-dictionary' string only if it contains a tilde prefix. However I am too biassed to the UNIX world. Anyone at the e.g. win32 world can provide info about possible problems with that? -- Agustin