1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

197 Commits

Author SHA1 Message Date
Reiner Steib
3e45722587 * subr.el (string-or-null-p): New function.
* textmodes/paragraphs.el (sentence-end): Use string-or-null-p.

* textmodes/ispell.el (ispell-local-dictionary): Use
string-or-null-p.

* files.el: Update comment about safe-local-variable declarations.
2006-04-06 19:20:38 +00:00
Reiner Steib
6c07f4d42a * files.el: Move some `safe-local-variable' declarations to the
respective files.

* textmodes/ispell.el (ispell-check-comments)
(ispell-local-dictionary): Mark as safe.

* abbrev.el (abbrev-mode): Mark as safe.

* add-log.el (change-log-default-name): Mark as safe.

* textmodes/reftex-vars.el (reftex-vref-is-default)
(reftex-fref-is-default, reftex-level-indent)
(reftex-guess-label-type): Mark as safe.

* textmodes/fill.el (colon-double-space): Mark as safe.

* textmodes/paragraphs.el (paragraph-start, paragraph-separate)
(sentence-end-double-space, sentence-end-without-period)
(sentence-end-without-space, sentence-end, sentence-end-base)
(page-delimiter, paragraph-ignore-fill-prefix): Mark as safe.
2006-04-06 15:36:24 +00:00
Eli Zaretskii
b857cb5c8e (ispell-skip-region-alist): Add "_+" to the part that matches email addresses,
file names, etc.
2006-03-18 14:11:55 +00:00
Eli Zaretskii
918555b804 (ispell-find-aspell-dictionaries): Add aliases before merging elements from the
standard ispell-dictionary-alist.
(ispell-aspell-add-aliases): Add aliases to the passed dictionary alist, and
return the new alist.
2006-03-11 15:36:15 +00:00
Eli Zaretskii
17849b4ae2 (ispell-menu-map-needed) [ispell-message]: Be visible only if major mode
is Mail Mode.
2006-03-11 15:29:52 +00:00
Eli Zaretskii
72e4724be1 (ispell-local-dictionary-alist): Accept as valid any coding-system
supported by emacs.
(ispell-dictionary-alist-3): Esperanto dictionary's coding system
changed to iso-8859-3.
2006-02-17 11:13:26 +00:00
Eli Zaretskii
a2a385a7ab (ispell-change-dictionary): Call ispell-buffer-local-dict instead of
ispell-accept-buffer-local-defs.
2006-02-17 10:43:53 +00:00
Eli Zaretskii
967a91b21d (ispell-find-aspell-dictionaries): If no English aspell dictionary is
installed, use the first entry of ispell-dictionary-alist-1.
2006-01-27 19:49:14 +00:00
Stefan Monnier
d83d8efe0b (ispell-internal-change-dictionary, ispell-change-dictionary):
Undo most of last change of 2006-01-13.
(start, end): Move declaration outside of eval-when-compile.
2006-01-15 06:05:50 +00:00
Stefan Monnier
2834b9b3b8 (ispell-kill-ispell): Run new hook ispell-kill-ispell-hook. 2006-01-15 05:42:35 +00:00
Eli Zaretskii
fc8a237d21 (ispell-init-process): Include the used dictionary in ispell process
start message.
(ispell-internal-change-dictionary): When flyspell-mode is active and
dictionary is changed, make sure ispell process is restarted and
flyspell word cache cleared out for the current buffer.
(ispell-change-dictionary): Make sure flyspell word cache is cleared
out in all buffers with active flyspell mode when dictionary is globally
changed.  Call ispell-internal-change-dictionary after dictionary change.
2006-01-13 10:46:09 +00:00
Richard M. Stallman
09b2eb5e8c (ispell-current-personal-dictionary): New variable.
(ispell-start-process): Set that variable.
Clear ispell-buffer-local-name.
(ispell-internal-change-dictionary):
Set ispell-current-dictionary after killing process.
(ispell-buffer-local-dict):
Don't set spell-personal-dictionary after killing process.
(ispell-buffer-local-words): Don't clear out ispell-buffer-local-name.

(ispell-tex-skip-alists)
(ispell-html-skip-alists, ispell-skip-region-alist): Mark as risky.
2005-12-16 02:00:02 +00:00
Juri Linkov
9bb3de4b31 (ispell-highlight-spelling-error-overlay):
Change overlay priority from 1 to 1001.  Reuse existing overlay.
2005-12-09 09:47:30 +00:00
Richard M. Stallman
d27a3d1684 (ispell-command-loop): Change `i' description not to assume it
pertains to an affix.
2005-11-03 21:34:12 +00:00
Richard M. Stallman
fb031ddd98 (ispell-dictionary-alist-5): Add . as boundarychar for Polish.
(ispell-dictionary-alist-4): Add . as boundarychar for Italian.
(ispell-dictionary-alist-3): Add . and @ as boundarychars for French.
2005-10-30 15:49:51 +00:00
Richard M. Stallman
a8097641a5 (ispell-local-dictionary-overridden): Fix the
make-variable-buffer-local call that was supposed to be for this variable.
(ispell-aspell-supports-utf8): Doc fix.
(ispell-find-aspell-dictionaries): Preserve elements of
ispell-dictionary-alist for dictionaries that aspell doesn't report.
(ispell-aspell-find-dictionary): Return nil on error.
2005-10-23 18:22:06 +00:00
Romain Francoise
865729da26 (ispell-check-version): Fix last change. 2005-10-09 12:54:23 +00:00
Richard M. Stallman
344066e625 (ispell-check-version):
Ignore hyphen, and all that follows, in aspell's version text.
2005-10-08 19:55:02 +00:00
Richard M. Stallman
966a7f495b (ispell-word, ispell-region): Call ispell-maybe-find-aspell-dictionaries.
(ispell-accept-buffer-local-defs):
Don't call ispell-maybe-find-aspell-dictionaries
2005-10-04 20:28:27 +00:00
Stefan Monnier
326ebf78cd (ispell-find-aspell-dictionaries): Remove interactive spec. 2005-10-03 18:11:35 +00:00
Eli Zaretskii
999f7d6519 (ispell-maybe-find-aspell-dictionaries): New function, code extracted from
ispell-valid-dictionary-list.
(ispell-valid-dictionary-list, ispell-accept-buffer-local-defs): Call it.
2005-09-24 10:46:03 +00:00
Deepak Goel
5673af85e4 Message format spec fixes (2) 2005-09-18 12:28:30 +00:00
Eli Zaretskii
4ca8965ca1 (ispell-aspell-supports-utf8): New variable.
(ispell-check-version): Set ispell-aspell-supports-utf8 to t for
aspell versions >= 0.60.
(ispell-valid-dictionary-list): Call ispell-find-aspell-dictionaries
only if ispell-aspell-supports-utf8 is non-nil.
2005-09-17 11:35:13 +00:00
Eli Zaretskii
c10b0abc38 (ispell-check-version): Signal an error if aspell version is less than 0.60. 2005-09-10 15:09:06 +00:00
Juanma Barranquero
66793230b0 (mail-yank-prefix): Add defvar. 2005-08-31 10:26:26 +00:00
Richard M. Stallman
7924c5dfbd (lookup-words): Cope with case where ARGS is empty. 2005-08-15 01:37:41 +00:00
Richard M. Stallman
e7cdb3e043 (ispell-word): More fboundp checks.
(ispell-find-aspell-dictionaries): New command.
(ispell-have-aspell-dictionaries): New variable.
(ispell-aspell-data-dir, ispell-aspell-dict-dir): New variables.
(ispell-get-aspell-config-value): New function.
(ispell-aspell-find-dictionary): New function.
(ispell-aspell-add-aliases): New function.
(ispell-valid-dictionary-list): Call ispell-find-aspell-dictionaries if
appropriate.  Don't look for ispell dictionaries if we use aspell.
(ispell-menu-map): Don't build a submenu of dictionaries.
2005-08-09 14:12:44 +00:00
Thien-Thi Nguyen
3731a85096 Update years in copyright notice; nfc. 2005-08-06 17:48:15 +00:00
Juri Linkov
4a65d2b34e (ispell-command-loop): Add current dictionary name and program name
to mode-line-format.
(ispell-region, ispell-process-line): Add current dictionary name
and program name to messages.
2005-07-09 20:49:10 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Luc Teirlinck
edfa1c2e30 (ispell-word): Remove stray parenthesis. 2005-06-28 22:02:13 +00:00
Richard M. Stallman
f0a1f8bdb5 (ispell-word): Do not ignore short words. 2005-06-28 18:58:30 +00:00
Lute Kamstra
420adcc607 (ispell-menu-map-needed): flyspell-mode could be void. 2005-06-09 12:14:26 +00:00
Richard M. Stallman
8177179364 (ispell-check-version): Use match-string-no-properties.
(ispell-region,	ispell-buffer-local-parsing, ispell-buffer-local-dict)
(ispell-buffer-local-words): Likewise.
2005-06-08 15:45:34 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Eli Zaretskii
55b958f07b (ispell-program-name): Try looking for "aspell" along exec-path,
and if found, use it as the default speller program.
2005-05-07 16:06:07 +00:00
Eli Zaretskii
04dd07e31c (ispell-dictionary-alist-6): Add slovenian. 2005-03-26 16:34:34 +00:00
Juri Linkov
1332f1a08b (ispell-lazy-highlight): New defcustom.
(ispell-highlight-face): Set default face to `isearch' when
lazy highlighting is enabled.
(ispell-highlight-spelling-error-overlay): Set `ispell-overlay'
priority to 1.  Add lazy highlighting.
(ispell-highlight-spelling-error-xemacs): Remove obsolete arg
from `isearch-dehighlight'.
2005-03-18 10:01:12 +00:00
Kenichi Handa
ca8d88cd7d (ispell-insert-word): New function.
(ispell-word): Use ispell-insert-word to isnert a new word.
(ispell-process-line): Likewise
(ispell-complete-word): Likewise.
2005-03-09 00:36:22 +00:00
Richard M. Stallman
8e07e84ae6 (ispell-change-dictionary): Doc fix. 2005-02-27 10:37:13 +00:00
Kenichi Handa
bb1954bdd6 (ispell-dictionary-alist): Fix docstring. 2005-02-21 02:15:31 +00:00
Stefan Monnier
ca97010c3a (ispell-internal-change-dictionary): Fix problem in recent changes, where
the ispell process was repeatedly killed & restarted.
2005-02-03 16:20:22 +00:00
Richard M. Stallman
a6e7a34bef (ispell-local-dictionary-overridden): New var.
(ispell-local-dictionary): Doc fix.
(ispell-dictionary-alist): Don't include ispell-local-dictionary-alist.
Don't reinitialize at run time.  Don't defcustom.
All uses changed to append ispell-local-dictionary-alist,
or else check it first.
(ispell-current-dictionary): New variable for dictionary in use.
(ispell-dictionary): Now used only for global default.
(ispell-start-process): Set ispell-current-dictionary,
not ispell-dictionary.
(ispell-change-dictionary): Use this only for setting
user preferences.
(ispell-internal-change-dictionary): New function
to change the current dictionary in use.
(ispell-region, ispell-process-line, ispell-buffer-local-dict):
Use ispell-current-dictionary.
Handle ispell-local-dictionary-overridden.
(ispell-buffer-local-dict): Call ispell-internal-change-dictionary.
2005-01-31 11:54:36 +00:00
Lute Kamstra
2fc3738c63 (ispell-dictionary-alist-4): Rewrite the CASECHARS and NOT-CASECHARS
regular expressions of the "nederlands" and "nederlands8" dictionaries
to prevent a "Range striding over charsets" error.
2005-01-25 00:38:46 +00:00
Kenichi Handa
664ca704c3 (ispell-looking-at): New function.
(ispell-process-line): Use ispell-looking-at to compare the ispell
output and the buffer contents.
2005-01-18 23:20:18 +00:00
Kenichi Handa
8253213c10 (ispell-unified-chars-table): New variable.
(ispell-get-decoded-string): New function.
(ispell-get-casechars, ispell-get-not-casechars)
(ispell-get-otherchars): Call ispell-get-decoded-string.
2005-01-13 04:33:05 +00:00
Richard M. Stallman
56351784c9 (ispell-help): Bind resize-mini-windows. 2004-12-22 00:23:53 +00:00
Richard M. Stallman
0a6d03627f (ispell-check-version): If default-directory is nonexistent, use home dir. 2004-11-25 03:06:16 +00:00
Richard M. Stallman
a259d74c68 (ispell-word): Don't alter args; set them only thru `interactive' spec. 2004-11-04 10:22:24 +00:00
Richard M. Stallman
6063ae55f0 (ispell-command-loop): Use with-no-warnings.
(ispell-message): Likewise.
(ispell-show-choices): Don't call get-buffer-window uselessly.
(ispell-init-process): Use set-process-query-on-exit-flag.
2004-10-16 15:07:09 +00:00