Commit graph

107 commits

Author SHA1 Message Date
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
Karl Heuer
efa1135ead (ispell-kill-ispell): Don't send newline after EOF. 1998-12-10 02:19:14 +00:00
Richard M. Stallman
b9431ae037 Improved and fixed customize for variables:
ispell-highlight-p, ispell-check-comments, ispell-help-in-bufferp,
ispell-dictionary-alist, ispell-skip-sgml.
Improved and fixed comments in variables and messages for
functions: ispell-help-in-bufferp, ispell-local-dictionary,
ispell-menu-map, ispell-checking-message, ispell-parser,
ispell-word, lookup-words, ispell-change-dictionary, ispell-region,
ispell-begin-tex-skip-regexp, ispell-begin-skip-region,
ispell-comments-and-strings, ispell-continue, ispell-complete-word,
ispell-message-text-end, ispell-add-per-file-word-list.
(ispell-dictionary-alist-1): (ispell-dictionary-alist2): A coding
system is now required for all languages.  Casechars improved for
castellano, castellano8, and norsk dictionaries.  Dictionary
norsk7-tex removed.  Dictionary polish added.
(ispell-dictionary-alist): Redefined at load-time to support
dictionary changes.
(ispell-menu-map): Redefined at load-time to support menu changes.
(ispell-check-version): New alias for `check-ispell-version'.
(ispell-parse-output): Fixed matching for ispell error messages.
Correctly returns spelling suggestions in order generated by ispell process.
(check-ispell-version): Ensure `case-fold-search' doesn't get redefined.
(ispell-complete-word): Ensure `case-fold-search' doesn't get
redefined.  Fix bug that didn't respect case of word being completed.
(ispell-init-process): Set process coding system to be compatible
with emacs processes and the ispell process.
(ispell-kill-ispell): Ensures ispell process has terminated before
starting new process.  This can otherwise confuse process filters
and hang the ispell process.
(ispell-begin-skip-region-regexp): (ispell-skip-region): Improved
skipping support for sgml.
(ispell-minor-check): Support sgml labels.  Fix mapping ^M to \r
which could cause `ispell-complete-word' to hang.
(ispell-message): Improved message reference matching.  Ensure
`case-fold-search' doesn't get redefined.
(ispell-buffer-local-parsing): Ensure `case-fold-search' doesn't
get redefined.  Fixed bug in returning to nroff mode from tex mode.
(ispell-add-per-file-word-list): Ensure `case-fold-search' doesn't
get redefined.
1998-12-01 07:23:27 +00:00
Karl Heuer
945fcb39c1 (ispell-dictionary-alist-2): Removed svenska,
renamed svenska8 to svenska, and fixed and extended CASECHARS
for it.
1998-11-11 18:35:26 +00:00
Karl Heuer
8062d993f4 (ispell-get-coding-system): Default to iso-latin-1.
(ispell-process-line): Don't treat multibyte
1998-11-10 07:06:12 +00:00
Karl Heuer
fefaefefc1 (check-ispell-version): No need to bind
default-major-mode.
1998-10-01 19:23:42 +00:00
Karl Heuer
73cc7f2aa0 (check-ispell-version): Ensure same buffer is current
when let-binding of case-fold-search ends.
1998-09-23 22:22:45 +00:00
Andreas Schwab
a47de72938 (ispell-highlight-p, ispell-check-comments,
ispell-help-in-bufferp, ispell-skip-sgml): Use `other' widget
type.
1998-06-24 09:14:31 +00:00
Karl Heuer
94487c4e37 Doc fixes. 1998-06-20 22:06:30 +00:00
Karl Heuer
7a914d3e79 (ispell-skip-region): Don't complain when
ispell-check-comments is 'exclusive and there are no more
comments.  Just skip to the end instead.
1998-06-20 21:37:14 +00:00
Richard M. Stallman
5755be321d (ispell-region): Return non-nil if not aborted.
(ispell-highlight-spelling-error-generic): Fix doc typo.
1998-06-13 04:06:46 +00:00
Richard M. Stallman
313aaa0cc9 (ispell-dictionary-alist-1): Doc fix.
(ispell-dictionary-alist-2): Doc fix.
1998-05-12 23:27:21 +00:00
Richard M. Stallman
a9e5664e49 (ispell-word): Make M-$ binding using esc-map. 1998-05-07 23:21:15 +00:00
Richard M. Stallman
f5136913a1 Generalized region skipping added.
Checks comments only in code.
Added backward compatible support for customize.
(ispell-query-replace-choices, ispell-message-dictionary-alist)
(ispell-grep-command, ispell-grep-options, ispell-look-command)
(ispell-look-options, ispell-use-ptys-p, ispell-local-dictionary)
(ispell-dictionary-alist): Now customizable.
Fixed type of custom variables: ispell-help-in-bufferp.
(ispell-use-framepop-p): New variable.
(ispell-dictionary-alist): Added dictionaries: castellano, castellano8
czech, esperanto, esperanto-tex, norsk, russian.
Capitalize XEmacs correctly, and change lucid to xemacs in code:
(ispell-menu-lucid): Renamed to ispell-menu-xemacs.
Changed string compares for version number to be correct for XEmacs.
Fixed to work with string properties.
(ispell-recursive-edit-marker): new marker saving return point.
(ispell-skip-region-alist): New variable defining regions.
(ispell-tex-skip-alists): New variable for LaTeX regions.
(ispell-skip-sgml): Now buffer-mode aware.
(ispell-highlight-p): Support block cursors.
(ispell-message-text-end): Don't check signatures.
(ispell-comments-and-strings): New command, added to menu.
(ispell-int-char): New function for character incrementing.
(ispell-word): Produces message on error when called from
ispell-minor-mode.  Potential infinite loop removed.
(ispell-command-loop): prevent XEmacs modeline hiding.
Allow temporary split of dedicated windows.  Improve recursive
edit support.  Support block cursors.
(ispell-show-choices): New function cleaning up command loop.
(ispell-highlight-spelling-error-generic): Block cursor support added.
(ispell-highlight-spelling-error-xemacs): Block cursor, name change.
(ispell-overlay-window): dedicated window splitting, XEmacs changes.
(ispell-parse-output): Displays ispell process error messages.
(check-ispell-version): Interactive mode that shows ispell versions.
(ispell-begin-skip-region-regexp): New region skipping function.
(ispell-begin-tex-skip-regexp): New tex mode region skipping function.
(ispell-begin-skip-region): New region skipping function.
(ispell-tex-arg-end): New tex mode region skipping function.
(ispell-skip-region): New region skipping function.
(ispell-get-line): New function to clean up command loop.
(ispell-process-line): New function cleaning up command loop.
(ispell-continue): Improve recursive editor support.
(ispell-complete-word): Interior fragment support improved.
(ispell-message): Region skipping vastly improved.
1998-04-30 06:43:48 +00:00
Richard M. Stallman
909f0455e0 (ispell-get-word): No error if can't find a word to check.
(ispell-word): Don't fuss about a word if not adjacent to it.
(ispell-minor-check): Use save-excursion.
1998-04-17 03:37:10 +00:00
Richard M. Stallman
0de86efccd (ispell-word): In ispell-check-only mode,
display a message for misspelled word.
1998-04-17 03:21:24 +00:00
Gerd Moellmann
bc7d6816ee New function ispell-comments-and-strings. 1997-12-03 17:20:13 +00:00
Karl Heuer
10d31baea6 (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.
1997-10-19 19:54:35 +00:00
Richard M. Stallman
6c80b133aa (ispell-personal-dictionary): Fix customize type. 1997-09-09 02:56:16 +00:00
Richard M. Stallman
8896f22d60 (ispell-command-loop):
Restore dedicated flg of selected window.
(ispell-overlay-window): Move dedicated flag of old window
into the bottom of the two windows made from it.
1997-09-07 03:40:29 +00:00
Richard M. Stallman
14fc129a86 (ispell-overlay-window): Undo previous change;
in other words, don't bind inhibit-frame-unsplittable.
1997-09-03 07:44:21 +00:00
Richard M. Stallman
1907b8e60e Comment change. 1997-09-02 00:16:45 +00:00
Kenichi Handa
ef128a918e (ispell-region): Take acount of the fact that `ispell'
will return OFFSET by counting non-ASCII characters as one.
(ispell-dictionary-alist-1): Add coding systems to each entry.
(ispell-dictionary-alist-2): Likewise.
(ispell-get-coding-system): New function.
(ispell-decode-string): New function.
(ispell-get-casechars): Decode the string if necessary.
(ispell-get-not-casechars, ispell-get-otherchars): Likewise.
1997-09-01 07:17:07 +00:00
Richard M. Stallman
fbbd6e46c0 (ispell-dictionary-alist): Doc fix. 1997-08-06 04:29:14 +00:00
Simon Marshall
eddd51c280 frame-override-unsplittable/inhibit-frame-unsplittable name change. 1997-05-26 08:17:39 +00:00
Richard M. Stallman
a7b0df0db4 (ispell-dictionary-alist-2): Specify syntax of ' in Danish. 1997-05-02 07:26:39 +00:00
Richard M. Stallman
38c1d5e379 (ispell-overlay-window): Bind frame-override-unsplittable. 1997-04-22 23:25:24 +00:00
Richard M. Stallman
f2b7eb2618 Use defcustom for user variables. 1997-04-11 01:37:50 +00:00
Karl Heuer
ab9d539cc9 (ispell-command-loop): Disable message logging.
(ispell-region): Ditto.
1997-03-11 22:27:36 +00:00
Richard M. Stallman
441c2ae483 (ispell-message-text-end): Handle `- ' before
the "cut here" or "start of..." line.  Handle `Forward message'
without `Start of'.
1996-12-27 02:06:41 +00:00