1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-18 11:50:38 -08:00
Commit graph

136 commits

Author SHA1 Message Date
Richard M. Stallman
b8b7c66e1c (flyspell-large-region): Call flyspell-accept-buffer-local-defs.
(flyspell-notify-misspell): Fix misspelling of "Misspelling".
(flyspell-process-localwords): New function.
(flyspell-large-region): Call flyspell-process-localwords and
flyspell-delete-region-overlays.
(flyspell-delete-region-overlays): New function.
(flyspell-delete-all-overlays): Call that.
2005-11-14 04:53:14 +00:00
Richard M. Stallman
d21d2c23ac (flyspell-external-point-words):
flyspell-get-word returns a list, not just a string.
2005-11-07 00:50:01 +00:00
Richard M. Stallman
3c8404e66f (flyspell-post-command-hook): Bind deactivate-mark to prevent deactivation. 2005-11-03 21:33:22 +00:00
Richard M. Stallman
b57148527d (flyspell-external-point-words): Pass nil to flyspell-get-word. 2005-11-02 01:34:04 +00:00
Richard M. Stallman
00a2681be8 (flyspell-external-point-words):
Detect when WORD can't be checked properly because
flyspell-get-word finds just part of it, and move on.
2005-10-30 15:52:07 +00:00
Richard M. Stallman
ca7250cb5a (flyspell-large-region): Pass -t if Tex file.
(flyspell-external-point-words): Error if misspelled word is not found.
Set flyspell-large-region-beg at end of word.
2005-10-28 04:22:19 +00:00
Richard M. Stallman
4ad093d0b5 (flyspell-large-region): Call ispell-check-version. 2005-10-23 18:22:49 +00:00
Richard M. Stallman
1fb7ce77df (flyspell-check-word-p):
If unread-command-events is non-empty, don't call sit-for.
2005-10-10 04:03:09 +00:00
Richard M. Stallman
cc8556d976 (flyspell-external-point-words): Simplify logic, and don't try to
check for consecutive appearances of one incorrect word.
2005-10-10 01:14:28 +00:00
Richard M. Stallman
6487ea0d84 (flyspell-mode-on): Call ispell-maybe-find-aspell-dictionaries. 2005-10-04 20:29:00 +00:00
Richard M. Stallman
91346f5419 (flyspell-incorrect-hook, flyspell-highlight-incorrect-region)
(flyspell-highlight-duplicate-region): Doc fixes.
2005-09-23 18:29:20 +00:00
Deepak Goel
5673af85e4 Message format spec fixes (2) 2005-09-18 12:28:30 +00:00
Richard M. Stallman
ae3defd0d3 (flyspell-large-region): Fix doc and custom type.
(flyspell-mark-duplications-flag): Doc fix.
2005-08-15 23:48:30 +00:00
Richard M. Stallman
444465c803 (flyspell-mode): Autoload a defvar. 2005-08-15 01:49:51 +00:00
Thien-Thi Nguyen
3731a85096 Update years in copyright notice; nfc. 2005-08-06 17:48:15 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Richard M. Stallman
d4e92f5f0c (flyspell-use-local-map): Variable deleted.
(flyspell-local-mouse-map): Declaration deleted.
(flyspell-mouse-map): Bind only mouse-2.
(flyspell-mode-map): Don't test flyspell-use-local-map.
(flyspell-overlay-keymap-property-name): Var deleted.
(flyspell-mode-on): Don't make local bindings for
flyspell-mouse-map and flyspell-mode-map.
(make-flyspell-overlay): Unconditionally put on `keymap' text prop.
2005-06-28 19:07:45 +00:00
Juanma Barranquero
ebb7de8462 (flyspell-incorrect-hook, flyspell-maybe-correct-transposition,
flyspell-maybe-correct-doubling): Fix quoting in docstring.
2005-06-14 11:36:04 +00:00
Miles Bader
c43aed5aeb Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-394
Remove "-face" suffix from flyspell faces

2005-06-10  Miles Bader  <miles@gnu.org>

   * lisp/textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
   Remove "-face" suffix from face names.
   (flyspell-incorrect-face, flyspell-duplicate-face):
   New backward-compatibility aliases for renamed faces.
   (flyspell-mode-on, make-flyspell-overlay)
   (flyspell-highlight-incorrect-region)
   (flyspell-highlight-duplicate-region)
   (flyspell-display-next-corrections)
   (flyspell-auto-correct-previous-word): Use renamed flyspell faces.
2005-06-10 10:46:38 +00:00
Lute Kamstra
f8820a5524 (flyspell-mode-line-string): Remove autoload cookie.
(flyspell-mode): Remove defvar.
2005-06-08 09:49:58 +00:00
Lute Kamstra
b978659cce (flyspell-mode): Use define-minor-mode. 2005-06-08 08:14:32 +00:00
Stefan Monnier
7ad046405d (flyspell-auto-correct-binding, flyspell-incorrect-face)
(flyspell-duplicate-face): Use (X)Emacs-agnostic code.
(flyspell-mode-map): Don't overwrite at each load.  Remove code
redundant with the subsequent add-minor-mode.  Merge Emacs and XEmacs code.
(flyspell-word): Minor simplification.
(flyspell-math-tex-command-p): Quieten the byte-compiler.
(flyspell-external-point-words): Remove unused vars `size' and `start'.
(flyspell-do-correct): Rename from flyspell-xemacs-correct.
Merge the corresponding Emacs code.
(flyspell-correct-word, flyspell-xemacs-popup): Use flyspell-do-correct.
2005-06-06 21:06:19 +00:00
Stefan Monnier
fab31ec395 (flyspell-check-word-p): Simplify silly compatibility code. 2005-06-03 15:03:02 +00:00
Richard M. Stallman
cad2b41461 (flyspell-auto-correct-previous-word):
Undo the change that moves to end of the current word.
2005-05-29 14:38:52 +00:00
Richard M. Stallman
a8c453e62d (flyspell-version): Function deleted.
(flyspell-auto-correct-previous-hook): Doc fix.

