emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Patch: Document undocumented behavior in `org-timestamp-up'


From: Andrew Eggenberger
Subject: [O] Patch: Document undocumented behavior in `org-timestamp-up'
Date: Mon, 16 Apr 2018 19:24:28 -0500

From 7b2dd929cc7f94a7162429b698f23245d7d7d3c0 Mon Sep 17 00:00:00 2001
From: Andrew Eggenberger <address@hidden>
Date: Mon, 16 Apr 2018 19:07:41 -0500
Subject: [PATCH] Document undocumented org-timestamp-up behavior.

* org.el (org-timestamp-up): Document undocumented behavior.
(org-timestamp-up): The function changes the timestamp type when
the point is on the enclosing bracket.  The documentation now
reflects that behavior.

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

diff --git a/lisp/org.el b/lisp/org.el
index 01149ed..40f785b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17260,7 +17260,8 @@ NODEFAULT, hour and minute fields will be nil if not given."
 (defun org-timestamp-up (&optional arg)
   "Increase the date item at the cursor by one.
 If the cursor is on the year, change the year.  If it is on the month,
-the day or the time, change that.
+the day or the time, change that.  If the cursor is on the enclosing
+bracket, change the timestamp type.
 With prefix ARG, change by that many units."
   (interactive "p")
   (org-timestamp-change (prefix-numeric-value arg) nil 'updown))
-- 
2.10.1 (Apple Git-78)


Andrew Eggenberger

reply via email to

[Prev in Thread] Current Thread [Next in Thread]