unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24439: ispell.el; cutom setting `ispell-library-directory'; patch
@ 2016-09-14 20:02 Laimonas Vėbra
  2016-09-15 15:07 ` Eli Zaretskii
  2016-09-16  1:35 ` Laimonas Vėbra
  0 siblings, 2 replies; 22+ messages in thread
From: Laimonas Vėbra @ 2016-09-14 20:02 UTC (permalink / raw)
  To: 24439

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Hello,

On Windows if one uses cygwin ispell, then one should fix ispell LIBDIR 
(which is not correct absolute path) relative to cygwin root by setting 
`ispell-library-directory'. Or one also might wish to use custom 
location of dictionaries.
Currently ispell.el breaks this possibiliity, because it resets
`ispell-library-directory' to possibly incorrect or unwanted ispell 
LIBDIR on every ispell call. Suggested patch attached.

I'm not sure if it doesn't break something (that's why i'm asking in 
patch comments), but AFAICS it shouldn't.
Could someone familiar with ispell.el overview and comment on this tiny 
patch?

[-- Attachment #2: ispell.patch --]
[-- Type: text/plain, Size: 1135 bytes --]

--- ispell.el.orig	2015-04-02 10:23:06.000000000 +0300
+++ ispell.el	2016-09-14 22:36:58.446548500 +0300
@@ -3044,7 +3044,17 @@
 	       ispell-program-name
 	       (or ispell-local-dictionary ispell-dictionary "default"))
       (sit-for 0)
-      (setq ispell-library-directory (ispell-check-version)
+      (setq
+        ;; Why do we need to update `ispell-library-directory' on every 
+        ;; ispell process launch? If we do not change `ispell-program-name', 
+        ;; then `ispell-library-directory' should also not be changed once 
+        ;; it is set/initialized in `ispell-set-spellchecker-params'.
+        ;; Besides, this breaks custom setting `ispell-library-directory' 
+        ;; (e.g. cygwin ispell with LIBDIR relative to cygwin root, that 
+        ;; should be fixed; custom location of dictionaries), because it 
+        ;; resets `ispell-library-directory' to (possibly incorrect, 
+        ;; unwanted) ispell LIBDIR on every ispell call.
+        ;; ispell-library-directory (ispell-check-version) 
 	    ispell-process (ispell-start-process)
 	    ispell-filter nil
 	    ispell-filter-continue nil

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2016-10-08 12:18 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-14 20:02 bug#24439: ispell.el; cutom setting `ispell-library-directory'; patch Laimonas Vėbra
2016-09-15 15:07 ` Eli Zaretskii
2016-09-15 15:56   ` Laimonas Vėbra
2016-09-15 16:34     ` Eli Zaretskii
2016-09-15 16:51       ` Laimonas Vėbra
2016-09-15 17:20         ` Eli Zaretskii
2016-09-15 17:53           ` Laimonas Vėbra
2016-09-15 18:48             ` Eli Zaretskii
2016-09-15 20:10               ` Laimonas Vėbra
2016-09-15 20:57                 ` Ken Brown
2016-09-15 21:20                   ` Laimonas Vėbra
2016-09-15 22:17                     ` Ken Brown
2016-09-15 23:00                       ` Laimonas Vėbra
2016-09-16  6:46                       ` Eli Zaretskii
2016-09-16  6:25                 ` Eli Zaretskii
2016-09-16  1:35 ` Laimonas Vėbra
2016-09-16  6:44   ` Eli Zaretskii
2016-09-24 17:47     ` Laimonas Vėbra
2016-10-06 10:33     ` Laimonas Vėbra
2016-10-07  8:58       ` Eli Zaretskii
2016-10-08 11:30         ` Agustin Martin
2016-10-08 12:18           ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).