Commit graph

136 commits

Author SHA1 Message Date
Dave Love
78f886f224 (lookup-words): Fix last change. 2003-01-30 22:59:07 +00:00
Dave Love
3849454a12 (lookup-words): Cope with null lookup-dict. 2003-01-06 20:46:57 +00:00
Richard M. Stallman
ec17ee7864 (ispell-dict-map): Move specific dictionary selection into a submenu. 2002-12-02 16:20:36 +00:00
Markus Rost
87a609d3fb (defgroup ispell): Arrange that definition starts at beginning of
line.
2002-11-17 22:34:13 +00:00
Richard M. Stallman
6daa20b074 (check-ispell-version): Bind default-directory
to avoid errors.  Kill the old temp buffer at the beginning.
2002-07-29 17:29:31 +00:00
Stefan Monnier
262d2cab9e (autoloaded toplevel): Don't use ispell-library-directory without
checking that it's bound.
2002-05-31 18:43:28 +00:00
Richard M. Stallman
a60f1fcdb5 (ispell-library-directory): Renamed from ispell-library-path.
If Ispell is not installed, init to nil.
(ispell-menu-map): Get rid of byte-compiling-files-p hackery;
initialize this unconditionally when ispell-menu-map-needed is t.
Local `path' renamed to `dir'.

(check-ispell-version): Doc fix.
2002-05-30 17:09:58 +00:00
Per Abrahamsen
a9c6d330d5 2002-02-17 Per Abrahamsen <abraham@dina.kvl.dk>
* menu-bar.el (menu-bar-showhide-menu): Added speedbar.
	(menu-bar-tools-menu): Removed speedbar.

	* textmodes/ispell.el (ispell-menu-map): Added `customize-ispell'
	and `flyspell-mode' entries.

	* textmodes/flyspell.el (flyspell): Add to ispell group.
