From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qC94HhHF02IYEAEAbAwnHQ (envelope-from ) for ; Sun, 17 Jul 2022 10:15:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aPlmHhHF02KUpQAA9RJhRA (envelope-from ) for ; Sun, 17 Jul 2022 10:15:13 +0200 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 5B024A52B for ; Sun, 17 Jul 2022 10:15:12 +0200 (CEST) Received: from localhost ([::1]:53220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCzQk-0007wl-Jx for larch@yhetil.org; Sun, 17 Jul 2022 04:15:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCzPt-0007wa-KU for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 04:14:17 -0400 Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]:25050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCzPr-0003lC-Ns for emacs-orgmode@gnu.org; Sun, 17 Jul 2022 04:14:17 -0400 Received: from tosh-laptop (unknown [IPv6:2a01:e0a:505:3460:1a16:a0c4:3f89:c0d9]) by smtp6-g21.free.fr (Postfix) with ESMTPS id 675F4780521; Sun, 17 Jul 2022 10:14:11 +0200 (CEST) Received: by tosh-laptop (sSMTP sendmail emulation); Sun, 17 Jul 2022 10:16:22 +0200 From: Bruno Barbier To: errelinaaron@gmail.com, emacs-orgmode@gnu.org Subject: Re: `org-capture' loads all the files in `org-directory' In-Reply-To: References: Date: Sun, 17 Jul 2022 10:16:22 +0200 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: softfail client-ip=2a01:e0c:1:1599::15; envelope-from=brubar.cs@gmail.com; helo=smtp6-g21.free.fr X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MISSING_MID=0.497, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action Message-Id: 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658045712; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=KdKxsCrmXfAYfVxjNt/1aqW/k3gBcoaEdYzB2NL65rs=; b=HntqeXyM+/D3ZCEUnPMYxJWslF9f4oGb0aafA2N0s350NOpgfyj5AGmI1mdIFFZ1juBAon 3qiW2Beu8MnetG4a3VCS0GOn1MKF/Vf/IqHSLioCmpUW3qrrN2FSHCoUoMq6qKXxCbfWqN 8xtKvqLvYBIUIUPS5HoEaD62321+WUdLxJBE89w3SG4PeR+vozdRUHGkAA6O/Qmpej/cX0 FGuuIlwAsAWFt7tFrsmYlyDdmrg+OfSi4EASAmmEU6dh2inG8kaoWDeZJLybXFbb/qB+7I 7zCRRr5ewRaYWhs4LQX9IKfGGBcIL+qojBFP1kcYh1k1HqEFLVo8a40++Czgsg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658045712; a=rsa-sha256; cv=none; b=DCKZxCP29qWShz/pBET1orMghHIxF/5EOwm3k6u310I7pDJMicftDC24Qap4bf+30c/Ww/ VDsc+RZt82EblYuRVI+eSL53pjy1Xmv8Pm16Mr0fuYu2eu5x1Mwq/SmrwpZqCLO95X/4wD G5eMZCy23jEb/pxU15erw66owfDUImjWuCh6vYi7vdQh2+kTn9Entec4iuXnSNO36VLv7k lsGr7AuFrteeG+FqFc1KCM/7gk3IcDJ7YPtxkgf1wRhJyrefJAiqcD7XaoId7PbDC0N7a4 y92/ircG2UqkXctAl8vPWcBUh9XNWo7HoZaJ1IBmLq+Ntot/glHW4M8HSfHbUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 1.97 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 5B024A52B X-Spam-Score: 1.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: bpZMml125NLM Noel Errenil writes: > Hello, org community > > I ran into the titled issue and haven't found any solution or explanation: > > First, I start Emacs and there are just a few buffers such as *scratch* and > *Messages*. > > Then, I fire `org-capture', captur a note and `C-c C-c' to save the captured > content. > > Suddenly all the files under ~/projects/org will be loaded into the buffer > list, which confuses me so much. Those that have nothing to do with > capturing or capture-templates are loaded into Emacs, which makes > little sense to me. > FWIW, in my case, org seems to open org files that are necessary to identify the capture target, like when refiling somewhere else. Using `C-c C-c', org does not open other files though, just the targetted one. Cleaning up your org agenda files, if possible, might reduce the number of files org needs to load. (customize-option 'org-agenda-files) Bruno > I'm running Emacs 28.1 on (Gentoo) Linux. I can reproduce this on my > macOS too. > > Currently I have `org-directory' set to `~/projects/org'. My > `org-capture' config is as follows: > > ;; vars > (with-eval-after-load 'org > (setq-default fill-column 80) > (setq > org-deadline-warning-days 0 > org-startup-folded 'content > org-hide-leading-stars t > org-agenda-include-diary t > org-src-fontify-natively t > org-src-preserve-indentation t > org-edit-source-content-indentation 0 > org-indent-indentation-per-level 1 > org-directory "~/projects/org" > org-agenda-files (concat org-directory "/agenda.org") > org-default-notes-file (concat org-directory "/notes.org"))) > > ;; org-capture templates > (setq org-capture-templates > '(("t" "Tasks") > ("td" "With Dealines" entry ; todos->deadline > (file+headline "tasks.org" "Deadlines") > "* TODO %? %^G\nDEADLINE: %T" :kill-buffer t :prepend t) > ("ts" "Scheduled" entry ; todos->scheduled > (file+headline "tasks.org" "TODOS") > "* TODO %? %^G\nSCHEDULED: %T" :kill-buffer t :prepend t) > ;; memos > ("m" "Memo" entry > (file+headline "memo.org" "MEMO") > "* %? %^G\n%U" :kill-buffer t :prepend t) > ;; notes > ("n" "Daily Notes" entry > (file+headline "notes.org" "NOTES") > "* %? %^G\n%U" :kill-buffer t :prepend t) > ;; readings > ("r" "Readings") > ("ra" "Article" entry > (file+headline "readings.org" "ARTICLE") > "* TODO %^{Short title for heading} %^G \nTTL: %^{Long title} > \nSRC: %^{Link} \n%u \nSUM: %^{Quick note?}" > :kill-buffer t) > ("rb" "Book" entry > (file+headline "readings.org" "BOOK") > "* TODO %^{Short title for heading} %^G \nTTL: %^{Long title} > \nSRC: %^{Link} \n%u \nSUM: %^{Quick note?}" > :kill-buffer t))) > > I just expect that only the capture template will be loaded during capturing > and the template buffer should be killed (as config-ed) after capturing. > > What am I doing wrong? Any advice? Thank you so much in advance.