all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-timestamp-change and timezone
@ 2016-04-19  6:22 Cédric Chépied
  2016-04-19 14:29 ` Eli Zaretskii
  2016-04-20  7:11 ` bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil) Paul Eggert
  0 siblings, 2 replies; 6+ messages in thread
From: Cédric Chépied @ 2016-04-19  6:22 UTC (permalink / raw)
  To: emacs-devel

Hi,

Since a couple of days I can't use org-timestamp-change anymore, I got this
error:

setq: Invalid time zone specification: (nil nil nil)

I "fixed" it with this patch but I don't know what I'm doing cause my timezone
is always (nil nil nil) and the encode-time function only wants 'nil'. I hope
this will help people to fix the problem.

Regards,
--
Cédric Chépied
<cedric.chepied@gmail.com>



From 5ce4a6e5ed72bf5dd8ec6517119fc03c612e2cfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Ch=C3=A9pied?= <cedric.chepied@areva.com>
Date: Tue, 19 Apr 2016 08:12:40 +0200
Subject: [PATCH] Fix timezone in org-timestamp-change

---
 lisp/org/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 3abf627..0e312b2 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -17460,7 +17460,7 @@ When SUPPRESS-TMP-DELAY is non-nil, suppress delays like \"--2d\"."
 			 (+ (if (eq org-ts-what 'day) n 0)    (nth 3 time0))
 			 (+ (if (eq org-ts-what 'month) n 0)  (nth 4 time0))
 			 (+ (if (eq org-ts-what 'year) n 0)   (nth 5 time0))
-			 (nthcdr 6 time0)))
+			 (nth 6 time0)))
       (when (and (member org-ts-what '(hour minute))
 		 extra
 		 (string-match "-\\([012][0-9]\\):\\([0-5][0-9]\\)" extra))
-- 
2.8.0



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

* Re: org-timestamp-change and timezone
  2016-04-19  6:22 org-timestamp-change and timezone Cédric Chépied
@ 2016-04-19 14:29 ` Eli Zaretskii
  2016-04-20  7:11 ` bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil) Paul Eggert
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2016-04-19 14:29 UTC (permalink / raw)
  To: Cédric Chépied; +Cc: emacs-devel

> Date: Tue, 19 Apr 2016 08:22:49 +0200
> From: Cédric Chépied <cedric.chepied@gmail.com>
> 
> Since a couple of days I can't use org-timestamp-change anymore, I got this
> error:
> 
> setq: Invalid time zone specification: (nil nil nil)

This is bug#23299.  Some Org developer needs to look at it, IMO.



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

* bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil)
  2016-04-19  6:22 org-timestamp-change and timezone Cédric Chépied
  2016-04-19 14:29 ` Eli Zaretskii
@ 2016-04-20  7:11 ` Paul Eggert
  2016-05-01  7:04   ` Fwd: " Marcin Borkowski
  1 sibling, 1 reply; 6+ messages in thread
From: Paul Eggert @ 2016-04-20  7:11 UTC (permalink / raw)
  To: Peter Münster; +Cc: 23299-done, Cédric Chépied

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

Thanks for reporting the problem. As Eli suggested, it was a typo in org.el that 
was exposed by recent changes to encode-time. I installed into master the 
attached patch, which I think fixes the bug.

[-- Attachment #2: 0001-Fix-org-timestamp-change-typo.txt --]
[-- Type: text/plain, Size: 1201 bytes --]

From 313ebbbb98ceb078468498998305749b2790b7ba Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@penguin.cs.ucla.edu>
Date: Wed, 20 Apr 2016 00:06:01 -0700
Subject: [PATCH] Fix org-timestamp-change typo
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Peter Münster (Bug#23299).
* lisp/org/org.el (org-timestamp-change): Fix typo that relied
on undocumented behavior in ‘encode-time’.  In practice the
old code used local time, so use that.
---
 lisp/org/org.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 3abf627..b0e1e20 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -17459,8 +17459,7 @@ org-timestamp-change
 			 (+ (if (eq org-ts-what 'hour) n 0)   (nth 2 time0))
 			 (+ (if (eq org-ts-what 'day) n 0)    (nth 3 time0))
 			 (+ (if (eq org-ts-what 'month) n 0)  (nth 4 time0))
-			 (+ (if (eq org-ts-what 'year) n 0)   (nth 5 time0))
-			 (nthcdr 6 time0)))
+			 (+ (if (eq org-ts-what 'year) n 0)   (nth 5 time0))))
       (when (and (member org-ts-what '(hour minute))
 		 extra
 		 (string-match "-\\([012][0-9]\\):\\([0-5][0-9]\\)" extra))
-- 
2.5.5


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

* Fwd:  bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil)
  2016-04-20  7:11 ` bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil) Paul Eggert
@ 2016-05-01  7:04   ` Marcin Borkowski
  2016-05-01  7:56     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Marcin Borkowski @ 2016-05-01  7:04 UTC (permalink / raw)
  To: Org-Mode mailing list

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

Hi,

it seems that this is not yet applied to master (or am I mistaken?).
If I'm correct, could someone apply this patch in the Org-mode
repository?

On 2016-04-20, at 09:11, Paul Eggert <eggert@cs.ucla.edu> wrote:

> Thanks for reporting the problem. As Eli suggested, it was a typo in org.el that 
> was exposed by recent changes to encode-time. I installed into master the 
> attached patch, which I think fixes the bug.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

[-- Attachment #2: 0001-Fix-org-timestamp-change-typo.txt --]
[-- Type: text/plain, Size: 1234 bytes --]

From 313ebbbb98ceb078468498998305749b2790b7ba Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@penguin.cs.ucla.edu>
Date: Wed, 20 Apr 2016 00:06:01 -0700
Subject: [PATCH] Fix org-timestamp-change typo
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Peter Münster (Bug#23299).
* lisp/org/org.el (org-timestamp-change): Fix typo that relied
on undocumented behavior in ‘encode-time’.  In practice the
old code used local time, so use that.
---
 lisp/org/org.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org/org.el b/lisp/org/org.el
index 3abf627..b0e1e20 100644
--- a/lisp/org/org.el
+++ b/lisp/org/org.el
@@ -17459,8 +17459,7 @@ org-timestamp-change
 			 (+ (if (eq org-ts-what 'hour) n 0)   (nth 2 time0))
 			 (+ (if (eq org-ts-what 'day) n 0)    (nth 3 time0))
 			 (+ (if (eq org-ts-what 'month) n 0)  (nth 4 time0))
-			 (+ (if (eq org-ts-what 'year) n 0)   (nth 5 time0))
-			 (nthcdr 6 time0)))
+			 (+ (if (eq org-ts-what 'year) n 0)   (nth 5 time0))))
       (when (and (member org-ts-what '(hour minute))
 		 extra
 		 (string-match "-\\([012][0-9]\\):\\([0-5][0-9]\\)" extra))
-- 
2.5.5


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

* Re: Fwd:  bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil)
  2016-05-01  7:04   ` Fwd: " Marcin Borkowski
@ 2016-05-01  7:56     ` Nicolas Goaziou
  2016-05-01  9:06       ` Marcin Borkowski
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2016-05-01  7:56 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org-Mode mailing list

Hello,

Marcin Borkowski <mbork@mbork.pl> writes:

> it seems that this is not yet applied to master (or am I mistaken?).
> If I'm correct, could someone apply this patch in the Org-mode
> repository?

Isn't e0acd8a15a40cb15bd5c5c26c5a345900762c2f1 equivalent?

Regards,

-- 
Nicolas Goaziou

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

* Re: Fwd:  bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil)
  2016-05-01  7:56     ` Nicolas Goaziou
@ 2016-05-01  9:06       ` Marcin Borkowski
  0 siblings, 0 replies; 6+ messages in thread
From: Marcin Borkowski @ 2016-05-01  9:06 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Org-Mode mailing list


On 2016-05-01, at 09:56, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> Hello,
>
> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> it seems that this is not yet applied to master (or am I mistaken?).
>> If I'm correct, could someone apply this patch in the Org-mode
>> repository?
>
> Isn't e0acd8a15a40cb15bd5c5c26c5a345900762c2f1 equivalent?

True - sorry for the noise (I downloaded fresh Org, but forgot to `make'
- stupid me...)

> Regards,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

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

end of thread, other threads:[~2016-05-01  9:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19  6:22 org-timestamp-change and timezone Cédric Chépied
2016-04-19 14:29 ` Eli Zaretskii
2016-04-20  7:11 ` bug#23299: 25.1.50; org-timestamp-change: Invalid time zone specification: (nil nil nil) Paul Eggert
2016-05-01  7:04   ` Fwd: " Marcin Borkowski
2016-05-01  7:56     ` Nicolas Goaziou
2016-05-01  9:06       ` Marcin Borkowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.