unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Flyspell-region bug
@ 2006-02-22 12:53 Slawomir Nowaczyk
  2006-02-24 11:44 ` Agustin Martin
  0 siblings, 1 reply; 4+ messages in thread
From: Slawomir Nowaczyk @ 2006-02-22 12:53 UTC (permalink / raw)


Hello,

I think there is a small problem in flyspell.el. If you evaluate the
following two expressions in this buffer:

(setq flyspell-large-region 1)
(flyspell-buffer)

Washington washington

the uncapitalised version is not marked as misspelled -- while it
should be. The following patch corrects the immediate problem:

**************************************************

*** c:/Emacs/lisp/textmodes/flyspell.el Tue Feb  7 17:21:31 2006
--- c:/temp/buffer-content-476I-k       Wed Feb 22 13:37:31 2006
***************
*** 1322,1328 ****
  The buffer to mark them in is `flyspell-large-region-buffer'."
    (let (words-not-found
        (ispell-otherchars (ispell-get-otherchars))
!       (buffer-scan-pos flyspell-large-region-beg))
      (with-current-buffer flyspell-external-ispell-buffer
        (goto-char (point-min))
        ;; Loop over incorrect words, in the order they were reported,
--- 1322,1329 ----
  The buffer to mark them in is `flyspell-large-region-buffer'."
    (let (words-not-found
        (ispell-otherchars (ispell-get-otherchars))
!       (buffer-scan-pos flyspell-large-region-beg)
!       (case-fold-search nil))
      (with-current-buffer flyspell-external-ispell-buffer
        (goto-char (point-min))
        ;; Loop over incorrect words, in the order they were reported,

**************************************************

Nevertheless, I find it somewhat disturbing that flyspell *did not*
complain but silently decided to ignore the misspelling ispell
reported...

Wouldn't it be better to at least show a message when this happens?

-- 
 Best wishes,
   Slawomir Nowaczyk
     ( slawomir.nowaczyk.847@student.lu.se )

UNIX is a clever beast:
  % got a light?
  No match.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-28 23:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22 12:53 Flyspell-region bug Slawomir Nowaczyk
2006-02-24 11:44 ` Agustin Martin
2006-02-27 10:50   ` Slawomir Nowaczyk
2006-02-28 23:41     ` Agustin Martin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).