GNU bug report logs -
#4577
[PATCH] Emacs CVS: flyspell.el: (flyspell-get-word): Correct function argment list according to docstring
Previous Next
Reported by: Jari Aalto <jari.aalto <at> cante.net>
Date: Mon, 28 Sep 2009 11:30:05 UTC
Severity: normal
Tags: patch
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4577 in the body.
You can then email your comments to 4577 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#4577
; Package
emacs
.
(Mon, 28 Sep 2009 11:30:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jari Aalto <jari.aalto <at> cante.net>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 28 Sep 2009 11:30:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
The documentation of flyspell-get-word reads that there are no required
parameters. All are optional. The patch updates to code according to
docstring.
2009-09-28 Jari Aalto <jari.aalto <at> cante.net>
* textmodes/flyspell.el (flyspell-get-word): Correct function argment
list according to docstring. Parameter `following' is optional
(flyspell-external-point-words): Remove `nil' argument from call
to `flyspell-get-word'.
(flyspell-auto-correct-word): Remove `nil' argument from call to
`flyspell-get-word'.
(flyspell-correct-word-before-point): Remove `nil' argument from
call to `flyspell-get-word'.
(flyspell-word-search-forward): Remove `nil' argument from call to
`flyspell-get-word'.
(flyspell-word-search-backward): Remove `nil' argument from call to
`flyspell-get-word'.
[0001-lisp-textmodes-flyspell.el-flyspell-get-word-Correct.patch (text/x-diff, inline)]
From a225dd1077da59791bddd77b9f62e43e1c02a9cb Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto <at> cante.net>
Date: Mon, 28 Sep 2009 14:18:05 +0300
Subject: [PATCH] lisp/textmodes/flyspell.el: (flyspell-get-word): Correct function argment list according to docstring
Signed-off-by: Jari Aalto <jari.aalto <at> cante.net>
---
lisp/textmodes/flyspell.el | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index eff19e6..8ee0220 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -986,7 +986,7 @@ Mostly we check word delimiters."
(inhibit-point-motion-hooks t)
p)
(while (and (not r) (setq p (search-backward word bound t)))
- (let ((lw (flyspell-get-word '())))
+ (let ((lw (flyspell-get-word)))
(if (and (consp lw) (string-equal (car lw) word))
(setq r p)
(goto-char p))))
@@ -1001,7 +1001,7 @@ Mostly we check word delimiters."
(inhibit-point-motion-hooks t)
p)
(while (and (not r) (setq p (search-forward word bound t)))
- (let ((lw (flyspell-get-word '())))
+ (let ((lw (flyspell-get-word))
(if (and (consp lw) (string-equal (car lw) word))
(setq r p)
(goto-char (1+ p)))))
@@ -1250,7 +1250,7 @@ this function changes the last char of the `ispell-casechars' string."
;;*---------------------------------------------------------------------*/
;;* flyspell-get-word ... */
;;*---------------------------------------------------------------------*/
-(defun flyspell-get-word (following &optional extra-otherchars)
+(defun flyspell-get-word (&optional following extra-otherchars)
"Return the word for spell-checking according to Ispell syntax.
If optional argument FOLLOWING is non-nil or if `flyspell-following-word'
is non-nil when called interactively, then the following word
@@ -1394,7 +1394,7 @@ The buffer to mark them in is `flyspell-large-region-buffer'."
;; Move back into the match
;; so flyspell-get-word will find it.
(forward-char -1)
- (flyspell-get-word nil)))
+ (flyspell-get-word)))
(found (car found-list))
(found-length (length found))
(misspell-length (length word)))
@@ -1887,7 +1887,7 @@ This command proposes various successive corrections for the current word."
(flyspell-ajust-cursor-point pos (point) old-max)
(setq flyspell-auto-correct-pos (point)))
;; fetch the word to be checked
- (let ((word (flyspell-get-word nil)))
+ (let ((word (flyspell-get-word)))
(if (consp word)
(let ((start (car (cdr word)))
(end (car (cdr (cdr word))))
@@ -2049,7 +2049,7 @@ If OPOINT is non-nil, restore point there after adjusting it for replacement."
(flyspell-accept-buffer-local-defs)
(or opoint (setq opoint (point)))
(let ((cursor-location (point))
- (word (flyspell-get-word nil)))
+ (word (flyspell-get-word)))
(if (consp word)
(let ((start (car (cdr word)))
(end (car (cdr (cdr word))))
--
1.6.3.3
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Sat, 17 Oct 2009 03:20:08 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jari Aalto <jari.aalto <at> cante.net>
:
bug acknowledged by developer.
(Sat, 17 Oct 2009 03:20:08 GMT)
Full text and
rfc822 format available.
Message #10 received at 4577-done <at> emacsbugs.donarmstrong.com (full text, mbox):
Thanks; applied (with paren typo corrected).
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 14 Nov 2009 15:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 299 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.