From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-agenda-list: call recenter only when buffer is visible Date: Thu, 05 Apr 2018 16:46:54 +0200 Message-ID: <87a7uh4so1.fsf@nicolasgoaziou.fr> References: <87370c2aiz.fsf@killashandra.ballybran.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f55pM-0007wE-OX for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 04:37:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f55pI-0001S6-Qq for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 04:37:32 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:59469) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f55pI-0001Q5-L4 for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 04:37:28 -0400 In-Reply-To: <87370c2aiz.fsf@killashandra.ballybran.fr> ("Pierre =?utf-8?Q?T=C3=A9choueyres=22's?= message of "Wed, 04 Apr 2018 00:24:52 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Pierre =?utf-8?Q?T=C3=A9choueyres?= Cc: emacs-orgmode@gnu.org Hello, Pierre T=C3=A9choueyres writes: > Hello org's developers, > > I'm trying to correct the package `org-alert' > (https://github.com/spegoraro/org-alert) in order to not interfer with > the org-agenda buffer. > > I've tried to call `org-agenda-list' inside a temp buffer. This could > work but the call to `recenter' throw an error which defeat the purpose > of temp buffer. > > So could it be possible to apply the attached patch inside the > maintenance branch ? I see the unconditionnal call to `recenter' more as > an bug than a feature. Applied. Thank you. Regards, --=20 Nicolas Goaziou