2002-02-17 12:15:17 +00:00
Richard M. Stallman
41b495aff5 (ispell-help): Clean up echo area if user quits. 2002-01-22 01:09:23 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Pavel Janík
05f362a827 (ispell-complete-word): Doc fix. 2001-12-11 07:22:44 +00:00
Richard M. Stallman
4b12215e3e (ispell-buffer-local-parsing): Match xml like sgml. 2001-12-11 06:07:52 +00:00
Stefan Monnier
52dcc11466 Doc fix. 2001-12-02 07:17:00 +00:00
Richard M. Stallman
bb41818d98 (version18p, version20p): Vars deleted.
All uses removed--assume Emacs version is >= 20.
2001-10-28 14:21:59 +00:00
Eli Zaretskii
ef10876c47 (ispell-dictionary-alist-4): Add "german"
and "german8", for the new German orthography dictionaries,
(ispell-dictionary-alist-5, ispell-dictionary-alist-6): Rearrange
the entries, to keep the line length balanced for loaddefs.el.
2001-09-07 15:37:45 +00:00
Eli Zaretskii
2b2eabedd7 (ispell-alternate-dictionary): Add /usr/share/lib/dict/words, for Irix. 2001-08-01 15:29:35 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Eli Zaretskii
ddfb400586 (ispell-change-dictionary): Doc fix. 2001-05-03 04:44:12 +00:00
Gerd Moellmann
23b809c2a7 Fix autoload cookies. 2001-04-23 11:50:36 +00:00
Gerd Moellmann
72c04ce241 (ispell-parse-output): Doc fix. 2001-03-26 15:41:37 +00:00
Gerd Moellmann
c58ab353c9 (ispell-dictionary-alist-6): Add support
for Slovak.  From Pavel.Janik@suse.cz (Pavel Jan,Bm(Bk ml.).
2001-03-15 09:18:31 +00:00
Miles Bader
47a9f362d8 (ispell-adjusted-window-height): New function.
(ispell-overlay-window, ispell-help, ispell-show-choices)
(ispell-command-loop): Use it instead of `window-height'.
2001-01-11 07:54:17 +00:00
Eli Zaretskii
6ef3fdfb94 (check-ispell-version): If
`ispell-program-name' is "aspell", pass it the -v switch instead
of -vv.
2000-12-16 15:13:31 +00:00
Miles Bader
24b0afdc47 (ispell-overlay-window): Ensure that the new window is really the right size.
Use vertical-motion rather than forward-line.
(ispell-help): Don't use ispell-mode-line-window-height-fudge.
(ispell-command-loop, ispell-show-choices): Use the variable
  ispell-choices-win-default-height, rather than the function.
(ispell-choices-win-default-height): Function removed.
(ispell-mode-line-window-height-fudge): Function removed.
2000-12-15 01:09:50 +00:00
Gerd Moellmann
3dfd2532dd (ispell): Doc fix. 2000-12-08 10:49:20 +00:00
Stefan Monnier
27ce741e2b (check-ispell-version): Don't use match-beginning
to check if the match succeeded.
2000-12-02 20:28:44 +00:00
Gerd Moellmann
730c746cac (toplevel): Use byte-compiling-files-p
if it is there.
2000-11-09 23:05:07 +00:00
Gerd Moellmann
f52ef73912 (ispell-library-path): Don't call
check-ispell-version when byte-compiling because that starts
an ispell process, and ispell might not be installed.
(toplevel): Don't set up a menu when byte-compiling.
2000-11-09 16:09:04 +00:00
Miles Bader
e34850d19f (ispell-mode-line-window-height-fudge):
New function, conditionally aliased to `mode-line-window-height-fudge'.
(ispell-help): Use it.
(ispell-choices-win-default-height): Don't include mode-line fudge.
(ispell-choices-win-default-height): New function.
(ispell-show-choices, ispell-command-loop): Use function
`ispell-choices-win-default-height' instead of variable.
2000-10-20 12:23:37 +00:00
Stefan Monnier
cdd0f857a6 (ispell-menu-map-needed): Put back the boundp
check since ispell-process is not bound when ispell is not yet loaded.
2000-08-18 18:46:25 +00:00
Gerd Moellmann
6ad96760ff (ispell-dictionary-alist-6): Add `portugues'. 2000-08-18 06:18:18 +00:00
Gerd Moellmann
fea6948a28 Set to standard author/maintainer/keyword fields.
Fine tuning to menu map appearance and operation, and added help.
Remove `start' and `end' error messages when compiling.
(ispell-choices-win-default-height): Fixed comment string.
(ispell-dictionary-alist-1): Fixed regexp in castellano and
castellano8 dictionaries.
(ispell-dictionary-alist-3): Fixed regexp in francais dictionary.
(ispell-dictionary-alist-4): Fixed regexp in francais-tex
dictionary, added italiano dictionary.
(ispell-skip-region-alist): Removed regexp thrashing when `-' is a
word character
(ispell-tex-skip-alists): Added psfig support.
(ispell-skip-html): Renamed from ispell-skip-sgml.
(ispell-begin-skip-region-regexp, ispell-skip-region)
(ispell-minor-check): Improved html skipping support to skip across
code, and recognize `&' commands without propper `;' syntax;
(ispell-process-line): Fix alignment error when manually
correcting spelling.
(ispell): Fix comment string.
(ispell-add-per-file-word-list): Always put word list on new line.
2000-08-17 20:54:01 +00:00
Miles Bader
fde143e86e (ispell-graphic-p): New constant.
(ispell-choices-win-default-height, ispell-help):
  Use `ispell-graphic-p' instead of `xemacsp'.
2000-08-15 12:06:42 +00:00
Gerd Moellmann
754bd273b7 (ispell): New function, replacing an alias.
Spell-check active region if in transient-mark-mode and mark
is active; otherwise spell-check buffer.
2000-08-02 20:21:53 +00:00
Eli Zaretskii
3b5fab8756 (ispell-highlight-spelling-error): Use
display-color-p, if fboundp, instead of window-system.
2000-08-01 06:25:13 +00:00
Dave Love
3239529732 Add Finder keywords. 2000-05-25 18:14:12 +00:00
Dave Love
f1ed9461a9 Add to debug-ignored-errors. 2000-05-22 17:41:53 +00:00
Stefan Monnier
fa72a6a13a (ispell-menu-map-needed): Check that ispell-process
is bound since this might be eval'd before ispell is loaded.
(ispell-message): Use a tiny bit less magic and a bit more hard data
to figure out what kind of sc-cite-regexp to use.
2000-04-17 11:00:39 +00:00
Eli Zaretskii
8eba343c5b (ispell-menu-map): Menu items rearranged and
converted to the new menu-item format, names silightly changed,
help strings added.

Support for spelling without async subprocesses:

(ispell-cmd-args, ispell-output-buffer)
(ispell-session-buffer): New variables.
(ispell-start-process, ispell-process-status,
ispell-accept-output, ispell-send-string): New functions, for
Ispell invocation when async subprocesses aren't supported.
(ispell-word, ispell-pdict-save, ispell-command-loop,
ispell-process-line, ispell-buffer-local-parsing): Replace calls
to process-send-string with calls to ispell-send-string, and
accept-process-output with ispell-accept-output.
(ispell-init-process): Call ispell-process-status instead of
process-status with.
(ispell-init-process): Call ispell-start-process.  Call
ispell-accept-output and ispell-send-string.  Don't call
process-kill-without-query and kill-process if they are unbound.
(ispell-async-processp): New function.
2000-04-13 14:02:23 +00:00
Gerd Moellmann
9050446cf6 (xemacsp, version18p, version-20p):
Add ispell- prefix.

Only define dictionaries in menus when they exist.
(version18p): New variable.
(version20p): New variable.
(xemacsp): New variable.
(ispell-choices-win-default-height): Fix for XEmacs visibility.
(ispell-dictionary-alist1): Added Brasileiro dictionary.
(ispell-dictionary-alist6): Russian command lines no longer accept
run-together words.
(ispell-local-dictionary-alist): Add koi8-r to customize definition.
(ispell-dictionary-alist): Add koi8-r to customize definition.
(check-ispell-version): Added documentation string.  Returns
library path when called non-interactively.
(ispell-menu-map-needed): Uses new variables.
(ispell-library-path): New variable.
(ispell-decode-string): XEmacs fix for bogus variable bindings.
(ispell-word): Improved documentation string.  Test for valid
character mappings.  Correctly check typed in word changes that can
result in single words split into multiple words.  Returns
replacement word.
(ispell-command-loop): Fixes XEmacs display bugs.  Show word to
replace in recursive query replace mode.  Help message for
recursive edit mode.
(ispell-show-choices): Protect against bad framepop bindings.
(ispell-help): Fix to work with XEmacs.
(ispell-highlight-spelling-error): Use new variables.
(ispell-overlay-window): Fix to work with XEmacs.
(ispell-parse-output): Passed and returns location information
tracking spelling corrections.  Doesn't recheck same word on
current line.
(ispell-init-process): Protect against bogus XEmacs variable binding.
Fix call to single argument in sleep-for.  Use new variables.
(ispell-region): Passed and returns location information tracking
spelling corrections.  Doesn't check same word on current line.
Improved documentation string.  Doesn't resend a line already
checked to the ispell process - fixes bug in LaTeX parsing.
(ispell-begin-skip-region-regexp): No longer skips <TT> in SGML.
(ispell-skip-region): No longer skips <TT> in SGML.
(ispell-process-line): Tracks location information with spelling
corrections.  Added documentation string.  Accounts for words
already accepted on this line.  Don't allow query-replace on line
starting with math characters.  Doesn't resend a line already sent
to ispell process.  Fixes alignment error bug.
2000-01-10 12:06:33 +00:00
Richard M. Stallman
2765768780 (ispell-process-line): Add local var line-offset to adjust for the change
in positions within the line, due to previous replacements.
1999-12-28 05:37:52 +00:00
Gerd Moellmann
a5d0cecce3 (ispell-dictionary-alist): Fix type by adding koi8-r
as in ispell-local-dictionary-alist.
1999-11-13 23:40:57 +00:00
Phillip Rulon
ab418c6df0 (ispell-dictionary-alist-6): Don't use "-C" option for Russian. 1999-10-08 23:54:57 +00:00
Richard M. Stallman
3a7855cec9 (ispell-dictionary-alist-6): Change charset for Russian.
(ispell-local-dictionary-alist): Add koi8-r for character set.
1999-07-12 16:00:42 +00:00
Dave Love
71c62b6bbe (ispell-alternate-dictionary): Fix custom type.
(ispell-complete-word-dict): Likewise.
1999-05-31 14:47:33 +00:00
Karl Heuer
caaf330fee (ispell-local-dictionary-alist): Add autoload cookie. 1999-05-17 05:32:15 +00:00
Karl Heuer
6fdf40f3a1 (ispell-local-dictionary-alist): New variable for
customizing local dictionaries not accessable by everyone.
(ispell-dictionary-alist): Loads `ispell-local-dictionary-alist'.
(ispell-required-version): Changed format `(major minor
revision)' to support general pattern matching.
(ispell-tex-skip-alists): AMS Tex block comment and `\author'
skip region commented out due to incorrect skip potential in std latex.
(ispell-word): Removed `when' macro.  Fixed bug of not restoring
cursor point on small words for calls from `ispell-minor-mode'.
(check-ispell-version): Tests and accepts versions major.minor
and above, with adjustments for interactions in 3.1.0-3.1.11.
(ispell-get-line): No longer skips ispell process special characters.
(ispell-comments-and-strings): Removed `when' macro call.
(ispell-minor-check): Requires ispell-word to restore cursor point.
(ispell-buffer-local-parsing): Supports checking comments only.
1999-05-09 06:34:35 +00:00
Karl Heuer
c6f9f4da89 (ispell-dictionary-alist-1): Shorten autoloaded line.
(ispell-dictionary-alist-2): Likewise.
(ispell-dictionary-alist-3, ispell-dictionary-alist-4): New vars.
(ispell-dictionary-alist-5, ispell-dictionary-alist-6): New vars.
(ispell-dictionary-alist): Build from six pieces, not just two.
1999-03-10 08:46:28 +00:00
Karl Heuer
e540533884 (ispell-dictionary-alist-override): New variable.
(ispell-dictionary-alist): Don't setq it,
if ispell-dictionary-alist-override  is set.
1999-03-01 03:48:22 +00:00
Karl Heuer
cbef329574 Take out the eval-when's. 1998-12-10 03:11:59 +00:00