From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Q: How to programatically terminate repeat-mode Date: Sun, 02 Oct 2022 17:28:28 -0700 Message-ID: References: <86r10jghs7.fsf@mail.linkov.net> <86czba2jib.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5985"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 03 02:29:41 2022 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 1of9L3-0001QK-2b for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 02:29:41 +0200 Original-Received: from localhost ([::1]:41040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of9L1-0001H0-TD for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 20:29:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of9Jz-0000bW-3n for emacs-devel@gnu.org; Sun, 02 Oct 2022 20:28:35 -0400 Original-Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:44761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of9Jx-0003A8-HO for emacs-devel@gnu.org; Sun, 02 Oct 2022 20:28:34 -0400 Original-Received: by mail-pl1-x62b.google.com with SMTP id x6so3084316pll.11 for ; Sun, 02 Oct 2022 17:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=0/ErQes4qusQ92B5vRHts4MzmreEQXpsYOVI/rtw0oA=; b=OSijNioVZc3/syjwTdIfS9hb0e4iW8O5b6bWQ0HrgJUXyleCusPAyY0cf75SObj2dZ UeXplVj5lHGi9L4b7H4714e+EAvmEcWtLKrjBfot+3tif+0ysSXfw8cSLnyIHgX/3q7P qX6zxXjzQtjw3TH5uBaxRKGYvMsRm0Gv+iAU8S4Cg6KrjK0jo9y0mIGYwraHqxWUhG/i 9V+lE/2z8oxRkDXBrzwXcOLbuIQqjYfG35HqurFFi4k3DJvT2pvr0Czj43bG3YrJFjhC NRIe7QKhXQyEyU7WO3gmcAo8UNgtkD+V+VbKYJXjwKkgSnznnZxSC+SenZxfrb+0CET4 92/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=0/ErQes4qusQ92B5vRHts4MzmreEQXpsYOVI/rtw0oA=; b=unLKwqcXa+5ydfBkzOrBSfXP8zOOS4EltL9ob36NA5/Vde4wOC652MSyC9YtfAmw1M LEi7bdmI5+AOd208hVMRxzbvNuwb4u9fBKjatt13VGY64CiE2Kaw/agY/74m9eydYzFh NUeFdEMpJruA9fT80+p5ibvQnOyl90yfO0EP7jGdU76drmarExSMECm5QsDRsQubMUex HqfDd1+DQs7btsDXOrULygsASe79osyBNuzbzEC8W6fx/SOmIMJukIeUTCvMhbRnaNWx F1mdGpLpVrGU9dAWuX1Ok9z3Q6t2XaY7LaMbP4AHhUFpGcDxizy5bj37JSHJ227E65Hn cnjg== X-Gm-Message-State: ACrzQf0Oyq6hCTtmHvuh/Ydyx8ixLIDe3NeANpkgk8WzKK/oejWaXxxO JYcsQRIQy63KRqVw6VG+GtQWOvKksbQ7hg== X-Google-Smtp-Source: AMsMyM7haxxNgGYMbFEKJpNe2PiRSk3yX6TY8pTOLFXOW9kueyThd8xBLsSJqsv/S9vXLL4DBiUlzQ== X-Received: by 2002:a17:902:ec85:b0:178:8a69:45fb with SMTP id x5-20020a170902ec8500b001788a6945fbmr19505515plg.130.1664756911596; Sun, 02 Oct 2022 17:28:31 -0700 (PDT) Original-Received: from raman9 (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id a184-20020a624dc1000000b0053e62b6fd22sm5935597pfb.126.2022.10.02.17.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 17:28:30 -0700 (PDT) In-Reply-To: <86czba2jib.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 02 Oct 2022 21:03:28 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=raman@google.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham 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:296718 Archived-At: Juri Linkov writes: Replacing the earlier (push 7 unread-command-events) with=20 (when repeat-exit-timer (timer-set-idle-time repeat-exit-timer 0)) in my disable-repeat function that I called from the process-sentinel of the media player -- with check for exit as the guard condition has no effect and the repeat remains in effect. >> However I needed to explicitly use (push 7 unread-command-events) >> rather than the more readable (push repeat-exit-key >> unread-command-events) >> >> since unread-command-events doesn't like having a vector pushed onto it. > > Actually, the most reliable solution would be to use repeat-exit-timer > because the timer function should run the repeat exit function. > I don't know if there is a function to run the timer function immediately. > The only way that I found is to change the timer's time to 0 seconds, > then the existing timer will fire immediately. For example: > > (when repeat-exit-timer > (timer-set-idle-time repeat-exit-timer 0)) --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8