From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii Subject: bug#22734: 24.5; do not leave opened org-agenda-files on org-agenda-list, etc. Date: Thu, 18 Feb 2016 19:04:14 +0200 Message-ID: <83twl6t0fl.fsf@gnu.org> References: <87y4aidrna.fsf@gavenkoa.example.com> Reply-To: Eli Zaretskii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWS0o-00054u-CV for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 12:05:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWS0k-0006Xq-Lg for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 12:05:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:36031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWS0k-0006Xm-IM for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 12:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aWS0k-0006Yk-CK for emacs-orgmode@gnu.org; Thu, 18 Feb 2016 12:05:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87y4aidrna.fsf@gavenkoa.example.com> (message from Oleksandr Gavenko on Thu, 18 Feb 2016 16:23:05 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Oleksandr Gavenko Cc: 22734@debbugs.gnu.org > From: Oleksandr Gavenko > Date: Thu, 18 Feb 2016 16:23:05 +0200 > > In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.2) > of 2015-10-24 on trouble, modified by Debian > Windowing system distributor `The X.Org Foundation', version 11.0.11702000 > System Description: Debian GNU/Linux testing (stretch) > > Recently I changed workflow with org-mode and trapped into issue which already > described: > > http://emacs.stackexchange.com/questions/5741/do-not-keep-org-agenda-files-open-after-generating-agenda/ > > Previously I use: > > * NOTE.org as main storage for free form notes edited by hand with key > binding to quick access to this file > > * TODO.org for `org-remember' or > (lambda () (interactive) (org-capture nil "t")) > > TODO.org I visit only via `C-c a a'. But NOTE.org become unmaintainable with > size greater then 1 MiB of plain text. > > So I split this file into several files by easy distinguished topics, like > LEARNING.org, purchases.org, emacs-python.org, linux.org, vps.org, ... > > Instead of maintaining list of possible names I have specified directory: > > (setq org-agenda-file-regexp "\\`[^.#].*[^_]\\.org\\'" > org-agenda-files (list org-directory)) > > I happy with this setup because I can quickly find necessary topic via > switching to buffer (by IDO via meaningful file name) and search (by C-s) > performed in limited space. > > All schedules available via `C-c a a' across all .org files. > > But now I have a lot of opened unused .org files after `C-c a a' which I > should kill when they appear during buffer switches. > > The right behavior is to preserve opened only files that already was opened > and kill other files. Shouldn't this be reported to the Org folks? It sounds like a purely Org issue.