From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Campbell Barton Newsgroups: gmane.emacs.devel Subject: Re: Support for explicitly resetting the idle timer? Date: Sat, 27 Nov 2021 21:21:29 +1100 Message-ID: References: <1d3c782b-6e79-8deb-e34d-f53b94f2fd9c@gmail.com> <83bl2610wt.fsf@gnu.org> <835yse0y70.fsf@gnu.org> <83zgppzz5z.fsf@gnu.org> 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="15764"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 11:22:22 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 1mquqc-0003sp-B9 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 11:22:22 +0100 Original-Received: from localhost ([::1]:53590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mquqa-0001Ra-K3 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 05:22:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mquq0-0000eC-GI for emacs-devel@gnu.org; Sat, 27 Nov 2021 05:21:44 -0500 Original-Received: from [2607:f8b0:4864:20::435] (port=38552 helo=mail-pf1-x435.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mqupy-0006Rm-NV; Sat, 27 Nov 2021 05:21:44 -0500 Original-Received: by mail-pf1-x435.google.com with SMTP id g18so11323918pfk.5; Sat, 27 Nov 2021 02:21:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VeBHnO0c51YcTcJD/PbUL/E+2eS7uzkFVs/UolX2A9Q=; b=NFc3Iw1IazF2I2bPTooOT3AMcE+ZOu0EVORgRZlGng/M2tJR0/BsFG2O037DFLQWVQ 9DwnjiOmA9OWo/+ImdAFZ7ds56iMS3KQ5lYf7NwCBQAvQScYf/8e4gF16VOwjELiTX3F jQYCkoGGZIl5xzMRhwVFf4vukyrcFt9eD7VmnIZara/lh3Qblke0EfueFhnpnS4iwW1u 2EhRTKPetWsWqsmox+61Ll5AQfl+/g/xYsG084b2pxw9UfIT5SSbI+O/YSMqSnwVnvCy shkMjPXtgw3fn2JIyu4vrt5XswgESLW3lnxDs8nxrmf5cLrtShu2uGuZrTfEac0RNQoz q3Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VeBHnO0c51YcTcJD/PbUL/E+2eS7uzkFVs/UolX2A9Q=; b=Tm0hzpC9PPwIbu37G1IJkRkVQdc0bHCjlOTZJXSry06oLwB1xfSiG5O9KIEtxpeqWF b9Pj+eVEOi5VJx0fb1iWzai47JGuz8QbAm/xoyCjIYo2quQMeQunB83abuAmbFp0ilV7 wdq8gvLYlqhD7oD/QAvnS8g2B74Nroe9hfm/X03j6/ao2aFkXobt72qNI0LgF8KXwudN Dgnn6b9kEo0Z5LafOIZjow9COk6ERrfvzOtbU6PztIvUG6LCTF/tn57BExwJwLHD3eAm ct0xipwde1UhMd0/0Xk7du+eay0gcxDMyjXfjLAUOe6icIb/32s5hAKWy00wHff4k47l KUsQ== X-Gm-Message-State: AOAM532Nf8LJ/FsVNHg7V4DQ3e9/i1JYoRNoA+9Zvb86HGg+uo7al9Tf LCNku903AFgc7gEkPGwvwc3ehMYpyjZOl/PQnjF6wOOQ X-Google-Smtp-Source: ABdhPJyDYOk6tSbH2ttNedWL4FgwPa96VOPoMAMtVdEhHiJOu1stkD0RGBiK7/o27eOKt8ApyVBhREu2YCtdooPTGBE= X-Received: by 2002:aa7:9af6:0:b0:4a2:fa4a:714c with SMTP id y22-20020aa79af6000000b004a2fa4a714cmr26513989pfp.40.1638008500843; Sat, 27 Nov 2021 02:21:40 -0800 (PST) In-Reply-To: <83zgppzz5z.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::435 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=ideasman42@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:280317 Archived-At: On Sat, Nov 27, 2021 at 9:10 PM Eli Zaretskii wrote: > > > 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. Ah, right. There is an interactive function bound to a key which runs track-mouse ... etc. > > > (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. Okay, that makes sense then, yes - it seems reasonable. Arguments could be made against this: - This could break existing packages that use long running commands and expect the idle timer to run. - Any developer running into this situation in the future (idle timers and track-mouse that is) - might reasonably expect idle timers to activate when the user isn't moving the mouse. However if the change in behavior is acceptable by emacs developers, I'm not pushing against it - just noting some possible down-sides. -- - Campbell