unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Leo Liu <sdl.web@gmail.com>
Cc: 15721@debbugs.gnu.org
Subject: bug#15721: 24.3; Error in post-command-hook (flyspell-post-command-hook): (wrong-type-argument integer-or-marker-p nil)
Date: Mon, 30 Sep 2019 15:54:39 +0200	[thread overview]
Message-ID: <CADwFkmk-TW1uiNgFZC47r7paPmvcpZq5MiZe2X_Yn5hu3g3X6g@mail.gmail.com> (raw)
In-Reply-To: <m1a9hwh5em.fsf@gmail.com>

tags 15721 + moreinfo
quit

Leo Liu <sdl.web@gmail.com> writes:

> I got this from time to time:
>
>         Error in post-command-hook (flyspell-post-command-hook):
>         (wrong-type-argument integer-or-marker-p nil)
>
> But I don't know how to reproduce it reliably. So I put in this form
>
>       (unless (numberp flyspell-pre-point)
>                 (message "DEBUG-flyspell-pre-point: %S" flyspell-pre-point))
>
> before (goto-char flyspell-pre-point) in flyspell-post-command-hook.
>
> This is what is in *Messages* when the error happened:
> DEBUG-flyspell-pre-point: nil
>
> So it seems flyspell-post-command-hook needs to check current buffer is
> flyspell-pre-buffer. But I am not totally sure.

Do you have a recipe for reproducing this, starting from "emacs -Q"?

Best regards,
Stefan Kangas





  reply	other threads:[~2019-09-30 13:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-26  7:12 bug#15721: 24.3; Error in post-command-hook (flyspell-post-command-hook): (wrong-type-argument integer-or-marker-p nil) Leo Liu
2019-09-30 13:54 ` Stefan Kangas [this message]
2020-01-15  5:35   ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmk-TW1uiNgFZC47r7paPmvcpZq5MiZe2X_Yn5hu3g3X6g@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=15721@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).