unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Boruch Baum <boruch_baum@gmx.com>
Cc: 40771@debbugs.gnu.org
Subject: bug#40771: 26.1: javascript-mode timers persist after closing mode buffers
Date: Mon, 27 Apr 2020 10:35:17 -0400	[thread overview]
Message-ID: <851ro99eu2.fsf@gmail.com> (raw)
In-Reply-To: <20200422154309.yjkke3ditgspbfic@E15-2016.optimum.net> (Boruch Baum's message of "Wed, 22 Apr 2020 11:43:09 -0400")

Boruch Baum <boruch_baum@gmx.com> writes:

> Today, with no javascript mode buffer open, when running M-x
> list-timers, two javascript-related timers appear:
>
>    *       0.50        t jit-lock-context-fontify

I don't think this one is javascript-related.

>    *      30.00        t js-gc
>
> So, it looks like those timers aren't being properly killed. I have no
> idea when I have ever opened a buffer in some form of javascript mode;
> my emacs-uptime is 20+ days.

js.el has at top-level:

    (run-with-idle-timer 30 t #'js-gc)

It's a global timer which isn't connected to any particular buffer.  I'm
not sure why you think the timer should be killed.  Do you see any
problems coming from the existence of this timer?





  reply	other threads:[~2020-04-27 14:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 15:43 bug#40771: 26.1: javascript-mode timers persist after closing mode buffers Boruch Baum
2020-04-27 14:35 ` Noam Postavsky [this message]
2020-04-27 14:52   ` Dmitry Gutov
2020-04-29  4:02     ` Boruch Baum
2020-04-29  4:10       ` Dmitry Gutov
2021-09-18 14:37     ` Lars Ingebrigtsen
2021-09-18 20:43       ` Dmitry Gutov
2021-10-04  9:56       ` Lars Ingebrigtsen
2020-04-29  3:58   ` Boruch Baum

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=851ro99eu2.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=40771@debbugs.gnu.org \
    --cc=boruch_baum@gmx.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).