(flyspell-emacs, flyspell-use-local-map): Vars moved up.
(flyspell-default-delayed-commands): add backward-delete-char-untabify.
(flyspell-abbrev-p): Default to nil.
(flyspell-use-global-abbrev-table-p): Doc fix.
(flyspell-large-region): Allow nil as value.
(flyspell-use-meta-tab, flyspell-auto-correct-binding): New variables.

(mail-mode-flyspell-verify): More robust handling
of `mail-header-separator'.  More efficient signature detection.
Allow for regexp metacharacters in message-header-separator.
Adding `To' not to be checked in mail-mode-flyspell-verify.

(flyspell-prog-mode): Run flyspell-prog-mode-hook.
(flyspell-mouse-map, flyspell-mode-map): Bind C-. and C-, .
Bind M-TAB only if flyspell-use-meta-tab.
Bind flyspell-auto-correct-binding.
(flyspell-mode-on): Bind flyspell-mouse-map and flyspell-mode-map.

(flyspell-mode): Doc fix.
(flyspell-accept-buffer-local-defs): Preserve current buffer.
(flyspell-word-cache-result): New var, always local.
(flyspell-check-pre-word-p): Doc fix.
(flyspell-check-changed-word-p): Handle spc like newline.
(flyspell-post-command-hook): Set flyspell-word-cache-result.
(flyspell-word-search-backward, flyspell-word-search-forward): New functions.
(flyspell-word): Return t if nothing to check.
When parsing TeX code, check for after } or \.
Use flyspell-word-search-backward to find previous word.
Return nil if duplicated word.
For word already checked, return same value as last time.
Set flyspell-word-cache-result after checking.
Don't clobber the return value.
(flyspell-get-word): Major rewrite.
(flyspell-external-point-words): New locals pword, pcount.
Fix size used in progress message.
Find the proper corresponding word in flyspell-large-region-buffer.
(flyspell-region): Check for flyspell-large-region = nil.
(flyspell-highlight-incorrect-region): Clean up overlays in region.
(flyspell-auto-correct-word): Check that WORD is a cons.
(flyspell-correct-word): Likewise.
(flyspell-auto-correct-previous-word):
Narrow down to what's on the screen, and recenter overlays
at the end of the next word.
2005-05-29 14:29:34 +00:00
Stephen Eglen
fc2cae5953 (flyspell-large-region): Clarify docstring. 2005-04-08 09:55:48 +00:00
Richard M. Stallman
676019c5c8 (mail-mode-flyspell-verify): Fix regexp syntax. 2005-03-23 14:39:08 +00:00
Richard M. Stallman
6a37fcbfa1 (flyspell-large-region): Pass args differently for aspell. 2005-03-06 18:27:25 +00:00
Richard M. Stallman
8ceb0c6ea9 (flyspell-mode-on): Call ispell-change-dictionary only if necessary. 2005-02-27 10:36:38 +00:00
Stefan Monnier
27c35b9521 (flyspell-mouse-map): Pop the menu
when pressing rather than when releasing mouse-2.  Simplify.
2004-11-16 15:29:10 +00:00
Richard M. Stallman
f8cb5ed621 (flyspell-external-point-words): Use goto-char instead of beginning-of-buffer. 2004-11-07 03:52:04 +00:00
Richard M. Stallman
5a2045cea7 (flyspell-word): Don't alter FOLLOWING; set it only thru `interactive' spec. 2004-11-04 10:20:35 +00:00
Richard M. Stallman
30b7be474f (flyspell-mode): Doc fix. 2004-10-19 16:54:17 +00:00
Richard M. Stallman
5106fd7082 (flyspell-word): Use set-process-query-on-exit-flag.
(flyspell-highlight-duplicate-region): Take POSS as arg.
(flyspell-word): Pass POSS as arg.
2004-08-22 17:15:55 +00:00
Richard M. Stallman
2da347886f Update author email address. 2004-07-24 21:35:56 +00:00
Richard M. Stallman
e6d9ec82b7 Maintained by FSF. 2004-05-22 21:52:34 +00:00
John Wiegley
4c685fb821 2004-05-08 John Wiegley <johnw@newartisans.com>
* textmodes/flyspell.el (flyspell-highlight-incorrect-region):
	Ignore the read-only property when flyspell highlighting is on.
	Not ignoring it leads to a series of confusing errors.
	(flyspell-highlight-duplicate-region): Ignore read-only, as above,
	but also make sure to call flyspell-incorrect-hook.
	(flyspell-maybe-correct-transposition): Perform transposition test
	by bit twiddling a string, rather than using a temp buffer.
	(flyspell-maybe-correct-doubling): Use a string rather than a temp
	buffer.  This is also the original version of the code, which
	could not be checked in before due to a previous lack of
	assignment papers.  This version has seen heavy usage on my system
	for several years now.
