aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustín Martín2013-03-01 18:13:04 +0100
committerAgustín Martín2013-03-01 18:13:04 +0100
commit325b66a6d1b648a6db2bcdc2bab14896dc67c099 (patch)
tree88ce95d9e545a12df0cd4b64dcdfe8eaa9185cd9
parent89bd9d36859503e25b767f97395870190f272bc1 (diff)
downloademacs-325b66a6d1b648a6db2bcdc2bab14896dc67c099.tar.gz
emacs-325b66a6d1b648a6db2bcdc2bab14896dc67c099.zip
textmodes/ispell.el: Expand hunspell affix-file paths. Improve debug messages printing.
* textmodes/ispell.el (ispell-find-hunspell-dictionaries): Always expand affix-file before storing to protect against changed `default-directory'. (ispell-print-if-debug): Make sure message is printed at the end of the debug buffer.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/textmodes/ispell.el3
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2ffe23823ba..0b9f7436f6f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12013-03-01 Agustín Martín Domingo <agustin.martin@hispalinux.es>
2
3 * textmodes/ispell.el (ispell-find-hunspell-dictionaries):
4 Always expand affix-file before storing to protect against changed
5 `default-directory'.
6 (ispell-print-if-debug): Make sure message is printed at the end
7 of the debug buffer.
8
12013-03-01 Michael Albinus <michael.albinus@gmx.de> 92013-03-01 Michael Albinus <michael.albinus@gmx.de>
2 10
3 * net/tramp.el (tramp-obsolete-methods): New defconst. 11 * net/tramp.el (tramp-obsolete-methods): New defconst.
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index d785b938f67..7b26b2f8479 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -959,6 +959,7 @@ See `ispell-buffer-with-debug' for an example of use."
959 "Print STRING to `ispell-debug-buffer' buffer if enabled." 959 "Print STRING to `ispell-debug-buffer' buffer if enabled."
960 (if (boundp 'ispell-debug-buffer) 960 (if (boundp 'ispell-debug-buffer)
961 (with-current-buffer ispell-debug-buffer 961 (with-current-buffer ispell-debug-buffer
962 (end-of-buffer)
962 (insert string)))) 963 (insert string))))
963 964
964 965
@@ -1244,7 +1245,7 @@ entries if a specific dict was found."
1244 (if (and (not (assoc basename ispell-hunspell-dict-paths-alist)) 1245 (if (and (not (assoc basename ispell-hunspell-dict-paths-alist))
1245 (file-exists-p affix-file)) 1246 (file-exists-p affix-file))
1246 ;; Entry has an associated .aff file and no previous value. 1247 ;; Entry has an associated .aff file and no previous value.
1247 (progn 1248 (let ((affix-file (expand-file-name affix-file)))
1248 (ispell-print-if-debug 1249 (ispell-print-if-debug
1249 (format "++ ispell-fhd: dict-entry:%s name:%s basename:%s affix-file:%s\n" 1250 (format "++ ispell-fhd: dict-entry:%s name:%s basename:%s affix-file:%s\n"
1250 dict full-name basename affix-file)) 1251 dict full-name basename affix-file))