From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sIFrNYt6H18jYQAA0tVLHw (envelope-from ) for ; Tue, 28 Jul 2020 01:08:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QDkjMYt6H1/pVgAAbx9fmQ (envelope-from ) for ; Tue, 28 Jul 2020 01:08:27 +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 541E89403EE for ; Tue, 28 Jul 2020 01:08:27 +0000 (UTC) Received: from localhost ([::1]:60462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0E6T-0003Ix-An for larch@yhetil.org; Mon, 27 Jul 2020 21:08:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0E5m-00035s-I3 for emacs-orgmode@gnu.org; Mon, 27 Jul 2020 21:07:42 -0400 Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]:39556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0E5k-0001eF-Kw for emacs-orgmode@gnu.org; Mon, 27 Jul 2020 21:07:42 -0400 Received: by mail-vs1-xe2e.google.com with SMTP id a17so9310075vsq.6 for ; Mon, 27 Jul 2020 18:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x1UOj+bRN0F0ds4wb77UGI1eA6wWuD4aibrIyz7QpCI=; b=cSgnBLdK6yMLXkk0QfQA9yb5mLB2nfgF8w7+TqOQ6XnX4rbCD5W0mpCKc//7Uq2WmH fNik5yVn78RrC1camhjmnHhzhz5x98TRcQCtl+8izFuvdunnP+lXp84lfcy4Medu7PuB 8lleuJkxyJPJTbzsJvfQKCxCYKXY9u8ChY1YmPVlkWxZreE962bWC+2Q+xT7OUXwiabd s1Yekf1mhvinolk70Cml6FmywjvGCahLGuGiiXCuRlCkXNzk/ijb8ejAC+TSsP56k3OX D1H9AmDVFKoVzJEhw3uVZru0OB9CfKJ9oZRI61Z5fTFAJo3wDw6UWVFsnyVgNmBcCX0O agew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x1UOj+bRN0F0ds4wb77UGI1eA6wWuD4aibrIyz7QpCI=; b=RQ6Rq2kvqd4PX2sEE+EhTNpcHAHphZV9DnYflqCbuxzZ8Mgc/SVBr78hSied0IUttK jIRkka9Wgf5yS59NW7suiN7ySxWJjVFPQ8OUmsoCC8lWLzlOmm8h+nrVqOusB9p9wQiR 7wpXrtMJ+u6rR65vSelBen4CpWFynkqovozDQNcbtKzoh3BtSkyrLblqtMDPlbg5zFR4 i7zCbnrMBDfxumvAfs06yuQSPG0KuhNPJPnxq14dj97IrFaj9iPKxOrnm+bPAj0b6daV IMnVYIFmRiQ6XlAgpzZaIcPIUtFj8X4GFQEQiIBbsPHFsFygj76VFDz3svuL7Yn8iXtD Pk2w== X-Gm-Message-State: AOAM530A2+GSgbArnc4jpBWXOm2AKfui9FGMQJpu373OezwSVAavcCPB zlNDFHeD30VKAvY26j6z+zoYEXqg1eoJxOjbBQ== X-Google-Smtp-Source: ABdhPJx7+a7Ox+O4BKVDh+Q/TXa9eeB2d7kJm7XdgsCn4RUbhJmZUCIJhRWfrO3lMbz+eNyaR1gTaYbVdVTilhEtmGk= X-Received: by 2002:a05:6102:53c:: with SMTP id m28mr18055302vsa.118.1595898459310; Mon, 27 Jul 2020 18:07:39 -0700 (PDT) MIME-Version: 1.0 References: <87blk17646.fsf@gmail.com> In-Reply-To: <87blk17646.fsf@gmail.com> From: "numbchild@gmail.com" Date: Tue, 28 Jul 2020 09:07:12 +0800 Message-ID: Subject: [Help needed] Re: [Discuss] separate (recenter window-line) out of org-agenda-redo To: Marco Wahl Content-Type: multipart/alternative; boundary="000000000000c3cf3805ab76100e" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2e; envelope-from=numbchild@gmail.com; helo=mail-vs1-xe2e.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=pass header.d=gmail.com header.s=20161025 header.b=cSgnBLdK; dmarc=pass (policy=none) header.from=gmail.com; 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: 0.29 X-TUID: nkCJB1a4uoZE --000000000000c3cf3805ab76100e Content-Type: text/plain; charset="UTF-8" The `recenter` is useful for keeping position. I checked docstring of `recenter`, have no clue how to implement a better solution. I also thinked about ways like `with-current-buffer` etc. But can get around the `recenter`. Does anybody have any idea? [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Mon, Jul 27, 2020 at 3:46 PM Marco Wahl wrote: > "numbchild@gmail.com" writes: > > [...] > > > I dive into source code of ~org-agenda-redo~ function. > > Found this error is caused by ~(recenter window-line)~. > > > > I'm thinking what about to separate this code out? So function > > ~org-agenda-redo~ can be used to non-interactive usage? > > My gut feeling says this is a good idea. > > Do you have a concrete implementation yet? > > > Best regards, > -- > Marco > > --000000000000c3cf3805ab76100e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The `recenter` is useful for keeping posi= tion. I checked docstring of `recenter`, have no clue how to implement a be= tter solution. I also thinked about ways like `with-current-buffer` etc. Bu= t can get around the `recenter`.

Does anybody have any i= dea?

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 4= 7C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B= 36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


On Mon, Jul 27, 2020 at 3:46 PM Marco Wahl <marcowahlsoft@gmail.com> wrot= e:
"numbchild@gmail.com&q= uot; <numbchild= @gmail.com> writes:

[...]

> I dive into source code of ~org-agenda-redo~ function.
> Found this error is caused by ~(recenter window-line)~.
>
> I'm thinking what about to separate this code out? So function
> ~org-agenda-redo~ can be used to non-interactive usage?

My gut feeling says this is a good idea.

Do you have a concrete implementation yet?


Best regards,
--
Marco

--000000000000c3cf3805ab76100e--