2004-05-08 12:48:49 +00:00
Eli Zaretskii
1550204223 * progmodes/idlwave.el (idlwave-make-tags):
* textmodes/flyspell.el (flyspell-large-region):.
* progmodes/make-mode.el (makefile-query-by-make-minus-q):
* emulation/viper-util.el (viper-glob-unix-files):
* emacs-lisp/shadow.el (shadow-same-file-or-nonexistent):
* man.el (Man-init-defvars):
* jka-compr.el (jka-compr-call-process):
* files.el (get-free-disk-space,insert-directory):
* ediff-ptch.el (ediff-test-patch-utility):
* ediff-diff.el (ediff-test-utility):
* dired-aux.el (dired-check-process):
* mail/sendmail.el (sendmail-send-it): Don't use = or zerop to
test the return value of call-process, because it can be a string.
2004-01-03 12:12:01 +00:00
Richard M. Stallman
67d120ebad (mail-mode-flyspell-verify): Search for header separator alone on a
line, literally, and search for it backward, not forward.
(flyspell-abbrev-table): Always use global-abbrev-table if there is no
local one.
2003-12-29 20:06:19 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Pavel Janík
58c6812940 (make-flyspell-overlay): Add help text to flyspell overlays. 2002-05-08 15:27:26 +00:00
Sam Steingold
ee803b5b6b (flyspell-mode): Autoload the variable since it is used in the menu bar. 2002-02-21 01:42:22 +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
Pavel Janík
1c71b9580a (flyspell-insert-function): Doc fix. 2002-02-06 22:37:12 +00:00
Pavel Janík
73194d6771 (flyspell-issue-message-flag): New user option.
(flyspell-mode-on, flyspell-notify-misspell)
(flyspell-small-region, flyspell-external-point-words)
(flyspell-large-region): Use it
(flyspell-before-incorrect-word-string)
(flyspell-after-incorrect-word-string): New user options.
(make-flyspell-overlay): Use them.
(flyspell-version): New function.
(flyspell-incorrect-face, flyspell-duplicate-face): Adapt face definitions
to use :weight.
(flyspell-insert-function): New user option.
(flyspell-auto-correct-word, flyspell-correct-word)
(flyspell-xemacs-correct): Use it.
(flyspell-define-abbrev): New function.
(flyspell-auto-correct-word, flyspell-correct-word)
(flyspell-xemacs-correct): Use it.
(make-flyspell-overlay): Use `evaporate' property.
(flyspell-auto-correct-word, flyspell-correct-word): Remove overlay.
(flyspell-emacs-popup): Use `session' instead of `accept'.
(flyspell-auto-correct-previous-pos): New variable.
(flyspell-auto-correct-previous-hook)
(flyspell-auto-correct-previous-word): New functions.
2002-02-02 15:56:45 +00:00
Pavel Janík
2fced6f94d Minor formatting fixes in preparation of merging new version. 2002-01-29 13:42:12 +00:00
Pavel Janík
f30fe18bf9 (flyspell-check-pre-word-p): Prevent delaying when executing keyboard
macros.
2002-01-12 21:40:32 +00:00
Richard M. Stallman
5c2012be06 (flyspell-mode-line-string): Fix custom type. 2002-01-08 23:57:15 +00:00
Richard M. Stallman
1fd714a410 (various face definitions): Use :weight, not :bold. 2001-12-31 20:44:44 +00:00
Richard M. Stallman
d2fb04dfd3 (flyspell-mode-map): New keymap, defined as before 2001-11-09.
(add-minor-mode call): Specify the keymap.
2001-12-27 03:13:57 +00:00