aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-02-14 12:42:01 +0000
committerJuanma Barranquero2007-02-14 12:42:01 +0000
commitb11a1b2e3b56fc25bbce063e00fa7b9d7f709392 (patch)
tree23a8085fc7f84c2b916bc24fd89bf83dde59a35d
parent428807eae4589172780d48d88a8b41a234db1311 (diff)
downloademacs-b11a1b2e3b56fc25bbce063e00fa7b9d7f709392.tar.gz
emacs-b11a1b2e3b56fc25bbce063e00fa7b9d7f709392.zip
(ispell-keep-choices-win, ispell-dictionary-alist, ispell-word,
ispell-begin-skip-region-regexp): Fix typos in docstrings. (ispell-process-line): Doc fixes. (ispell-help): Fix typos in docstring and output message.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/textmodes/ispell.el30
2 files changed, 22 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 630f8512ef4..a2ef2121f28 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12007-02-14 Juanma Barranquero <lekktu@gmail.com>
2
3 * textmodes/ispell.el (ispell-keep-choices-win)
4 (ispell-dictionary-alist, ispell-word)
5 (ispell-begin-skip-region-regexp): Fix typos in docstrings.
6 (ispell-process-line): Doc fixes.
7 (ispell-help): Fix typos in docstring and output message.
8
12007-02-14 Kim F. Storm <storm@cua.dk> 92007-02-14 Kim F. Storm <storm@cua.dk>
2 10
3 * progmodes/grep.el (grep-files-aliases): Add tex and texi aliases. 11 * progmodes/grep.el (grep-files-aliases): Add tex and texi aliases.
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index fe74bf8f321..f090739fd97 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -293,7 +293,7 @@ a [.5mm] type of number...."
293 "Regexp matching the end of a Tib reference.") 293 "Regexp matching the end of a Tib reference.")
294 294
295(defcustom ispell-keep-choices-win t 295(defcustom ispell-keep-choices-win t
296 "*When not nil, the `*Choices*' window remains for spelling session. 296 "*When non-nil, the `*Choices*' window remains for spelling session.
297This minimizes redisplay thrashing." 297This minimizes redisplay thrashing."
298 :type 'boolean 298 :type 'boolean
299 :group 'ispell) 299 :group 'ispell)
@@ -673,8 +673,7 @@ Each element of this list is also a list:
673DICTIONARY-NAME is a possible string value of variable `ispell-dictionary', 673DICTIONARY-NAME is a possible string value of variable `ispell-dictionary',
674nil means the default dictionary. 674nil means the default dictionary.
675 675
676CASECHARS is a regular expression of valid characters that comprise a 676CASECHARS is a regular expression of valid characters that comprise a word.
677word.
678 677
679NOT-CASECHARS is the opposite regexp of CASECHARS. 678NOT-CASECHARS is the opposite regexp of CASECHARS.
680 679
@@ -688,7 +687,7 @@ regular expression \"[']\" for OTHERCHARS. Then \"they're\" and
688If you want OTHERCHARS to be empty, use the empty string. 687If you want OTHERCHARS to be empty, use the empty string.
689Hint: regexp syntax requires the hyphen to be declared first here. 688Hint: regexp syntax requires the hyphen to be declared first here.
690 689
691CASECHAS, NOT-CASECHARS, and OTHERCHARS must be a unibyte string 690CASECHARS, NOT-CASECHARS, and OTHERCHARS must be a unibyte string
692containing bytes of CHARACTER-SET. In addition, if they contain 691containing bytes of CHARACTER-SET. In addition, if they contain
693a non-ASCII byte, the regular expression must be a single 692a non-ASCII byte, the regular expression must be a single
694`character set' construct that doesn't specify a character range 693`character set' construct that doesn't specify a character range
@@ -1572,7 +1571,7 @@ which is in `ispell-local-dictionary-alist' or `ispell-dictionary-alist'.
1572This will check or reload the dictionary. Use \\[ispell-change-dictionary] 1571This will check or reload the dictionary. Use \\[ispell-change-dictionary]
1573or \\[ispell-region] to update the Ispell process. 1572or \\[ispell-region] to update the Ispell process.
1574 1573
1575return values: 1574Return values:
1576nil word is correct or spelling is accepted. 1575nil word is correct or spelling is accepted.
15770 word is inserted into buffer-local definitions. 15760 word is inserted into buffer-local definitions.
1578\"word\" word corrected from word list. 1577\"word\" word corrected from word list.
@@ -2102,9 +2101,9 @@ SPC: Accept word this time.
2102`l': Look up typed-in replacement in alternate dictionary. Wildcards okay. 2101`l': Look up typed-in replacement in alternate dictionary. Wildcards okay.
2103`u': Like `i', but the word is lower-cased first. 2102`u': Like `i', but the word is lower-cased first.
2104`m': Place typed-in value in personal dictionary, then recheck current word. 2103`m': Place typed-in value in personal dictionary, then recheck current word.
2105`C-l': redraws screen 2104`C-l': Redraw screen.
2106`C-r': recursive edit 2105`C-r': Recursive edit.
2107`C-z': suspend Emacs or iconify frame" 2106`C-z': Suspend Emacs or iconify frame."
2108 2107
2109 (if (equal ispell-help-in-bufferp 'electric) 2108 (if (equal ispell-help-in-bufferp 'electric)
2110 (progn 2109 (progn
@@ -2134,11 +2133,10 @@ SPC: Accept word this time.
2134`l': Look up typed-in replacement in alternate dictionary. Wildcards okay. 2133`l': Look up typed-in replacement in alternate dictionary. Wildcards okay.
2135`u': Like `i', but the word is lower-cased first. 2134`u': Like `i', but the word is lower-cased first.
2136`m': Place typed-in value in personal dictionary, then recheck current word. 2135`m': Place typed-in value in personal dictionary, then recheck current word.
2137`C-l': redraws screen 2136`C-l': Redraw screen.
2138`C-r': recursive edit 2137`C-r': Recursive edit.
2139`C-z': suspend Emacs or iconify frame") 2138`C-z': Suspend Emacs or iconify frame.")
2140 nil ;undocumented requirement of with-electric-help 2139 nil))))
2141 ))))
2142 2140
2143 2141
2144 (let ((help-1 (concat "[r/R]eplace word; [a/A]ccept for this session; " 2142 (let ((help-1 (concat "[r/R]eplace word; [a/A]ccept for this session; "
@@ -2772,7 +2770,7 @@ Return nil if spell session is quit,
2772(defun ispell-begin-skip-region-regexp () 2770(defun ispell-begin-skip-region-regexp ()
2773 "Returns a regexp of the search keys for region skipping. 2771 "Returns a regexp of the search keys for region skipping.
2774Includes `ispell-skip-region-alist' plus tex, tib, html, and comment keys. 2772Includes `ispell-skip-region-alist' plus tex, tib, html, and comment keys.
2775Must call after ispell-buffer-local-parsing due to dependence on mode." 2773Must call after `ispell-buffer-local-parsing' due to dependence on mode."
2776 ;; start with regions generic to all buffers 2774 ;; start with regions generic to all buffers
2777 (let ((skip-regexp (ispell-begin-skip-region ispell-skip-region-alist))) 2775 (let ((skip-regexp (ispell-begin-skip-region ispell-skip-region-alist)))
2778 ;; Comments 2776 ;; Comments
@@ -2985,10 +2983,10 @@ Point is placed at end of skipped region."
2985(defvar end) 2983(defvar end)
2986 2984
2987(defun ispell-process-line (string shift) 2985(defun ispell-process-line (string shift)
2988 "Sends a LINE of text to ispell and processes the result. 2986 "Sends STRING, a line of text, to ispell and processes the result.
2989This will modify the buffer for spelling errors. 2987This will modify the buffer for spelling errors.
2990Requires variables START and END to be defined in its lexical scope. 2988Requires variables START and END to be defined in its lexical scope.
2991Returns the sum shift due to changes in word replacements." 2989Returns the sum SHIFT due to changes in word replacements."
2992 ;;(declare special start end) 2990 ;;(declare special start end)
2993 (let (poss accept-list) 2991 (let (poss accept-list)
2994 (if (not (numberp shift)) 2992 (if (not (numberp shift))