From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.emacs.help Subject: notifications-notify resets idle-time Date: Fri, 10 Feb 2012 23:08:15 +0100 Message-ID: <874nuy5okw.fsf@micropit.couberia.bzh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328911721 21715 80.91.229.3 (10 Feb 2012 22:08:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 22:08:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 23:08:39 2012 Return-path: Envelope-to: geh-help-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 1Rvydw-0002Nq-V1 for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 23:08:37 +0100 Original-Received: from localhost ([::1]:46694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvydw-00072U-0u for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 17:08:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:54686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvydr-0006xy-4z for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 17:08:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvydq-0007SZ-44 for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 17:08:31 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvydp-0007SV-Uo for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 17:08:30 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rvydm-0002Ik-QF for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 23:08:26 +0100 Original-Received: from arennes-359-1-246-236.w2-2.abo.wanadoo.fr ([2.2.197.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2012 23:08:26 +0100 Original-Received: from pmlists by arennes-359-1-246-236.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2012 23:08:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-359-1-246-236.w2-2.abo.wanadoo.fr User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:DMOCyHZoUqsFDvm4vgGzY7sqbRk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83685 Archived-At: Hello, How can I prevent `notifications-notify' from resetting the idle time? In detail: when evaluating the following code, you'll see, that the idle time does not increase: --8<---------------cut here---------------start------------->8--- (require 'notifications) (defun my-test () (notifications-notify) (message (format "idle: %d" (if (current-idle-time) (cadr (current-idle-time)) 0)))) (run-with-timer 5 5 'my-test) --8<---------------cut here---------------end--------------->8--- TIA for any hints, -- Peter