emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timer out of nowhere


From: Michael Markert
Subject: Re: Timer out of nowhere
Date: Wed, 13 Feb 2013 19:34:56 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

On Wed, Feb 13 2013 (19:21), Lluís <address@hidden> 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\302H\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: pgpBsG4Iv8ieK.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]