GNU bug report logs - #35967
[PATCH] avoid flyspell error if point is at bob

Previous Next

Package: emacs;

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

From: npostavs <at> gmail.com
To: Alex Branham <alex.branham <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 35967 <at> debbugs.gnu.org, npostavs <at> gmail.com
Subject: bug#35967: [PATCH] avoid flyspell error if point is at bob
Date: Fri, 14 Jun 2019 14:31:55 -0400
Alex Branham <alex.branham <at> gmail.com> writes:

> Here's a new patch that checks for (equal (point) 1) rather than using
> bobp. OK to push to master?

> +  (unless (eql (point) 1)
> +    ;; (point) is next char after the word. Must check one char before.
> +    (let ((f (get-text-property (- (point) 1) 'face)))

This will do the wrong thing when point is at the beginning of a
narrowed buffer.  Score one point for bobp?




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.