mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:37:51 +00:00
Inherit TIMEZONE and LOCATION properties in iCalendar export
* lisp/ox-icalendar.el (org-icalendar-entry): Both properties now optionally inherit, depending on value of `org-use-property-inheritance'. * doc/org.texi: Mention change.
This commit is contained in:
parent
42458e682d
commit
7973ec1057
|
@ -14165,7 +14165,7 @@ and write it to @code{org-icalendar-combined-agenda-file} file name.
|
||||||
@cindex property, TIMEZONE
|
@cindex property, TIMEZONE
|
||||||
The iCalendar export back-end includes SUMMARY, DESCRIPTION, LOCATION and
|
The iCalendar export back-end includes SUMMARY, DESCRIPTION, LOCATION and
|
||||||
TIMEZONE properties from the Org entries when exporting. To force the
|
TIMEZONE properties from the Org entries when exporting. To force the
|
||||||
back-end to inherit the LOCATION property, configure the
|
back-end to inherit the LOCATION and TIMEZONE properties, configure the
|
||||||
@code{org-use-property-inheritance} variable.
|
@code{org-use-property-inheritance} variable.
|
||||||
|
|
||||||
When Org entries do not have SUMMARY, DESCRIPTION and LOCATION properties,
|
When Org entries do not have SUMMARY, DESCRIPTION and LOCATION properties,
|
||||||
|
|
|
@ -106,6 +106,9 @@ You can use =ob-scala.el= as packaged in scala-mode, available from the
|
||||||
MELPA repository.
|
MELPA repository.
|
||||||
|
|
||||||
** New features
|
** New features
|
||||||
|
*** iCalendar export uses inheritance for TIMEZONE and LOCATION properties
|
||||||
|
Both these properties can be inherited during iCalendar export,
|
||||||
|
depending on the value of ~org-use-property-inheritance~.
|
||||||
*** iCalendar export respects a TIMEZONE property
|
*** iCalendar export respects a TIMEZONE property
|
||||||
Set the TIMEZONE property on an entry to specify a time zone for that
|
Set the TIMEZONE property on an entry to specify a time zone for that
|
||||||
entry only during iCalendar export. The property value should be
|
entry only during iCalendar export. The property value should be
|
||||||
|
|
|
@ -537,7 +537,9 @@ inlinetask within the section."
|
||||||
(org-export-data
|
(org-export-data
|
||||||
(org-element-property :title entry) info))))
|
(org-element-property :title entry) info))))
|
||||||
(loc (org-icalendar-cleanup-string
|
(loc (org-icalendar-cleanup-string
|
||||||
(org-element-property :LOCATION entry)))
|
(org-export-get-node-property
|
||||||
|
:LOCATION entry
|
||||||
|
(org-property-inherit-p "LOCATION"))))
|
||||||
;; Build description of the entry from associated section
|
;; Build description of the entry from associated section
|
||||||
;; (headline) or contents (inlinetask).
|
;; (headline) or contents (inlinetask).
|
||||||
(desc
|
(desc
|
||||||
|
@ -553,7 +555,9 @@ inlinetask within the section."
|
||||||
org-icalendar-include-body))))
|
org-icalendar-include-body))))
|
||||||
(org-icalendar-include-body (org-trim contents)))))))
|
(org-icalendar-include-body (org-trim contents)))))))
|
||||||
(cat (org-icalendar-get-categories entry info))
|
(cat (org-icalendar-get-categories entry info))
|
||||||
(tz (org-element-property :TIMEZONE entry)))
|
(tz (org-export-get-node-property
|
||||||
|
:TIMEZONE entry
|
||||||
|
(org-property-inherit-p "TIMEZONE"))))
|
||||||
(concat
|
(concat
|
||||||
;; Events: Delegate to `org-icalendar--vevent' to generate
|
;; Events: Delegate to `org-icalendar--vevent' to generate
|
||||||
;; "VEVENT" component from scheduled, deadline, or any
|
;; "VEVENT" component from scheduled, deadline, or any
|
||||||
|
|
Loading…
Reference in a new issue