GNU bug report logs -
#35967
[PATCH] avoid flyspell error if point is at bob
Previous Next
Reported by: Alex Branham <alex.branham <at> gmail.com>
Date: Tue, 28 May 2019 20:45:01 UTC
Severity: normal
Tags: patch
Done: Alex Branham <alex.branham <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Jun 14 2019, Alex Branham <alex.branham <at> gmail.com> wrote:
> diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
> index d18916dfd0..22f9db4363 100644
> --- a/lisp/textmodes/flyspell.el
> +++ b/lisp/textmodes/flyspell.el
> @@ -423,9 +423,10 @@ flyspell-prog-text-faces
>
> (defun flyspell-generic-progmode-verify ()
> "Used for `flyspell-generic-check-word-predicate' in programming modes."
> - ;; (point) is next char after the word. Must check one char before.
> - (let ((f (get-text-property (- (point) 1) 'face)))
> - (memq f flyspell-prog-text-faces)))
> + (unless (eql (point) (point-min))
> + ;; (point) is next char after the word. Must check one char before.
> + (let ((f (get-text-property (- (point) 1) 'face)))
Perhaps change this to (1- (point)).
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
This bug report was last modified 6 years and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.