emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Harri Kiiskinen <harri.kiiskinen@utu.fi>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: ICal export, filetags and tag inheritance
Date: Sat, 16 May 2009 19:39:33 +0200	[thread overview]
Message-ID: <84A7D316-C607-4118-A466-543448A31D06@gmail.com> (raw)
In-Reply-To: <20090515.120918.200772912.harri.kiiskinen@utu.fi>

Hi Harri,

this was a missing save-match-data around the call
to `org-get-tags-at'.  The reason why you get this strange
behavior is that a failed matching attempt preserves the
old match data, so if there was no successful regexp match,
everything was well.

Wrapping that call with save-match-data
would have fixed the problem, but it turns out that it is not
necessary at all to construct the tags list because the loop
has already checked for the archiving status earlier.

Fixed now, thanks.

- Carsten

On May 15, 2009, at 11:09 AM, Harri Kiiskinen wrote:

> There is an elusive bug in the ICal export functions. To demonstrate
> it, open this file, allow for the use of the local variable, and run
> 'org-export-icalendar-this-file'. What I get is the message "Wrong
> type argument: stringp, nil"
>
> -----------------------------
> #+FILETAGS: test
> * TODO header
>
> # Local Variables:
> # org-use-tag-inheritance: "^[t]"
> # End:
> -----------------------------
>
> Now, the funny thing is, that if you change the filetag from "test" to
> "est", close the file, and open it again, the file will be exported
> fine! It seems, that if the filetag does match the regular expression
> in org-use-tag-inheritance, then the result is error.
>
> There's something quite fishy here, so I'm not sure I have managed to
> cover all the cases, but after many weeks, I finally managed to track
> it down to this.
>
> Best,
>
> Harri K.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2009-05-16 17:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15  9:09 Bug: ICal export, filetags and tag inheritance Harri Kiiskinen
2009-05-16 17:39 ` Carsten Dominik [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:
  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=84A7D316-C607-4118-A466-543448A31D06@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=harri.kiiskinen@utu.fi \
    /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).