emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: non-existent agenda file ~/file.txt. [R]emove from list or [A]bort?
Date: Mon, 04 Jun 2012 09:35:54 -0400	[thread overview]
Message-ID: <24826.1338816954@alphaville> (raw)
In-Reply-To: Message from "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> of "Mon, 04 Jun 2012 14:58:09 +0200." <80lik3nsim.fsf@somewhere.org>

Sebastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:

> 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?
> 

Did you get a backtrace? I don't think you posted one here.  I looked at
the function you fingered and there is nothing in there to raise my
hackles (but maybe I'm blind: it wouldn't be the first time).  A
backtrace would be *much* more useful imo.

Nick

  reply	other threads:[~2012-06-04 13:36 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
2012-06-04 13:35   ` Nick Dokos [this message]
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=24826.1338816954@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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).