From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Eggenberger Subject: Patch: Document undocumented behavior in `org-timestamp-up' Date: Mon, 16 Apr 2018 19:24:28 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11401530898707056a005cb7" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8EQB-0004Bf-Gz for emacs-orgmode@gnu.org; Mon, 16 Apr 2018 20:24:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8EQA-0001uR-H5 for emacs-orgmode@gnu.org; Mon, 16 Apr 2018 20:24:31 -0400 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]:37028) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8EQA-0001u0-8F for emacs-orgmode@gnu.org; Mon, 16 Apr 2018 20:24:30 -0400 Received: by mail-wr0-x230.google.com with SMTP id l49so30638977wrl.4 for ; Mon, 16 Apr 2018 17:24:29 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --001a11401530898707056a005cb7 Content-Type: text/plain; charset="UTF-8" >From 7b2dd929cc7f94a7162429b698f23245d7d7d3c0 Mon Sep 17 00:00:00 2001 From: Andrew Eggenberger 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* --001a11401530898707056a005cb7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
From 7b2dd929cc7f94a7162429b698f23245d7d7d3c0 Mo= n Sep 17 00:00:00 2001
From: Andrew Eggenberger <andrew.eggenberger@gmail.com>
Date: Mon, 16 Apr 2018 19:07:41 -0500
Subject: [PATCH] Doc= ument undocumented org-timestamp-up behavior.

* or= g.el (org-timestamp-up): Document undocumented behavior.
(org-tim= estamp-up): The function changes the timestamp type when
the poin= t is on the enclosing bracket.=C2=A0 The documentation now
reflec= ts that behavior.

TINYCHANGE
---
=C2=A0lisp/org.el | 3 ++-
=C2=A01 file changed, 2 insertions(+= ), 1 deletion(-)

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


Andrew Eggenberger
--001a11401530898707056a005cb7--