From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: non-existent agenda file ~/file.txt. [R]emove from list or [A]bort? Date: Mon, 04 Jun 2012 14:58:09 +0200 Message-ID: <80lik3nsim.fsf@somewhere.org> References: <804nr9sqcz.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, Thanks a lot Nick, Fran=C3=A7ois, Bastien... and Carsten who put me on right tracks... "Sebastien Vauban" wrote: > These last days, I've observed that, whenever creating a new Org file (to= be > precise, when saving it), I'm asked: > > non-existent agenda file ~/file.txt. [R]emove from list or [A]bort? > > I'm then forced to answer `R' for the save to be done. I found the responsible: the call to `dmj/org-remove-redundant-tags'[1] in = the `before-save-hook': #+begin_src emacs-lisp ;; make sure that things are clean and always up-to-date (add-hook 'before-save-hook '(lambda () (when (eq major-mode 'org-mode) (dmj/org-remove-redundant-tags) (org-align-all-tags) (org-update-all-dblocks) (org-table-iterate-buffer-tables) ))) #+end_src Without it, the above problem disappears. Any idea on how to get that work done (i.e., removing redundant tags when saving the file), without bringing the problem back to the scene? Best regards, Seb [1] See http://orgmode.org/worg/org-hacks.html#sec-1-7-1 --=20 Sebastien Vauban