emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: errelinaaron@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: `org-capture' loads all the files in `org-directory'
Date: Wed, 20 Jul 2022 15:19:22 +0800	[thread overview]
Message-ID: <87v8rs2qv9.fsf@localhost> (raw)
In-Reply-To: <CAFpY-jAbEL1qgue2eDhjRkwqnqZ5cHHP_L48PMQR6CQLBf2drw@mail.gmail.com>

Noel Errenil <errelinaaron@gmail.com> writes:

> Currently, I'm happy with this behavior. I'll learn how to submit a
> feature request
> anyway in case in the future I feel a need to.

Feature request is nothing but an email with justification why some new
feature will be useful for many users.

> After your first reply earlier, I came to realize that the pop-up
> buffer in which I am
> able to select a template is indeed some kind of agenda view/mode. This can be
> confirmed by looking up the source code. So my original problem indeed had sth
> to do with agenda, not `org-capture'.

Nope. It's just that agenda and capture template selection use similar
menus. The reason why Org opened agenda files was solely related to
collection of all the tags and offering them in the completion dialogue
during capture.

> Then I found my setting of `org-agenda-files' was indeed wrong:
> Sth like:
> (setq org-agenda-files ("~/projects/org/agenda.org"))
>                                      ;; ^^^^^^^^^^^^^^^^^^^^^^^^^^
> empty file at the moment
> will actually make the whole ~/projects/org directory as the agenda source,
> hence all the files under it will be loaded once agenda function is activated.
> I did that, again, because I misunderstood the manual. I should use a
> list for agenda files
> or a plain text file in which I specify agenda files, one per line.

That's one option. Generally, you can check out about the possible
settings for a variable by examining the variable documentation:
<F1> v variable-name <RET>
In your case:
<F1> v org-agenda-files <RET>


      reply	other threads:[~2022-07-20  7:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-16 22:53 `org-capture' loads all the files in `org-directory' Noel Errenil
2022-07-17  8:16 ` Bruno Barbier
2022-07-18  3:25 ` Ihor Radchenko
2022-07-19  4:48   ` Noel Errenil
2022-07-20  7:19     ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8rs2qv9.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=errelinaaron@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).