aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-06-14 11:36:04 +0000
committerJuanma Barranquero2005-06-14 11:36:04 +0000
commitebb7de8462af1636e625e756c780d48034b65882 (patch)
treeb57f16631ff1bf3e23c20922d6fa4bdff1660fd3
parent490f67f86e288e21043a5649b959e2601214fd70 (diff)
downloademacs-ebb7de8462af1636e625e756c780d48034b65882.tar.gz
emacs-ebb7de8462af1636e625e756c780d48034b65882.zip
(flyspell-incorrect-hook, flyspell-maybe-correct-transposition,
flyspell-maybe-correct-doubling): Fix quoting in docstring.
-rw-r--r--lisp/textmodes/flyspell.el36
1 files changed, 18 insertions, 18 deletions
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index 118e490112f..8c2d0937a5a 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -172,7 +172,7 @@ command was not the very same command."
172 "*List of functions to be called when incorrect words are encountered. 172 "*List of functions to be called when incorrect words are encountered.
173Each function is given three arguments: the beginning and the end 173Each function is given three arguments: the beginning and the end
174of the incorrect region. The third is either the symbol 'doublon' or the list 174of the incorrect region. The third is either the symbol 'doublon' or the list
175of possible corrections as returned by 'ispell-parse-output'. 175of possible corrections as returned by `ispell-parse-output'.
176 176
177If any of the functions return non-Nil, the word is not highlighted as 177If any of the functions return non-Nil, the word is not highlighted as
178incorrect." 178incorrect."
@@ -982,7 +982,7 @@ Mostly we check word delimiters."
982 (setq r p) 982 (setq r p)
983 (goto-char p)))) 983 (goto-char p))))
984 r))) 984 r)))
985 985
986;*---------------------------------------------------------------------*/ 986;*---------------------------------------------------------------------*/
987;* flyspell-word-search-forward ... */ 987;* flyspell-word-search-forward ... */
988;*---------------------------------------------------------------------*/ 988;*---------------------------------------------------------------------*/
@@ -996,7 +996,7 @@ Mostly we check word delimiters."
996 (setq r p) 996 (setq r p)
997 (goto-char (1+ p))))) 997 (goto-char (1+ p)))))
998 r))) 998 r)))
999 999
1000;*---------------------------------------------------------------------*/ 1000;*---------------------------------------------------------------------*/
1001;* flyspell-word ... */ 1001;* flyspell-word ... */
1002;*---------------------------------------------------------------------*/ 1002;*---------------------------------------------------------------------*/
@@ -1026,7 +1026,7 @@ Mostly we check word delimiters."
1026 flyspell-mark-duplications-flag 1026 flyspell-mark-duplications-flag
1027 (save-excursion 1027 (save-excursion
1028 (goto-char (1- start)) 1028 (goto-char (1- start))
1029 (let ((p (flyspell-word-search-backward 1029 (let ((p (flyspell-word-search-backward
1030 word 1030 word
1031 (- start (1+ (- end start)))))) 1031 (- start (1+ (- end start))))))
1032 (and p (/= p (1- start)))))) 1032 (and p (/= p (1- start))))))
@@ -1126,7 +1126,7 @@ Mostly we check word delimiters."
1126 (flyspell-notify-misspell start end word poss)) 1126 (flyspell-notify-misspell start end word poss))
1127 nil)))) 1127 nil))))
1128 ;; return to original location 1128 ;; return to original location
1129 (goto-char cursor-location) 1129 (goto-char cursor-location)
1130 (if ispell-quit (setq ispell-quit nil)) 1130 (if ispell-quit (setq ispell-quit nil))
1131 res)))))))) 1131 res))))))))
1132 1132
@@ -1839,7 +1839,7 @@ This command proposes various successive corrections for the current word."
1839(defun flyspell-auto-correct-previous-hook () 1839(defun flyspell-auto-correct-previous-hook ()
1840 "Hook to track successive calls to `flyspell-auto-correct-previous-word'. 1840 "Hook to track successive calls to `flyspell-auto-correct-previous-word'.
1841Sets `flyspell-auto-correct-previous-pos' to nil" 1841Sets `flyspell-auto-correct-previous-pos' to nil"
1842 (interactive) 1842 (interactive)
1843 (remove-hook 'pre-command-hook (function flyspell-auto-correct-previous-hook) t) 1843 (remove-hook 'pre-command-hook (function flyspell-auto-correct-previous-hook) t)
1844 (unless (eq this-command (function flyspell-auto-correct-previous-word)) 1844 (unless (eq this-command (function flyspell-auto-correct-previous-word))
1845 (setq flyspell-auto-correct-previous-pos nil))) 1845 (setq flyspell-auto-correct-previous-pos nil)))
@@ -1847,7 +1847,7 @@ Sets `flyspell-auto-correct-previous-pos' to nil"
1847;*---------------------------------------------------------------------*/ 1847;*---------------------------------------------------------------------*/
1848;* flyspell-auto-correct-previous-word ... */ 1848;* flyspell-auto-correct-previous-word ... */
1849;*---------------------------------------------------------------------*/ 1849;*---------------------------------------------------------------------*/
1850(defun flyspell-auto-correct-previous-word (position) 1850(defun flyspell-auto-correct-previous-word (position)
1851 "*Auto correct the first mispelled word that occurs before point. 1851 "*Auto correct the first mispelled word that occurs before point.
1852But don't look beyond what's visible on the screen." 1852But don't look beyond what's visible on the screen."
1853 (interactive "d") 1853 (interactive "d")
@@ -1863,29 +1863,29 @@ But don't look beyond what's visible on the screen."
1863 (narrow-to-region top bot) 1863 (narrow-to-region top bot)
1864 (overlay-recenter (point)) 1864 (overlay-recenter (point))
1865 1865
1866 (add-hook 'pre-command-hook 1866 (add-hook 'pre-command-hook
1867 (function flyspell-auto-correct-previous-hook) t t) 1867 (function flyspell-auto-correct-previous-hook) t t)
1868 1868
1869 (unless flyspell-auto-correct-previous-pos 1869 (unless flyspell-auto-correct-previous-pos
1870 ;; only reset if a new overlay exists 1870 ;; only reset if a new overlay exists
1871 (setq flyspell-auto-correct-previous-pos nil) 1871 (setq flyspell-auto-correct-previous-pos nil)
1872 1872
1873 (let ((overlay-list (overlays-in (point-min) position)) 1873 (let ((overlay-list (overlays-in (point-min) position))
1874 (new-overlay 'dummy-value)) 1874 (new-overlay 'dummy-value))
1875 1875
1876 ;; search for previous (new) flyspell overlay 1876 ;; search for previous (new) flyspell overlay
1877 (while (and new-overlay 1877 (while (and new-overlay
1878 (or (not (flyspell-overlay-p new-overlay)) 1878 (or (not (flyspell-overlay-p new-overlay))
1879 ;; check if its face has changed 1879 ;; check if its face has changed
1880 (not (eq (get-char-property 1880 (not (eq (get-char-property
1881 (overlay-start new-overlay) 'face) 1881 (overlay-start new-overlay) 'face)
1882 'flyspell-incorrect)))) 1882 'flyspell-incorrect))))
1883 (setq new-overlay (car-safe overlay-list)) 1883 (setq new-overlay (car-safe overlay-list))
1884 (setq overlay-list (cdr-safe overlay-list))) 1884 (setq overlay-list (cdr-safe overlay-list)))
1885 1885
1886 ;; if nothing new exits new-overlay should be nil 1886 ;; if nothing new exits new-overlay should be nil
1887 (if new-overlay ;; the length of the word may change so go to the start 1887 (if new-overlay ;; the length of the word may change so go to the start
1888 (setq flyspell-auto-correct-previous-pos 1888 (setq flyspell-auto-correct-previous-pos
1889 (overlay-start new-overlay))))) 1889 (overlay-start new-overlay)))))
1890 1890
1891 (when flyspell-auto-correct-previous-pos 1891 (when flyspell-auto-correct-previous-pos
@@ -2134,9 +2134,9 @@ Ispell, after transposing two adjacent characters, correct the text,
2134and return t. 2134and return t.
2135 2135
2136The third arg POSS is either the symbol 'doublon' or a list of 2136The third arg POSS is either the symbol 'doublon' or a list of
2137possible corrections as returned by 'ispell-parse-output'. 2137possible corrections as returned by `ispell-parse-output'.
2138 2138
2139This function is meant to be added to 'flyspell-incorrect-hook'." 2139This function is meant to be added to `flyspell-incorrect-hook'."
2140 (when (consp poss) 2140 (when (consp poss)
2141 (catch 'done 2141 (catch 'done
2142 (let ((str (buffer-substring beg end)) 2142 (let ((str (buffer-substring beg end))
@@ -2164,9 +2164,9 @@ Ispell, after removing a pair of doubled characters, correct the text,
2164and return t. 2164and return t.
2165 2165
2166The third arg POSS is either the symbol 'doublon' or a list of 2166The third arg POSS is either the symbol 'doublon' or a list of
2167possible corrections as returned by 'ispell-parse-output'. 2167possible corrections as returned by `ispell-parse-output'.
2168 2168
2169This function is meant to be added to 'flyspell-incorrect-hook'." 2169This function is meant to be added to `flyspell-incorrect-hook'."
2170 (when (consp poss) 2170 (when (consp poss)
2171 (catch 'done 2171 (catch 'done
2172 (let ((str (buffer-substring beg end)) 2172 (let ((str (buffer-substring beg end))