emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/org e7e37c5b26: org-agenda.el: Improve docstrings of ag


From: ELPA Syncer
Subject: [elpa] externals/org e7e37c5b26: org-agenda.el: Improve docstrings of agenda date navigation commands
Date: Tue, 21 Jun 2022 01:57:47 -0400 (EDT)

branch: externals/org
commit e7e37c5b26445a2e8f354a4d9bc034c1785c7abb
Author: Stefan Kangas <stefan@marxist.se>
Commit: Daniel Fleischer <danflscr@gmail.com>

    org-agenda.el: Improve docstrings of agenda date navigation commands
    
    * lisp/org-agenda.el (org-agenda-goto-date)
    (org-agenda-goto-today, org-agenda-later, org-agenda-earlier):
    Improve documentation and add crossreferences.
---
 lisp/org-agenda.el | 36 ++++++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 2a8c10d48d..76f71e33e2 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -8797,7 +8797,16 @@ Negative selection means regexp must not match for 
selection of an entry."
   (set var (concat (symbol-value var) string)))
 
 (defun org-agenda-goto-date (date)
-  "Jump to DATE in agenda."
+  "Jump to DATE in the agenda buffer.
+
+When called interactively, prompt for the date.
+When called from Lisp, DATE should be a date as returned by
+`org-read-date'.
+
+See also:
+ `org-agenda-earlier'    (\\[org-agenda-earlier])
+ `org-agenda-later'      (\\[org-agenda-later])
+ `org-agenda-goto-today' (\\[org-agenda-goto-today])"
   (interactive
    (list
     (let ((org-read-date-prefer-future org-agenda-jump-prefer-future))
@@ -8829,7 +8838,12 @@ Negative selection means regexp must not match for 
selection of an entry."
            org-agenda-this-buffer-is-sticky org-agenda-sticky))))
 
 (defun org-agenda-goto-today ()
-  "Go to today."
+  "Go to today's date in the agenda buffer.
+
+See also:
+ `org-agenda-later'     (\\[org-agenda-later])
+ `org-agenda-earlier'   (\\[org-agenda-earlier])
+ `org-agenda-goto-date' (\\[org-agenda-goto-date])"
   (interactive)
   (org-agenda-check-type t 'agenda)
   (let* ((args (get-text-property (min (1- (point-max)) (point)) 
'org-last-args))
@@ -8888,8 +8902,13 @@ When optional argument BACKWARD is set, go backward."
               (message "No %s block" (if backward "previous" "further")))))))
 
 (defun org-agenda-later (arg)
-  "Go forward in time by the current span.
-With prefix ARG, go forward that many times the current span."
+  "Go forward in time by the current span in the agenda buffer.
+With prefix ARG, go forward that many times the current span.
+
+See also:
+ `org-agenda-earlier'    (\\[org-agenda-earlier])
+ `org-agenda-goto-today' (\\[org-agenda-goto-today])
+ `org-agenda-goto-date'  (\\[org-agenda-goto-date])"
   (interactive "p")
   (org-agenda-check-type t 'agenda)
   (let* ((wstart (window-start))
@@ -8930,8 +8949,13 @@ With prefix ARG, go forward that many times the current 
span."
     (set-window-start nil wstart)))
 
 (defun org-agenda-earlier (arg)
-  "Go backward in time by the current span.
-With prefix ARG, go backward that many times the current span."
+  "Go backward in time by the current span in the agenda buffer.
+With prefix ARG, go backward that many times the current span.
+
+See also:
+ `org-agenda-later'      (\\[org-agenda-later])
+ `org-agenda-goto-today' (\\[org-agenda-goto-today])
+ `org-agenda-goto-date'  (\\[org-agenda-goto-date])"
   (interactive "p")
   (org-agenda-later (- arg)))
 



reply via email to

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