From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aBhsBEdjUl+BCQAA0tVLHw (envelope-from ) for ; Fri, 04 Sep 2020 15:54:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QC48AEdjUl8VbQAAB5/wlQ (envelope-from ) for ; Fri, 04 Sep 2020 15:54:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7EEFF9403A7 for ; Fri, 4 Sep 2020 15:54:46 +0000 (UTC) Received: from localhost ([::1]:49936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEE33-0000Jh-BX for larch@yhetil.org; Fri, 04 Sep 2020 11:54:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEDxj-00012D-Hu for emacs-orgmode@gnu.org; Fri, 04 Sep 2020 11:49:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44863) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEDxj-0008HL-8y; Fri, 04 Sep 2020 11:49:15 -0400 Received: from [2a01:e35:2fe1:f780:8527:1161:6222:31b3] (port=48998 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kEDxi-0007mq-Sm; Fri, 04 Sep 2020 11:49:15 -0400 Received: by guerry (Postfix, from userid 1000) id BA8C81A60D4F; Fri, 4 Sep 2020 17:49:12 +0200 (CEST) From: Bastien To: numbchild@gmail.com Subject: Re: [Discuss] separate (recenter window-line) out of org-agenda-redo Organization: GNU References: Date: Fri, 04 Sep 2020 17:49:12 +0200 In-Reply-To: (numbchild@gmail.com's message of "Mon, 27 Jul 2020 12:27:23 +0800") Message-ID: <87wo19iltz.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: V3BB0jlKtgqT Hi, "numbchild@gmail.com" writes: > I try to add an idle timer to auto refresh org agenda views. > > Here is what I code: > > #+begin_src emacs-lisp > ;;; auto refresh `*Org Agenda*' buffer > (defun my/org-agenda-auto-refresh () > =C2=A0 "Rebuild all agenda views buffers." > =C2=A0 (org-agenda-redo-all t)) > > (run-with-idle-timer (* 60 20) t #'my/org-agenda-auto-refresh) > #+end_src > > But I got error: > > #+begin_example > Error running timer =E2=80=98my/org-agenda-auto-refresh=E2=80=99: (error > "=E2=80=98recenter=E2=80=99ing a window that does not display current-buf= fer.") > #+end_example I pushed fd28d0ac which should avoid this error. Thanks, --=20 Bastien