From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "numbchild@gmail.com" Newsgroups: gmane.emacs.help Subject: Why run-with-timer generates so many timers? Date: Sat, 18 Jul 2020 08:54:54 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35154"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 18 02:55:55 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jwb8t-000920-Ik for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 18 Jul 2020 02:55:55 +0200 Original-Received: from localhost ([::1]:42602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jwb8s-0006V1-Cd for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Jul 2020 20:55:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwb8N-0006Uv-VW for help-gnu-emacs@gnu.org; Fri, 17 Jul 2020 20:55:24 -0400 Original-Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]:43935) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jwb8M-0001Nv-07 for help-gnu-emacs@gnu.org; Fri, 17 Jul 2020 20:55:23 -0400 Original-Received: by mail-vs1-xe36.google.com with SMTP id j186so5747401vsd.10 for ; Fri, 17 Jul 2020 17:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=gH5iQr88JAdxsGKF4X+xc4au0TCcL75ZeEgfg/X4COk=; b=N/hqQovs/jVt62xO7Z8QM3mj+BB6b7/w2Z5LoVwy1+MTZdLLSyErCAMgwj6vbVQ61R 9hWzPyXrrPFHkJDlgctm62iRMKJZcOA7s32NqEBYFSfnpZZ3timStCv9eTg71x7/tLjj Jd5SFJ2Dc7NTyb9rEC1lryZ/F8RqUkPzTMByhNfLCw60JiaXmOSQ0IGggL/AqK25j76h mFRjBPNbXrHLkdRVdm0mxOz2xcVmEU1E6f/d4e1NaWsQFw5nbfgXzRkBkKehNZyyuJbB 2SchZQSXT9biDX6g1j6Otbi2k8JaS8VQbQ58Rfw/6Cu53yZHfxDnfh40PpVuKXHh2BwM IRDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gH5iQr88JAdxsGKF4X+xc4au0TCcL75ZeEgfg/X4COk=; b=R5a0GSoWQjjS3pFdJ+A+0FpLInXgaACSpTOK4k2QAj804ARG0demjVRekNCT8Z5aeg fywPZ4ycnj7FLfXpJKiSC6AGjlnpFPouI4SgFnyHBc5Y4gzGmt0ntCvEW/O9GKKa6esM MP2pp21EcIlDCEbac8KjDyVd7i9n3O7MZey4r5ONkV4ePJJMqstBvW1SLhyKdA0C6k4M /e5XK3wbHqTHZ8TQmqU1sQksKkz5Iayqn5N99RAhriSvsV4bQvkdUV3Cs//xYwk/FoEw h43V+LJ7RxYlWJYQdnLI5c7AO+uXlL15MeBSkpLMvrZw3cs5iXm7QzEzj7Ptv4IJQTTu Ot6w== X-Gm-Message-State: AOAM532mhNybg+7Ua3NI4Sfj1bmlYIYAN6u4XspyfKOAKRpYUU2jBRBp 15/Z96LLYhotMxwJ6KzcT6iRqB2gwgjJ3I7ydx6t73/Zg546 X-Google-Smtp-Source: ABdhPJwKsRAaJHYJLol8hbkiO25W9KCA4l+TCoQjUkCv4LPQbV9RTBM4ZtKVLIY+8WBG/2wjp8jw2Njti9vSU7LzehY= X-Received: by 2002:a05:6102:53c:: with SMTP id m28mr9010128vsa.118.1595033720664; Fri, 17 Jul 2020 17:55:20 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::e36; envelope-from=numbchild@gmail.com; helo=mail-vs1-xe36.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123552 Archived-At: I write an extension rainbow-fart.el ( https://github.com/stardiviner/emacs-rainbow-fart) Here is the code lines which running timer: https://github.com/stardiviner/emacs-rainbow-fart/blob/master/rainbow-fart.el#L245 When I run command `list-timers`. I found many timers is generated by rainbow-fart.el #+begin_example 275.87 900.0 rainbow-fart--timing-remind 278.20 900.0 rainbow-fart--timing-remind 280.55 900.0 rainbow-fart--timing-remind 280.65 900.0 rainbow-fart--timing-remind 280.66 900.0 rainbow-fart--timing-remind 280.74 900.0 rainbow-fart--timing-remind 280.86 900.0 rainbow-fart--timing-remind 280.94 900.0 rainbow-fart--timing-remind 281.14 900.0 rainbow-fart--timing-remind 281.19 900.0 rainbow-fart--timing-remind 281.21 900.0 rainbow-fart--timing-remind 281.28 900.0 rainbow-fart--timing-remind 281.81 900.0 rainbow-fart--timing-remind 281.89 900.0 rainbow-fart--timing-remind 283.31 900.0 rainbow-fart--timing-remind 283.39 900.0 rainbow-fart--timing-remind 285.49 900.0 rainbow-fart--timing-remind ..... #+end_example Is my `run-with-timer` source code wrong? Or did I misunderstand this function? Hope experts like you can explain it for me, thanks very much. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/