Commit graph

346 commits

Author SHA1 Message Date
Juri Linkov
74a18969ef (ispell-html-skip-alists): Fix backslashes in docstring. 2004-09-02 09:42:13 +00:00
Eli Zaretskii
7033bbf1e6 Fix last change in ispell.el. 2004-05-16 15:37:33 +00:00
Eli Zaretskii
4d5b0f1322 (ispell-local-dictionary-alist): Add
windows-1252 to the choice of coding systems.
(ispell-dictionary-alist-6): Add support for "russianw.aff",
encoded in cp1251.
2004-05-15 12:31:58 +00:00
Sam Steingold
3eab7193fb (ispell-message): Use `message-cite-prefix-regexp'
instead of `message-yank-prefix'.
2004-05-10 21:03:18 +00:00
Juri Linkov
b3955f8df5 (ispell-help): Doc fix. 2004-03-22 07:48:39 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Andreas Schwab
a1ff29b98a Don't redo key bindings on loading, put them only in loaddefs.el. 2003-08-02 22:06:12 +00:00
Stefan Monnier
4d170362e6 Summary: MIME support added for e-mail processing that
skips encoded regions.  Allow user to skip saving Fcc messages with
large attachments.  Fixed region skipping bug with multi-line
comments - e.g.  tex $ regions spanning multiple lines.
Added support for postscript and uuencoded regions.
Redundant dictionary file names purged.
Dictionary definition field name changed from "Character Set"
to "Coding System".  Fixed bug in reloading dictionaries.
Modified headers to reflect new version.  XEmacs menu now adds
customize item.
(ispell-check-version): No longer an aliased function.
Returns library path if not called interactively.
Variable `temporary-file-directory' protected if not loaded.
(check-ispell-version): Now the alias for `ispell-check-version'.
(ispell-message-fcc-skip): New variable that determines if and when
to query about saving Fcc copy of message if an attachment is large.
(ispell-skip-html): Declared buffer-local.
(ispell-local-dictionary-alist): Docstring expanded.
Tag name changed from "Character Set" to "Coding System".
(ispell-dictionary-alist-1): Removed redundant command-line option to
load brasileiro, british, and castellano dictionary files.
(ispell-dictionary-alist-2): Removed redundant command-line option to
load czech dictionary file.
(ispell-dictionary-alist-3): Moved francais-tex here.
(ispell-dictionary-alist-4): Removed german and german8 dictionaries.
The deutsch ones are the correct definitions.  `nederlands'
and `nederlands8' dictionaries moved here.
(ispell-dictionary-alist-5): `polish' and `portugues' dictionaries
moved here.  Removed redundant command-line option to `norsk'
and `portugues'.
(ispell-dictionary-alist-6): Removed redundant command-line option to
load `russian' and `slovak' dictionary files.
(ispell-dictionary-alist): Tag name changed from "Character Set" to
"Coding System".
(ispell-version): Updated to 3.6.
(ispell-library-directory): Calls non-deprecated function.
(ispell-valid-dictionary-list): New function returning all valid
dictionaries on machine.
(ispell-checking-message): Documentation string improved.
(ispell-skip-region-alist): Added uuencoded and postscript region
skipping.  Improved http/e-mail/file regexp to not match `/.\w'.
(ispell-html-skip-alists): New variable for html region support.
(ispell-send-string): Removed redundant xemacs check.
(ispell-word): Fix spelling error in documentation string, added
extent information to support highlighting in ispell-minor-mode.
(ispell-command-loop): Disable horizontal scrollbar in XEmacs
choices buffer.
(ispell-show-choices): Directly select `choices-window'.
(ispell-help): Use default buffer size for electric help.
(ispell-adjusted-window-height): Correct for xemacs detection.
(ispell-start-process): Don't double specify dictionary file name.
(ispell-init-process): Set `ispell-library-path' each call.
(ispell-change-dictionary): Now only completes valid dictionaries.
(ispell-region): Add support for MIME region skipping and Fcc
message query for large attachments.
(ispell-begin-skip-region-regexp): Add documentation string.
Added message support and cleaned up code for generic and html regions.
(ispell-begin-skip-region): Function is now requires alist argument.
(ispell-begin-tex-skip-regexp): Added comments and support
improved html and message regions.
(ispell-skip-region-list): New function for MIME and region skipping.
(ispell-tex-arg-end): Add documentation string.
(ispell-ignore-fcc): New function to query saving Fcc message.
(ispell-skip-region): Calculate alist for key match dynamically,
html skipping pushed to alists.
(ispell-get-line): Add support for multi-line comment regions.
(ispell): Check that variables to continue spelling are bound.
(ispell-message-text-end): Postscript and uuencoded regions now
supported as MIME regions, rather than as end-of-message region.
(ispell-mime-multipartp): New function supporting MIME.
(ispell-mime-skip-part): New function supporting MIME.
(ispell-message): Add MIME support.
(ispell-buffer-local-parsing): Variable `ispell-skip-html' now local.
(ispell-buffer-local-dict): Fixed bug for detecting and reloading
new dictionary.
2003-05-22 21:34:00 +00:00
Stefan Monnier
877d353af8 (xemacsp): Remove. Replace with (featurep 'xemacs).
(ispell-graphic-p): Inline and then remove.
(toplevel): Get rid of unnecessary loop.
(ispell-parse-output, ispell-complete-word): Replace (substring s 0 1)
with a call to aref.
(ispell-get-line): Remove unused arg `reg-end'.
(ispell-region): Update corresponding call.
2003-05-14 01:54:28 +00:00
Juanma Barranquero
db95369be0 Trailing whitespace deleted. 2003-02-04 13:30:45 +00:00
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