From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Support for explicitly resetting the idle timer? Date: Sat, 27 Nov 2021 12:11:04 +0200 Message-ID: <83zgppzz5z.fsf@gnu.org> References: <1d3c782b-6e79-8deb-e34d-f53b94f2fd9c@gmail.com> <83bl2610wt.fsf@gnu.org> <835yse0y70.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7186"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Campbell Barton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 11:11:33 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mqug8-0001gS-QW for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 11:11:33 +0100 Original-Received: from localhost ([::1]:46746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqug7-0004jo-0A for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 05:11:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqufZ-0003vQ-TH for emacs-devel@gnu.org; Sat, 27 Nov 2021 05:10:57 -0500 Original-Received: from [2001:470:142:3::e] (port=53878 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqufZ-0004po-Ku; Sat, 27 Nov 2021 05:10:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GLd+LosLi7MqvG1FgE2ut07zBpysHsKxsYNfIAdT5Y8=; b=VKFhCSkz9uFR tZX1TNdnUXFcMRp5dCtXfvcoxPdJxMhPPo4wQkMo2yNadLUDSMZgcc+wZJ5rxwYWiqarmSH+2cID+ oqPupA+I85IdKuh5hl4w6sov4CpTSo6BihMgfilxUZuheVENKHhrH52pddtgrA9QOwM7FgBihRC0J EwDbIUjxJ97NKYKa1fdpyR9KdFNFfX5f3pQPLQyuHq8+gdPjGbItPODkarCTU4seSDTl1C2BoOYk9 jlHIQS15Zjjngb3Q3GNZKm5GDrsWjDyO1c2Nt5m6AV4PzD49cY3tPmfDMZRqYyRVfQJ8FCOSNXDTI 9Ss7VYKNx37QFEBT8ofwag==; Original-Received: from [87.69.77.57] (port=2439 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqufZ-0008FT-4M; Sat, 27 Nov 2021 05:10:57 -0500 In-Reply-To: (message from Campbell Barton on Sat, 27 Nov 2021 20:14:44 +1100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280314 Archived-At: > From: Campbell Barton > Date: Sat, 27 Nov 2021 20:14:44 +1100 > Cc: Emacs developers > > > > Not sure if this would solve my case (is there some formal definition > > > of what is meant by a command?). > > > I'm changing the scroll position using `set-window-vscroll` - so I'm > > > not sure if that counts as a command. > > > > Which code invokes set-window-vscroll, and what triggers that code? > > There is a while loop that uses (read-event) inside a `(track-mouse > ...)` block that changes the scroll location and redraws. But that while loop is invoked by some binding of some mouse gesture, no? That binding _is_ the "command" I meant. > (any solution shouldn't be so specific to my use-case of course, > AFAICS it's just a case that is reasonable to support with whatever > fix/feature is used). Any solution that makes sure idle timers don't run when Emacs executes a command is not specific to any use case, IMO.