emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* can't export custom time stamps
@ 2011-02-28 20:19 Daniel Clemente
  2011-03-11  9:10 ` Daniel Clemente
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2011-02-28 20:19 UTC (permalink / raw)
  To: org-mode Mailinglist


Hi, I cannot export custom time stamps anymore. Maybe it's due to BIND, maybe due to some other change. I attach some tests and instructions in case someone has a similar problem.

Thanks





-----8<--------------------------------------
#+TITLE: Custom time stamps don't work
#+DATE: seen today with Org-mode version 7.4 (release_7.4.553.g83b7), Emacs 24.0.50.1 from december 2010

Open this file and use =C-c e H=. Review and accept the usage of the 2 BIND values in this buffer. See timestamps in HTML output.

# This doesn't work (the time stamps remain intact: &lt;2011-02-28&gt; instead of 28.m2.2011):
#
#+BIND: org-time-stamp-custom-formats ("<%d.m%m.%Y>" . "<%d.m%m.%Y %H:%M>")
# An invalid value produces no error; try this:   #+BIND: org-time-stamp-custom-formats 42
#
# I think this was needed:
#+BIND: org-display-custom-times t
#
# This works if activated: it shows the custom time stamp while editing (but not on export)
# #+STARTUP: customtime



One timestamp: <2011-02-28 lun>. No

Another:

<2011-02-28 lun>

-----8<--------------------------------------

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

* Re: can't export custom time stamps
  2011-02-28 20:19 can't export custom time stamps Daniel Clemente
@ 2011-03-11  9:10 ` Daniel Clemente
  2011-03-13 19:49   ` David Maus
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Clemente @ 2011-03-11  9:10 UTC (permalink / raw)
  To: org-mode Mailinglist


I tracked down this problem to this commit:


 163cd58ffd6461c98a96b1b63a3cf082b2825a52 is the first bad commit
 commit 163cd58ffd6461c98a96b1b63a3cf082b2825a52
 Author: David Maus <dmaus@ictsoc.de>
 Date:   Fri Jan 14 06:37:52 2011 +0100

     Handle timestamps after handling links



El Mon, 28 Feb 2011 21:19:27 +0100 Daniel Clemente va escriure:
> 
> 
> Hi, I cannot export custom time stamps anymore. Maybe it's due to BIND, maybe due to some other change. I attach some tests and instructions in case someone has a similar problem.
> 
> Thanks
> 
> 
> 
> 
> 
> -----8<--------------------------------------
> #+TITLE: Custom time stamps don't work
> #+DATE: seen today with Org-mode version 7.4 (release_7.4.553.g83b7), Emacs 24.0.50.1 from december 2010
> 
> Open this file and use =C-c e H=. Review and accept the usage of the 2 BIND values in this buffer. See timestamps in HTML output.
> 
> # This doesn't work (the time stamps remain intact: &lt;2011-02-28&gt; instead of 28.m2.2011):
> #
> #+BIND: org-time-stamp-custom-formats ("<%d.m%m.%Y>" . "<%d.m%m.%Y %H:%M>")
> # An invalid value produces no error; try this:   #+BIND: org-time-stamp-custom-formats 42
> #
> # I think this was needed:
> #+BIND: org-display-custom-times t
> #
> # This works if activated: it shows the custom time stamp while editing (but not on export)
> # #+STARTUP: customtime
> 
> 
> 
> One timestamp: <2011-02-28 lun>. No
> 
> Another:
> 
> <2011-02-28 lun>
> 
> -----8<--------------------------------------
> 

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

* Re: Re: can't export custom time stamps
  2011-03-11  9:10 ` Daniel Clemente
@ 2011-03-13 19:49   ` David Maus
  2011-03-14  6:02     ` Daniel Clemente
  0 siblings, 1 reply; 4+ messages in thread
From: David Maus @ 2011-03-13 19:49 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: org-mode Mailinglist

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

At Fri, 11 Mar 2011 10:10:08 +0100,
Daniel Clemente wrote:
>
>
> I tracked down this problem to this commit:
>
>
>  163cd58ffd6461c98a96b1b63a3cf082b2825a52 is the first bad commit
>  commit 163cd58ffd6461c98a96b1b63a3cf082b2825a52
>  Author: David Maus <dmaus@ictsoc.de>
>  Date:   Fri Jan 14 06:37:52 2011 +0100
>
>      Handle timestamps after handling links

Thanks for tracking this down.  I just pushed two commits that should
fix the problem.

The first reverts

commit ca69b556241ae904c5f291c98a6453f4ce830557
Author: Jason Dunsmore <emacs-orgmode@dunsmor.com>
Date:   Tue Feb 1 17:46:57 2011 +0100

    Fix bug when exporing inactive timestamps.

    * org-html.el (org-html-handle-time-stamps): fix bug when
    exporing inactive timestamps.

This commit addressed the problem introduced by
163cd58ffd6461c98a96b1b63a3cf082b2825a52 but in a way that is
incompatible with the "right" fix.

My faulty commit not just changed the order of handling links and
handling timestamps but also prevented the left angle bracket of an
active timestamp from beeing protected from conversion to a HTML
character entity (i.e. &lt;).

The (hopefully) final fix moves expanding character entities after
handling links and timestamps.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

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

* Re: Re: can't export custom time stamps
  2011-03-13 19:49   ` David Maus
@ 2011-03-14  6:02     ` Daniel Clemente
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Clemente @ 2011-03-14  6:02 UTC (permalink / raw)
  To: David Maus; +Cc: org-mode Mailinglist


Thanks, this solves the timestamp exporting issue.


-- Greetings,
Daniel

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

end of thread, other threads:[~2011-03-14  6:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-28 20:19 can't export custom time stamps Daniel Clemente
2011-03-11  9:10 ` Daniel Clemente
2011-03-13 19:49   ` David Maus
2011-03-14  6:02     ` Daniel Clemente

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