Package: dictionaries-common
Version: 1.5.1
Severity: normal

Emacs launches an ispell process (by which I mean whatever you
configured via `ispell-program-name') spontaneously, if you turn on
`flyspell-mode' (e.g., through a mode hook) or by using C-$ (M-x
ispell-word) and friends interactively.  This process is launched using
the current buffer's `default-directory'.  If the current buffer is
visiting a file on a removable volume like a USB stick, then ispell's
current directory is on the volume, and ispell will prevent it from
being unmounted.

I notice that there's already a check that the default directory is a
readable directory and `ispell-start-process' forces ispell to start in
the user's home directory otherwise.  Since (at least if we're using an
asynchronous process) the same ispell process is used for all buffers,
the starting directory isn't necessarily very relevant to the job that
ispell is being asked to do: I think that asynchronous ispell should be
started in the user's home directory unconditionally.

i.e.,

diff -u /tmp/mwooding/ispell.el\~ /tmp/mwooding/ispell.el
--- /tmp/mwooding/ispell.el~      2010-04-01 19:01:13.000000000 +0100
+++ /tmp/mwooding/ispell.el       2010-04-01 18:58:18.000000000 +0100
@@ -2767,7 +2767,8 @@
   (let ((default-directory default-directory)
         args)
     (unless (and (file-directory-p default-directory)
-                 (file-readable-p default-directory))
+                 (file-readable-p default-directory)
+                 (not ispell-async-process-p))
       ;; Defend against bad `default-directory'.
       (setq default-directory (expand-file-name "~/")))
     ;; Local dictionary becomes the global dictionary in use.

(Emacs tells me that I'm getting `ispell.el' from this package so I'm
reporting it here.  The bug probably wants to be fixed in `emacs23' too.)

In the meantime, I'll have to add a `~/bin/aspell-hack' which does

        #! /bin/sh
        set -e; cd; exec aspell "$@"

and point `ispell-program-name' at it.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.31.9 (PREEMPT)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dictionaries-common depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  libtext-iconv-perl            1.7-2      converts between character sets in

dictionaries-common recommends no packages.

Versions of packages dictionaries-common suggests:
ii  emacsen-common                1.4.19     Common facilities for all emacsen
ii  ispell                        3.1.20.0-7 International Ispell (an interacti
pn  jed-extra                     <none>     (no description available)

-- debconf information:
  dictionaries-common/invalid_debconf_value:
  dictionaries-common/ispell-autobuildhash-message:
  dictionaries-common/move_old_usr_dict: true
  dictionaries-common/selecting_ispell_wordlist_default:
* dictionaries-common/default-ispell: american (American English)
* dictionaries-common/default-wordlist: american (American English)
  dictionaries-common/old_wordlist_link: true
  dictionaries-common/remove_old_usr_dict_link: true



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to