emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
@ 2018-01-25 18:46 Ken Mankoff
  2018-01-25 20:16 ` Nicolas Goaziou
  0 siblings, 1 reply; 10+ messages in thread
From: Ken Mankoff @ 2018-01-25 18:46 UTC (permalink / raw)
  To: emacs-orgmode


Package: Org mode version 9.1.6 (9.1.6-31-gffa5f3-elpa @
/Users/kdm/.emacs.d/elpa/org-20180122/)

I thought :noexport: tags should be respected on export, but that does
not seem to be the case for iCal export.

I'm using this minimum DEBUG.el and test.org loaded (on OS X) with:

open --new -a EmacsMac.app --args -Q --load ~/.emacs.d/DEBUG.el ~/.emacs.d/test.org


Where DEBUG.el is:

(add-to-list 'load-path "~/.emacs.d/elpa/org-20180122")
(setq org-icalendar-include-todo "all")
(setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-due))
(setq org-icalendar-use-scheduled '(event-if-todo event-if-not-todo todo-start))


And test.org is:

#+BEGIN_SRC emacs-lisp :results value
(setq org-confirm-babel-evaluate nil)
(org-version nil t)
#+END_SRC
#+RESULTS:
: Org mode version 9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)

#+NAME: ical-export
#+BEGIN_SRC emacs-lisp :results value
(org-babel-do-load-languages
 'org-babel-load-languages
 '((shell . t)))
(org-icalendar-export-to-ics)
#+END_SRC
#+RESULTS: ical-export
: test.ics

#+BEGIN_SRC sh :results verbatim :var file=ical-export
cat $file
# echo $file
#+END_SRC
#+RESULTS:
#+begin_example
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//Ken Mankoff//Emacs with Org mode//EN
X-WR-TIMEZONE:CET
X-WR-CALDESC:
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20180125T184234Z
UID:SC-C43D126E-7D91-4998-8340-4CCC8ECA6CCD
DTSTART;VALUE=DATE:20180128
DTEND;VALUE=DATE:20180129
SUMMARY:S: iCal Test Export
CATEGORIES:test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20180125T184234Z
UID:SC-0B6FE94D-6167-4455-9FA3-3AD7F8AF7176
DTSTART;VALUE=DATE:20180128
DTEND;VALUE=DATE:20180129
SUMMARY:S: iCal Test NoExport
CATEGORIES:noexport,test
END:VEVENT
END:VCALENDAR
#+end_example

* iCal Test Export
  SCHEDULED: <2018-01-28 Sun>
* iCal Test NoExport                                               :noexport:
  SCHEDULED: <2018-01-28 Sun>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-25 18:46 Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)] Ken Mankoff
@ 2018-01-25 20:16 ` Nicolas Goaziou
  2018-01-25 21:05   ` Ken Mankoff
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2018-01-25 20:16 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: emacs-orgmode

Hello,

Ken Mankoff <mankoff@gmail.com> writes:

> Package: Org mode version 9.1.6 (9.1.6-31-gffa5f3-elpa @
> /Users/kdm/.emacs.d/elpa/org-20180122/)
>
> I thought :noexport: tags should be respected on export, but that does
> not seem to be the case for iCal export.

IIRC, this is a feature. `org-icalendar-exclude-tags' replaces
`org-export-exclude-tags'. Just set the former to ":noexport:".

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-25 20:16 ` Nicolas Goaziou
@ 2018-01-25 21:05   ` Ken Mankoff
  2018-01-27 18:50     ` Nicolas Goaziou
  0 siblings, 1 reply; 10+ messages in thread
From: Ken Mankoff @ 2018-01-25 21:05 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

Adding "(setq org-icalendar-exclude-tags ":noexport:")" prior to exporting
does not change anything.

