From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ivan Yonchovski Newsgroups: gmane.emacs.devel Subject: Re: Questions about throw-on-input Date: Thu, 07 May 2020 17:28:54 +0300 Message-ID: <875zd76cpl.fsf@gmail.com> References: <87r1vwxktw.fsf@gmail.com> <831rnvly58.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115074"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.7; emacs 27.0.91 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 07 16:29:43 2020 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 1jWhWv-000Tn8-UK for ged-emacs-devel@m.gmane-mx.org; Thu, 07 May 2020 16:29:41 +0200 Original-Received: from localhost ([::1]:56270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWhWv-0006ol-0A for ged-emacs-devel@m.gmane-mx.org; Thu, 07 May 2020 10:29:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWhWG-0005y6-W1 for emacs-devel@gnu.org; Thu, 07 May 2020 10:29:01 -0400 Original-Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:45309) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWhWF-0004Lw-Nx; Thu, 07 May 2020 10:29:00 -0400 Original-Received: by mail-lj1-x241.google.com with SMTP id h4so6526724ljg.12; Thu, 07 May 2020 07:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=OfZGv2HkeRRX0gTfnmOeMFg9RwSTKPSx9tOdGJTre7I=; b=g9pJrKTMmyjA8s8j8bv6oYKF7Y4gyYEmIdrGc/Y2Swm+C01ODmu2PBf74VqTTwQ7cS 9/Z+QUssSZGF3mRNk9gGFQ12lf1STxwkMpFt0yj2JA4InNM6fW0qn7RPu/6kLHLtmR5A CdqMTSuj0VJC6XTBbBTyKuYONY9d+T2ugukwEBHllROmQm6gAk3YPr5SNxH37RHmp4X7 0wEiM8IPvp57rXlD58cQd4s1w8pCzB7uC7bFTlvLRw41dAxQJl85ZLw7l1PjS46QgkZY 2v2A8nl2ff6KrXEg7A3sz4f5AajVfb/ludy06A2b0OQNbJbWkMU8CrLEmq/Gb1eM8NCi XEzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=OfZGv2HkeRRX0gTfnmOeMFg9RwSTKPSx9tOdGJTre7I=; b=JrngiWpIZHmeYvUmVj58b4vAfAfXyEK6uX1CDhirnNt9wNFD/75sh/HCyuTRY+55+h lVOsz/kGz4hM3w8IBqpc5oJtIKPwxAbnbeRDDT4ZzXNlwg91hrWSyTq3L8kIuJ9Ylknm GlzcY3KRjBKYwgcoS1zt0WYQ+APm94HaFmk/V5BqxzV174Q00UlXc7JAj6+8rLgr9tyA hdaMHJ8wisMPiEjoBhwYJlHgkyqVhLeb30MFI0Lk4vEhoZfzpJ0PgptsJbEGfauWs9Vt jVt1N5a4w1BzbXMMnPfBmzg/1UWuOlCugo3eVYIRTg5hq9LuZoYkFpgEIQpIhm1lQVos qe+A== X-Gm-Message-State: AGi0PuaiyN4E6brTUiHAxDgCZoTsPK/KLvfCyK0b/KbjiXaATZ0qp3UN S0W6C9Efc5qg3zMK2tI27jrFlh9RDIU= X-Google-Smtp-Source: APiQypLabCM71IJ1q9Wqi2quiyIST9FruXl6F5t0kMh5QtlaLjSpFyQ6GectyhUkuAkz1wrqvoFn0A== X-Received: by 2002:a2e:9018:: with SMTP id h24mr8372815ljg.217.1588861737182; Thu, 07 May 2020 07:28:57 -0700 (PDT) Original-Received: from kyoncho-H87-D3H ([2a00:4802:28d:1200:790c:d794:f15:66ba]) by smtp.gmail.com with ESMTPSA id j22sm4085891lfg.96.2020.05.07.07.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 07:28:55 -0700 (PDT) In-reply-to: <831rnvly58.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::241; envelope-from=yyoncho@gmail.com; helo=mail-lj1-x241.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:249180 Archived-At: Hi Eli, Thank you, this solved my issue. > Why do you need to interrupt an idle timer like that? The usual way > of doing this is not to call expensive functions in an idle timer, and > if you have a lot of processing, divide them into small enough chunks > and do it piecemeal. That's what jit-stealth font-lock does, for > example. I am playing with the idea for a function which will be able stop right after there is user input and it will continue from where it has been stopped preserving as much from what already has processed/calculated. Thanks, Ivan