unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Oleg Sivokon <oleg.sivokon@elastifile.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, eliz@gnu.org
Cc: 24959@debbugs.gnu.org
Subject: bug#24959: 26.0.50; cancel-timer: void-variable timer
Date: Thu, 17 Nov 2016 19:55:16 +0200	[thread overview]
Message-ID: <CA+-61TTXLtJvRD7JFd7ZuGp0KzpuiUCT-+13rTykqcuAsxZfUw@mail.gmail.com> (raw)
In-Reply-To: <m3eg2adob5.fsf@gnus.org>

Eli, Lars,

I know what the timer handler is. I'm not sure how to interpret the
backtrace then: did it or did it not enter the cancel-timer function?
I thought it did, and this is why I filed this ticket.

More background (this applies if the backtrace says that cancel-timer
was not entered):
The code in the handler relies on the code that sets up the timer to
create a special variable "timer". This variable is created by calling
setq (but no defvar). setq used to make variable special, if it wasn't
already let-bound. Now it seems like this behavior has changed. Does
this make sense?

On Thu, Nov 17, 2016 at 7:11 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Oleg Sivokon <oleg.sivokon@elastifile.com> writes:
>
>> Debugger entered--Lisp error: (void-variable timer)
>>   (cancel-timer timer)
>>   (condition-case err (if (let* ((--cl-var-- buffs) (buf nil) (--cl-flag-- t) --cl-var--) (while (and (consp --cl-var--) (progn (setq buf (car --cl-var--)) (setq --cl-flag-- (not ...)))) (setq --cl-var-- (cdr --cl-var--))) --cl-var--) nil (let* ((--cl-var-- buffs) (buf nil) (container nil) (contents nil)) (while (consp --cl-var--) (setq buf (car --cl-var--)) (setq container (save-current-buffer (set-buffer buf) container)) (setq contents (save-current-buffer (set-buffer buf) (buffer-substring (point-min) (point-max)))) (kill-buffer buf) (save-current-buffer (set-buffer output) (insert (format "\n\n===== %s =====\n\n" container)) (insert contents)) (setq --cl-var-- (cdr --cl-var--))) nil) (cancel-timer timer)) (error (let* ((--cl-var-- buffs) (buf nil)) (while (consp --cl-var--) (setq buf
>
> I've grepped around the Emacs sources a bit, and I'm unable to find a
> string like "===== %s =====" or "setq container" anywhere in Emacs.
>
> Could this be from a local package you've installed?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2016-11-17 17:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-17  9:48 bug#24959: 26.0.50; cancel-timer: void-variable timer Oleg Sivokon
2016-11-17 17:08 ` Eli Zaretskii
2016-11-17 17:11 ` Lars Ingebrigtsen
2016-11-17 17:55   ` Oleg Sivokon [this message]
2016-11-17 17:56     ` Lars Ingebrigtsen
2016-11-17 18:00       ` Oleg Sivokon
2016-11-17 18:03         ` Lars Ingebrigtsen
2016-11-17 18:06           ` Oleg Sivokon
2016-11-17 18:09             ` Lars Ingebrigtsen
2016-11-17 19:14               ` Oleg Sivokon
2016-11-17 19:19                 ` Oleg Sivokon
2016-11-17 19:22                   ` Lars Ingebrigtsen
2016-11-17 19:24                     ` Oleg Sivokon

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=CA+-61TTXLtJvRD7JFd7ZuGp0KzpuiUCT-+13rTykqcuAsxZfUw@mail.gmail.com \
    --to=oleg.sivokon@elastifile.com \
    --cc=24959@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.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 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).