diff options
Diffstat (limited to 'lisp/textmodes')
-rw-r--r-- | lisp/textmodes/flyspell.el | 19 | ||||
-rw-r--r-- | lisp/textmodes/ispell.el | 5 | ||||
-rw-r--r-- | lisp/textmodes/reftex-vars.el | 6 |
3 files changed, 21 insertions, 9 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 8ad6832880a..69bba100922 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -31,10 +31,10 @@ ;; ;; To enable Flyspell in text representing computer programs, type ;; M-x flyspell-prog-mode. -;; In that mode only text inside comments is checked. +;; In that mode only text inside comments and strings is checked. ;; ;; Some user variables control the behavior of flyspell. They are -;; those defined under the `User variables' comment. +;; those defined under the `User configuration' comment. ;;; Code: @@ -137,7 +137,10 @@ This variable specifies how far to search to find such a duplicate. (defcustom flyspell-persistent-highlight t "Non-nil means misspelled words remain highlighted until corrected. If this variable is nil, only the most recently detected misspelled word -is highlighted." +is highlighted, and the highlight is turned off as soon as point moves +off the misspelled word. + +Make sure this variable is non-nil if you use `flyspell-region'." :group 'flyspell :type 'boolean) @@ -1371,7 +1374,10 @@ language." ;;* flyspell-small-region ... */ ;;*---------------------------------------------------------------------*/ (defun flyspell-small-region (beg end) - "Flyspell text between BEG and END." + "Flyspell text between BEG and END. + +This function is intended to work on small regions, as +determined by `flyspell-large-region'." (save-excursion (if (> beg end) (let ((old beg)) @@ -1642,7 +1648,10 @@ The buffer to mark them in is `flyspell-large-region-buffer'." ;;*---------------------------------------------------------------------*/ ;;;###autoload (defun flyspell-region (beg end) - "Flyspell text between BEG and END." + "Flyspell text between BEG and END. + +Make sure `flyspell-mode' is turned on if you want the highlight +of a misspelled word removed when you've corrected it." (interactive "r") (ispell-set-spellchecker-params) ; Initialize variables and dicts alists (if (= beg end) diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index d80447e0a5b..e6f436fa1a1 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -2262,8 +2262,9 @@ Global `ispell-quit' set to start location to continue spell session." (ispell-pdict-save ispell-silently-savep) (message "%s" (substitute-command-keys - (concat "Spell-checking suspended;" - " use C-u \\[ispell-word] to resume"))) + (concat + "Spell-checking suspended; use " + "\\[universal-argument] \\[ispell-word] to resume"))) (setq ispell-quit start) nil) ((= char ?q) diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el index 11dbb8d5705..e7fe8ffe660 100644 --- a/lisp/textmodes/reftex-vars.el +++ b/lisp/textmodes/reftex-vars.el @@ -1030,7 +1030,9 @@ This is used to string together whole reference sets, like ("Hyperref" "hyperref" (("\\autoref" ?a) ("\\autopageref" ?u))) ("Cleveref" "cleveref" - (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D)))) + (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D))) + ("AMSmath" "amsmath" + (("\\eqref" ?e)))) "Alist of reference styles. Each element is a list of the style name, the name of the LaTeX package associated with the style or t for any package, and an @@ -1040,7 +1042,7 @@ the macro type is being prompted for. (See also `reftex-ref-macro-prompt'.) The keys, represented as characters, have to be unique." :group 'reftex-referencing-labels - :version "24.3" + :version "27.1" :type '(alist :key-type (string :tag "Style name") :value-type (group (choice :tag "Package" (const :tag "Any package" t) |