On Thu, Jan 25, 2018 at 9:16 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Ken Mankoff <mankoff@gmail.com> writes:
>
> > Package: Org mode version 9.1.6 (9.1.6-31-gffa5f3-elpa @
> > /Users/kdm/.emacs.d/elpa/org-20180122/)
> >
> > I thought :noexport: tags should be respected on export, but that does
> > not seem to be the case for iCal export.
>
> IIRC, this is a feature. `org-icalendar-exclude-tags' replaces
> `org-export-exclude-tags'. Just set the former to ":noexport:".
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 1174 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-25 21:05   ` Ken Mankoff
@ 2018-01-27 18:50     ` Nicolas Goaziou
  2018-01-28  5:41       ` Ken Mankoff
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2018-01-27 18:50 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: Org-mode

Hello,

Ken Mankoff <mankoff@gmail.com> writes:

> Adding "(setq org-icalendar-exclude-tags ":noexport:")" prior to exporting
> does not change anything.

What about

  (setq org-icalendar-exclude-tags '(":noexport:"))

?


Regards,

-- 
Nicolas Goaziou                                                0x80A93738

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-27 18:50     ` Nicolas Goaziou
@ 2018-01-28  5:41       ` Ken Mankoff
  2018-01-28  5:46         ` Ken Mankoff
  0 siblings, 1 reply; 10+ messages in thread
From: Ken Mankoff @ 2018-01-28  5:41 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

Hi Nicolas,

