From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter =?UTF-8?Q?M=C3=BCnster?= Newsgroups: gmane.emacs.bugs Subject: bug#10807: 24.0.93; dbus NotificationClosed signal should not reset idle-time when reason=1 Date: Mon, 13 Feb 2012 23:54:13 +0100 Message-ID: <87d39ifip6.fsf@micropit.couberia.bzh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329173939 21705 80.91.229.3 (13 Feb 2012 22:58:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 22:58:59 +0000 (UTC) To: 10807@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 23:58:57 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rx4rE-00082n-KN for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 23:58:52 +0100 Original-Received: from localhost ([::1]:46986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4rE-0002dR-0U for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 17:58:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:33388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4qt-0002cU-LD for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:58:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx4qs-00036y-Dg for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:58:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4qs-00036u-C5 for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:58:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rx4sM-0003As-QJ for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 18:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Peter =?UTF-8?Q?M=C3=BCnster?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Feb 2012 23:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132917397612120 (code B ref -1); Mon, 13 Feb 2012 23:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Feb 2012 22:59:36 +0000 Original-Received: from localhost ([127.0.0.1]:39360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rx4rv-00039Q-3P for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:59:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59825) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rx4oP-00033j-Fl for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:55:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx4mo-0001yJ-Aj for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:54:19 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:49233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4mo-0001yF-9I for submit@debbugs.gnu.org; Mon, 13 Feb 2012 17:54:18 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:52082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4mn-0001Ox-8f for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:54:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rx4ml-0001xx-RC for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:54:17 -0500 Original-Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:43899 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rx4ml-0001xm-Mj for bug-gnu-emacs@gnu.org; Mon, 13 Feb 2012 17:54:15 -0500 Original-Received: from micropit.couberia.bzh ([2.12.35.148]) by mwinf5d25 with ME id ZauD1i00z3Bm80203auDkE; Mon, 13 Feb 2012 23:54:13 +0100 Original-Received: by micropit.couberia.bzh (Postfix, from userid 1000) id 442C25006CE; Mon, 13 Feb 2012 23:54:13 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 13 Feb 2012 17:59:34 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Mon, 13 Feb 2012 17:58:49 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56875 Archived-At: Hello, The current idle-time is reset to 0, when a notification window expires. IMO it should not, or it should be configurable. Discussion on usenet: http://thread.gmane.org/gmane.emacs.help/83685 Test file: ; save file in /tmp/test.el and run "emacs -Q -l /tmp/test.el" (require 'notifications) (notifications-notify :timeout 1000) (defun my-test () (let ((it (current-idle-time))) (message "idle time = %f" (if it (+ (cadr it) (/ (nth 2 it) 1000000.0)) 0)))) (run-with-timer 1.5 nil 'my-test) Result: idle time = about 0.5 Expected result: idle time = about 1.5 Use case, where resetting the idle-time to 0 is annoying: On the one hand, I use `gnus-demon-add-handler' for several actions, that need to be done repeatedly and only when idle for at least some minutes. On the other hand I use (setq appt-disp-window-function 'pm/todo-notify ; popup notify-windows appt-display-interval 1) and (org-agenda-to-appt t '((headline "TODO"))) in such a way, that the notification windows are refreshed once per minute (":timeout 60000"). This is nice, because I don't need to click on the notification window, I just edit my org-mode-todo-list (switch an item from TODO to DONE), and the notification window will disappear automatically in at most 60 seconds. But when I'm idle, and once per minute a notification windows expires, the gnus-demon won't activate my handlers, because the idle-time is always reset, and this can be annoying. -- Peter