emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Document undocumented undocumented behavior in two org-timestamp-up and org-timestamp-down
@ 2018-04-19  2:04 Andrew Eggenberger
  2018-04-20  9:08 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Eggenberger @ 2018-04-19  2:04 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 525 bytes --]

Document org-timestamp-up and org-timestamp-down 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.

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

TINYCHANGE



*Andrew Eggenberger*

[-- Attachment #1.2: Type: text/html, Size: 958 bytes --]

[-- Attachment #2: 0001-Document-org-timestamp-up-and-org-timestamp-down-beh.patch --]
[-- Type: application/octet-stream, Size: 1927 bytes --]

From 476f0bc57c178d7ce924c04fe8368fcf9dbd11f5 Mon Sep 17 00:00:00 2001
From: Andrew Eggenberger <andrew.eggenberger@gmail.com>
Date: Mon, 16 Apr 2018 19:07:41 -0500
Subject: [PATCH] Document org-timestamp-up and org-timestamp-down 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.

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

TINYCHANGE
---
 lisp/org.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index aee053e..935ba2f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17218,7 +17218,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))
@@ -17226,7 +17227,8 @@ With prefix ARG, change by that many units."
 (defun org-timestamp-down (&optional arg)
   "Decrease 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)


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

* Re: [PATCH] Document undocumented undocumented behavior in two org-timestamp-up and org-timestamp-down
  2018-04-19  2:04 [PATCH] Document undocumented undocumented behavior in two org-timestamp-up and org-timestamp-down Andrew Eggenberger
@ 2018-04-20  9:08 ` Nicolas Goaziou
  2018-04-26 23:34   ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2018-04-20  9:08 UTC (permalink / raw)
  To: Andrew Eggenberger; +Cc: emacs-orgmode

Hello,

Andrew Eggenberger <andrew.eggenberger@gmail.com> writes:

> Document org-timestamp-up and org-timestamp-down behavior.

Applied. Thank you.

Would it make sense to update the manual accordingly? If so, would you
want to do it?

Regards,

-- 
Nicolas Goaziou

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

* Re: [PATCH] Document undocumented undocumented behavior in two org-timestamp-up and org-timestamp-down
  2018-04-20  9:08 ` Nicolas Goaziou
@ 2018-04-26 23:34   ` Bastien
  0 siblings, 0 replies; 3+ messages in thread
From: Bastien @ 2018-04-26 23:34 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Andrew Eggenberger, emacs-orgmode

Hi Andrew and Nicolas,

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Would it make sense to update the manual accordingly? If so, would you
> want to do it?

I've now done so in master, thanks.

-- 
 Bastien

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

end of thread, other threads:[~2018-04-26 23:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19  2:04 [PATCH] Document undocumented undocumented behavior in two org-timestamp-up and org-timestamp-down Andrew Eggenberger
2018-04-20  9:08 ` Nicolas Goaziou
2018-04-26 23:34   ` Bastien

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