diff options
| author | Karl Heuer | 1997-10-19 19:54:35 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-19 19:54:35 +0000 |
| commit | 10d31baea624fbf40401baee38aca1c2706ae1dd (patch) | |
| tree | e2e3fdbde0b41efc995db1128ad275c84ce9be16 | |
| parent | e4541b670de21babbaaad1ca849c3a7e57ac2b2d (diff) | |
| download | emacs-10d31baea624fbf40401baee38aca1c2706ae1dd.tar.gz emacs-10d31baea624fbf40401baee38aca1c2706ae1dd.zip | |
(ispell-change-dictionary): Fix error message.
(ispell-buffer-local-parsing): Fix message.
(ispell-get-word): Use buffer-substring-no-properties.
(ispell-buffer-local-dict): Likewise.
| -rw-r--r-- | lisp/textmodes/ispell.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index c74a6d971bc..be445f276cc 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -993,7 +993,7 @@ Word syntax described by `ispell-dictionary-alist' (which see)." | |||
| 993 | (error "No word found to check!")) | 993 | (error "No word found to check!")) |
| 994 | (setq start (match-beginning 0) | 994 | (setq start (match-beginning 0) |
| 995 | end (point) | 995 | end (point) |
| 996 | word (buffer-substring start end)) | 996 | word (buffer-substring-no-properties start end)) |
| 997 | (list word start end))) | 997 | (list word start end))) |
| 998 | 998 | ||
| 999 | 999 | ||
| @@ -1708,7 +1708,7 @@ With prefix argument, set the default directory." | |||
| 1708 | (setq ispell-dictionary dict)) | 1708 | (setq ispell-dictionary dict)) |
| 1709 | (if (null arg) ; set local dictionary | 1709 | (if (null arg) ; set local dictionary |
| 1710 | (setq ispell-local-dictionary dict))) | 1710 | (setq ispell-local-dictionary dict))) |
| 1711 | (error "Illegal dictionary: %s" dict)) | 1711 | (error "Invalid Ispell dictionary: %s" dict)) |
| 1712 | (ispell-kill-ispell t) | 1712 | (ispell-kill-ispell t) |
| 1713 | (message "(Next %sIspell command will use %s dictionary)" | 1713 | (message "(Next %sIspell command will use %s dictionary)" |
| 1714 | (cond ((equal ispell-local-dictionary ispell-dictionary) | 1714 | (cond ((equal ispell-local-dictionary ispell-dictionary) |
| @@ -2360,7 +2360,7 @@ Includes latex/nroff modes and extended character mode." | |||
| 2360 | (process-send-string ispell-process "-\n~nroff")) | 2360 | (process-send-string ispell-process "-\n~nroff")) |
| 2361 | ((string-match "~" string) ; Set extended character mode. | 2361 | ((string-match "~" string) ; Set extended character mode. |
| 2362 | (process-send-string ispell-process (concat string "\n"))) | 2362 | (process-send-string ispell-process (concat string "\n"))) |
| 2363 | (t (message "Illegal Ispell Parsing argument!") | 2363 | (t (message "Invalid Ispell Parsing argument!") |
| 2364 | (sit-for 2)))))))) | 2364 | (sit-for 2)))))))) |
| 2365 | 2365 | ||
| 2366 | 2366 | ||
| @@ -2381,13 +2381,15 @@ Both should not be used to define a buffer-local dictionary." | |||
| 2381 | (setq end (save-excursion (end-of-line) (point))) | 2381 | (setq end (save-excursion (end-of-line) (point))) |
| 2382 | (if (re-search-forward " *\\([^ \"]+\\)" end t) | 2382 | (if (re-search-forward " *\\([^ \"]+\\)" end t) |
| 2383 | (setq ispell-local-dictionary | 2383 | (setq ispell-local-dictionary |
| 2384 | (buffer-substring (match-beginning 1) (match-end 1))))) | 2384 | (buffer-substring-no-properties (match-beginning 1) |
| 2385 | (match-end 1))))) | ||
| 2385 | (goto-char (point-min)) | 2386 | (goto-char (point-min)) |
| 2386 | (while (search-forward ispell-pdict-keyword nil t) | 2387 | (while (search-forward ispell-pdict-keyword nil t) |
| 2387 | (setq end (save-excursion (end-of-line) (point))) | 2388 | (setq end (save-excursion (end-of-line) (point))) |
| 2388 | (if (re-search-forward " *\\([^ \"]+\\)" end t) | 2389 | (if (re-search-forward " *\\([^ \"]+\\)" end t) |
| 2389 | (setq ispell-local-pdict | 2390 | (setq ispell-local-pdict |
| 2390 | (buffer-substring (match-beginning 1) (match-end 1))))))) | 2391 | (buffer-substring-no-properties (match-beginning 1) |
| 2392 | (match-end 1))))))) | ||
| 2391 | ;; Reload if new personal dictionary defined. | 2393 | ;; Reload if new personal dictionary defined. |
| 2392 | (if (and ispell-local-pdict | 2394 | (if (and ispell-local-pdict |
| 2393 | (not (equal ispell-local-pdict ispell-personal-dictionary))) | 2395 | (not (equal ispell-local-pdict ispell-personal-dictionary))) |