unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15721: 24.3; Error in post-command-hook (flyspell-post-command-hook): (wrong-type-argument integer-or-marker-p nil)
@ 2013-10-26  7:12 Leo Liu
  2019-09-30 13:54 ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Liu @ 2013-10-26  7:12 UTC (permalink / raw)
  To: 15721

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.

Leo





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

* bug#15721: 24.3; Error in post-command-hook (flyspell-post-command-hook): (wrong-type-argument integer-or-marker-p nil)
  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
  2020-01-15  5:35   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2019-09-30 13:54 UTC (permalink / raw)
  To: Leo Liu; +Cc: 15721

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





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

* bug#15721: 24.3; Error in post-command-hook (flyspell-post-command-hook): (wrong-type-argument integer-or-marker-p nil)
  2019-09-30 13:54 ` Stefan Kangas
@ 2020-01-15  5:35   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2020-01-15  5:35 UTC (permalink / raw)
  To: Leo Liu; +Cc: 15721-done

Stefan Kangas <stefan@marxist.se> writes:

> 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"?

More information was requested, but none was given within 15 weeks, so
I'm closing this bug.  If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.

Best regards,
Stefan Kangas





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

end of thread, other threads:[~2020-01-15  5:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-01-15  5:35   ` Stefan Kangas

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).