emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/textmodes/ispell.el,v


From: Martin Rudalics
Subject: [Emacs-diffs] Changes to emacs/lisp/textmodes/ispell.el,v
Date: Wed, 16 May 2007 05:49:58 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Martin Rudalics <m061211>       07/05/16 05:49:57

Index: ispell.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/textmodes/ispell.el,v
retrieving revision 1.209
retrieving revision 1.210
diff -u -b -r1.209 -r1.210
--- ispell.el   20 Mar 2007 16:23:09 -0000      1.209
+++ ispell.el   16 May 2007 05:49:57 -0000      1.210
@@ -2483,7 +2483,12 @@
 (defun ispell-start-process ()
   "Start the ispell process, with support for no asynchronous processes.
 Keeps argument list for future ispell invocations for no async support."
-  (let (args)
+  (let ((default-directory default-directory)
+       args)
+    (unless (and (file-directory-p default-directory)
+                (file-readable-p default-directory))
+      ;; Defend against bad `default-directory'.
+      (setq default-directory (expand-file-name "~/")))
     ;; Local dictionary becomes the global dictionary in use.
     (setq ispell-current-dictionary
          (or ispell-local-dictionary ispell-dictionary))




reply via email to

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