all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Markert <markert.michael@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Timer out of nowhere
Date: Wed, 13 Feb 2013 19:34:56 +0100	[thread overview]
Message-ID: <87bobo2hbj.fsf@googlemail.com> (raw)
In-Reply-To: <87r4kkaxcp.fsf@fimbulvetr.bsc.es> ("Lluís"'s message of "Wed, 13 Feb 2013 19:21:26 +0100")

[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]

On Wed, Feb 13 2013 (19:21), Lluís <xscript@gmx.net> wrote: 

> Every once in a while, I get this error:
>
> Debugger entered--Lisp error: (error "Selecting deleted buffer")
>   adict-guess-dictionary-maybe(#<killed buffer>)
>   apply(adict-guess-dictionary-maybe #<killed buffer>)
>   byte-code("r\301\b\302H\b\303H\"\210)\301\207" [timer apply 5 6] 4)
>   timer-event-handler([t 0 2 0 t adict-guess-dictionary-maybe (#<killed buffer>) idle 0])
>
> This is from [1]. The strange part is that I just killed every possible buffer
> (in case it was a local timer on any of them), and `timer-list' shows absolutely
> no entry with `adict-guess-dictionary-maybe'.
>
> Any ideas on how to track this problem?

adict uses an idle timer so look at `timer-idle-list' instead of `timer-list'.

I use this code to treat the symptom:

    (eval-after-load 'auto-dictionary
      '(add-hook 'kill-buffer-hook
                 (defun cofi/maybe-cancel-adict-timer ()
                   (when adict-timer
                     (cancel-timer adict-timer)))))

But the problem is - for me at least - a pretty new one, meaning
some change in emacs caused this (adict hasn't changed for years).

As adict itself clears the timer when `auto-dictionary-mode' is disabled
I'd guess that modes don't get disabled anymore when a buffer is killed.

emacs-version: 24.3.50.1

Michael

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

  reply	other threads:[~2013-02-13 18:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-13 18:21 Timer out of nowhere Lluís
2013-02-13 18:34 ` Michael Markert [this message]
2013-02-13 19:43 ` Michael Heerdegen
2013-02-13 20:42   ` Lluís
2013-02-13 20:42   ` Stefan Monnier
2013-02-13 19:53 ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=87bobo2hbj.fsf@googlemail.com \
    --to=markert.michael@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.