emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: non-existent agenda file ~/file.txt. [R]emove from list or [A]bort?
Date: Mon, 04 Jun 2012 14:58:09 +0200	[thread overview]
Message-ID: <80lik3nsim.fsf@somewhere.org> (raw)
In-Reply-To: 804nr9sqcz.fsf@somewhere.org

Hello,

Thanks a lot Nick, François, 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

-- 
Sebastien Vauban

  parent reply	other threads:[~2012-06-04 12:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-21 11:52 non-existent agenda file ~/file.txt. [R]emove from list or [A]bort? Sebastien Vauban
2012-05-21 13:26 ` Bastien
2012-05-21 15:28   ` François Pinard
2012-05-21 15:43     ` Nick Dokos
2012-05-21 16:05       ` Nick Dokos
2012-06-04 12:58 ` Sebastien Vauban [this message]
2012-06-04 13:35   ` Nick Dokos
2012-06-04 14:29     ` Sylvain Rousseau
2012-06-04 14:34     ` Sebastien Vauban
2012-06-04 16:13       ` Nick Dokos
2012-06-04 16:45         ` Sebastien Vauban

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=80lik3nsim.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).