On Sat, Jan 27, 2018 at 7:50 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Ken Mankoff <mankoff@gmail.com> writes:
>
> > Adding "(setq org-icalendar-exclude-tags ":noexport:")" prior to
> exporting
> > does not change anything.
>
> What about
>
>   (setq org-icalendar-exclude-tags '(":noexport:"))
>

Thanks for the hint.

(setq org-icalendar-exclude-tags '("noexport"))

It works without the ':' characters.

Thank you!

  -k.

[-- Attachment #2: Type: text/html, Size: 1102 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-28  5:41       ` Ken Mankoff
@ 2018-01-28  5:46         ` Ken Mankoff
  2018-01-28 12:42           ` Nicolas Goaziou
  0 siblings, 1 reply; 10+ messages in thread
From: Ken Mankoff @ 2018-01-28  5:46 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

On Sun, Jan 28, 2018 at 6:41 AM, Ken Mankoff <mankoff@gmail.com> wrote:

> Hi Nicolas,
>
> On Sat, Jan 27, 2018 at 7:50 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> Hello,
>>
>> Ken Mankoff <mankoff@gmail.com> writes:
>>
>> > Adding "(setq org-icalendar-exclude-tags ":noexport:")" prior to
>> exporting
>> > does not change anything.
>>
>> What about
>>
>>   (setq org-icalendar-exclude-tags '(":noexport:"))
>>
>
> Thanks for the hint.
>
> (setq org-icalendar-exclude-tags '("noexport"))
>
> It works without the ':' characters.
>

BUT a bug still exists. If I export with async:

(org-icalendar-combine-agenda-files t)

Then all entries show up. If I export blocking

(org-icalendar-combine-agenda-files nil)

Then the `exclide-tags` setting is respected.

   -k.

[-- Attachment #2: Type: text/html, Size: 1920 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-28  5:46         ` Ken Mankoff
@ 2018-01-28 12:42           ` Nicolas Goaziou
  2018-01-28 14:09             ` Ken Mankoff
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2018-01-28 12:42 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: Org-mode

> BUT a bug still exists. If I export with async:
>
> (org-icalendar-combine-agenda-files t)
>
> Then all entries show up. If I export blocking
>
> (org-icalendar-combine-agenda-files nil)
>
> Then the `exclide-tags` setting is respected.

Where did you put

  (setq org-icalendar-exclude-tags '("noexport"))

?

Is it accessible from `org-export-async-init-file'?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-28 12:42           ` Nicolas Goaziou
@ 2018-01-28 14:09             ` Ken Mankoff
  2018-01-28 23:48               ` Nicolas Goaziou
  0 siblings, 1 reply; 10+ messages in thread
From: Ken Mankoff @ 2018-01-28 14:09 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

On Sun, Jan 28, 2018 at 1:42 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Where did you put
>
>   (setq org-icalendar-exclude-tags '("noexport"))
>
> ?
>
> Is it accessible from `org-export-async-init-file'?
>

Yes. I'm in my emacs.org config file (or *scratch* buffer). I have the
following settings:

(setq org-icalendar-include-todo "all")
(setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo
todo-due))
(setq org-icalendar-use-scheduled '(event-if-todo event-if-not-todo
todo-start))
(setq org-icalendar-exclude-tags '("noicalexport"))

If I then put the pointer after:
(org-icalendar-combine-agenda-files nil)

And C-x C-e and look at ~/org.ical, it is what I expect. If I change "nil"
to "t" and re-execute that line, it contains items tagged "noexport".

I tried to give an MWE, but perhaps it wasn't well prepared. I'm happy to
debug this via email (I'm pretty sure we're making progress). But if I can
provide a better MWE org file I am happy to do so. Please let me know how
to improve the provided bug report.

Thanks,

  -k.

[-- Attachment #2: Type: text/html, Size: 2134 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-28 14:09             ` Ken Mankoff
@ 2018-01-28 23:48               ` Nicolas Goaziou
  2018-01-29  8:48                 ` Ken Mankoff
  0 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2018-01-28 23:48 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: Org-mode

Hello,

Ken Mankoff <mankoff@gmail.com> writes:

> Yes. I'm in my emacs.org config file (or *scratch* buffer). I have the
> following settings:
>
> (setq org-icalendar-include-todo "all")
> (setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo
> todo-due))
> (setq org-icalendar-use-scheduled '(event-if-todo event-if-not-todo
> todo-start))
> (setq org-icalendar-exclude-tags '("noicalexport"))
>
> If I then put the pointer after:
> (org-icalendar-combine-agenda-files nil)
>
> And C-x C-e and look at ~/org.ical, it is what I expect. If I change "nil"
> to "t" and re-execute that line, it contains items tagged "noexport".

I cannot reproduce it. My minimal config is:

  (require 'ox-icalendar)

  (setq org-icalendar-include-todo "all")
  (setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-due))
  (setq org-icalendar-use-scheduled '(event-if-todo event-if-not-todo todo-start))
  (setq org-icalendar-exclude-tags '("noicalexport"))
  (setq org-agenda-files '("/tmp/bug-ical.org"))
  (setq org-export-async-init-file "~/dev/mini-init.el")

  (org-icalendar-combine-agenda-files t)

where "/tmp/bug-ical.org" is your initial Org document and
"~/dev/mini-init.el" is the minimal config file.

Then generated ics file does not contain the entry with the
"noicalexport" tag.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)]
  2018-01-28 23:48               ` Nicolas Goaziou
@ 2018-01-29  8:48                 ` Ken Mankoff
  0 siblings, 0 replies; 10+ messages in thread
From: Ken Mankoff @ 2018-01-29  8:48 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

Hi Nicolas,

I figured it out!

On Mon, Jan 29, 2018 at 12:48 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Ken Mankoff <mankoff@gmail.com> writes:
>
> I cannot reproduce it. My minimal config is:
>
>   (setq org-export-async-init-file "~/dev/mini-init.el")
>
>
I didn't realize that async spawned a new emacs process and/or didn't have
access to the current config. Once I set up my own async-init-file, it
works.

Thank you!

   -k.

[-- Attachment #2: Type: text/html, Size: 959 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-01-29  8:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-25 18:46 Bug: iCal export does not respect :noexport: tag [9.1.6 (9.1.6-31-gffa5f3-elpa @ /Users/kdm/.emacs.d/elpa/org-20180122/)] Ken Mankoff
2018-01-25 20:16 ` Nicolas Goaziou
2018-01-25 21:05   ` Ken Mankoff
2018-01-27 18:50     ` Nicolas Goaziou
2018-01-28  5:41       ` Ken Mankoff
2018-01-28  5:46         ` Ken Mankoff
2018-01-28 12:42           ` Nicolas Goaziou
2018-01-28 14:09             ` Ken Mankoff
2018-01-28 23:48               ` Nicolas Goaziou
2018-01-29  8:48                 ` Ken Mankoff

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