From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: notifications-notify resets idle-time Date: Sat, 11 Feb 2012 10:57:05 +0100 Message-ID: <87wr7tr8um.fsf@gmx.de> References: <874nuy5okw.fsf@micropit.couberia.bzh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328954246 26819 80.91.229.3 (11 Feb 2012 09:57:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2012 09:57:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter =?utf-8?Q?M=C3=BCnster?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 10:57:25 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 1Rw9hr-0004eF-NV for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 10:57:23 +0100 Original-Received: from localhost ([::1]:43574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw9hr-0004Pr-2W for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 04:57:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw9hm-0004Pl-Dc for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 04:57:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rw9hl-00063u-JW for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 04:57:18 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:40350) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rw9hl-00063f-9p for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 04:57:17 -0500 Original-Received: (qmail invoked by alias); 11 Feb 2012 09:57:13 -0000 Original-Received: from p57BB8F1C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.143.28] by mail.gmx.net (mp017) with SMTP; 11 Feb 2012 10:57:13 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18ezsUMbBAeBs5EgFSSTZl380fOLymRbIchdIJ7fb kJ62Fy7RbmtJZV In-Reply-To: <874nuy5okw.fsf@micropit.couberia.bzh> ("Peter \=\?utf-8\?Q\?M\?\= \=\?utf-8\?Q\?\=C3\=BCnster\=22's\?\= message of "Fri, 10 Feb 2012 23:08:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 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:83696 Archived-At: Peter M=C3=BCnster writes: > Hello, Hi, > 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: > > (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) > > TIA for any hints, I have no problem. I've just evaluated your code snippet, and I get idle: 2 idle: 7 idle: 12 idle: 17 idle: 22 idle: 27 idle: 32 idle: 2 "GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6) of 2012-01-29 on xxx" Best regards, Michael.