From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eKqiOhmSc2VqggEA9RJhRA:P1 (envelope-from ) for ; Fri, 08 Dec 2023 23:00:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eKqiOhmSc2VqggEA9RJhRA (envelope-from ) for ; Fri, 08 Dec 2023 23:00:58 +0100 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 EEE9E56CFD for ; Fri, 8 Dec 2023 23:00:56 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ddO8QfTJ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702072857; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tcYcUFFNiMV3o0VIlgSivlk3h/mjMA+WT41qZcxvups=; b=ANhNfyNJfrtAyJKk9DAs4WcNiIFg4ZOhqh5iJukwVfUokIZO+YDamhKVuoeRkQLt6i/9EE Dqs2hIlxnCYLg5iZzKlm6PVDczrroYETb8r4yXzxF0LImdlC/m2MrbX7X5hg08mIwccYYC GK+GJpc0ujDWQjV6d9wQ+KLAWlQsTjGy9GdR8r9W0uku7a5A9DCoEl996QQm4JgnX6tKoc JzVAvULdY78raLFp+Gja5LAfI8VtQC6F5HxjY9kuW2Q8Z+30LgL21SWHK9o3UXmythpD0x rRZUawdxpYSdQRBsm7H+TUqJSYe25cxiagSNzFAeHTxSpOzVMjqOXVNScdBfKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702072857; a=rsa-sha256; cv=none; b=ndWGWQlrnn9pJtdmefFBpWUHsoU+6ev1uNaolJP52ZSwk699p+iGibGIAfwlZGKyAJfgcu P436L3eRGsOCVhU1TUVZbw4CwC51nmU3VBgO3t7fte0Apfk0D9xrXcaRsGh0HBlsjCyh5Q agi2mHvytnO06+gW9jvvnv74uGkf3gN7NDE4oqaJxmir0OHfwSVmpt0TuiskIAKBogyi77 vm1d9WNPZ40BxtKvOVl/FCNl3UxDryR+9zGwfEdBOcs3w1FaEWpmyjrCttJKPtH5Qmf5/W FRVLF8wqmX1ySPqXHD95eRBMVWtpMlxnwnLyAbaX8bMQ7Q8WtHuD5m8ET+AVJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ddO8QfTJ; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBit3-0006CA-85; Fri, 08 Dec 2023 16:59:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBit1-0006Bw-DV for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 16:59:55 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBisz-0003ct-3m for emacs-orgmode@gnu.org; Fri, 08 Dec 2023 16:59:55 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 926FD240028 for ; Fri, 8 Dec 2023 22:59:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1702072789; bh=rxvQ6gMpYJrlnRB7+XhTXMZX96Ojtw5utrBJfw8rxuc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ddO8QfTJ2tBSvqXj6sh3SbsGE7l/8Uzv0EpKaFiJd5tHQWvg6d0CFbJ+/SGjvWY9o MkVloKxJ58fW2NDmOoS3BDRKzG42uf5stvzLMHx/18ofXDVIw0hpv8eZSJFusbDuEy Md04YjlKWMcDvDHDhD+RBuIoKsZCRSqXA/Xq/xSEuceNm5clUNLClbUzWHgZzPhBfb hne9xJKJV8UXzRNNsY6rrn3Q+hew0iVcxGVJh1HFysY56KfGStRY9ye9v/qFJW9Py8 w7DG2d/i+KJUuY42e3D2twF5Y0Ro+FgqIXUDIBPrnlqMzKABRj9aQMgfsWrdiNLjzc VG8fVHgqKtKIQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Sn4n10QmRz9rxP; Fri, 8 Dec 2023 22:59:49 +0100 (CET) From: Ihor Radchenko To: John Wiegley Cc: emacs-orgmode@gnu.org Subject: Re: Suggestion for org-agenda-list: pre-open org-agenda-files In-Reply-To: References: Date: Fri, 08 Dec 2023 22:02:52 +0000 Message-ID: <87v898bbeb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.31 X-Spam-Score: -2.31 X-Migadu-Queue-Id: EEE9E56CFD X-Migadu-Scanner: mx11.migadu.com X-TUID: x4Ytf1aG6WEI "John Wiegley" writes: > Right away I discovered one of the reasons I had preferred properties at = the > bottom: When I startup my Emacs and run org-agenda-list, and then hit RET= on > an entry, no folding has been applied to the Org file and thus I see the = full > property block at the beginning of entries (and in my case, they can ofte= n be > quite large). I have to scan down to find the actual text. > > Reading through the code, I found that org-agenda-list calls > org-agenda-get-day-entries on each file in org-agenda-files, which > intentionally disables code folding before opening the file if it isn=E2= =80=99t open > already: > > (defun org-agenda-get-day-entries (file date &rest args) > (let* ((org-startup-folded nil) > =E2=80=A6))) This should actually be redundant because all the agenda commands should (if not, it is a bug) open the necessary buffers when calling `org-agenda-prepare'->`org-agenda-prepare-buffers'. By default, `org-agenda-prepare-buffers' applies initial folding, according to the default nil value of `org-agenda-inhibit-startup'. > My workaround for this is to visit every entry in org-agenda-files before > calling org-agenda-list: > > (require 'org-agenda) > (mapc #=E2=80=99find-file-noselect org-agenda-files) > (call-interactively 'org-agenda-list) ... and `org-agenda-list' does call `org-agenda-prepare'... So, may you dig a bit further and check why `org-agenda-prepare' is not opening the agenda files? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at