Function: org-toggle-timestamp-type
org-toggle-timestamp-type is an interactive and byte-compiled function
defined in org.el.gz.
Signature
(org-toggle-timestamp-type)
Documentation
Toggle the type (<active> or [inactive]) of a time stamp.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-toggle-timestamp-type ()
"Toggle the type (<active> or [inactive]) of a time stamp."
(interactive)
(when (org-at-timestamp-p 'lax)
(let ((beg (match-beginning 0)) (end (match-end 0))
(map '((?\[ . "<") (?\] . ">") (?< . "[") (?> . "]"))))
(save-excursion
(goto-char beg)
(while (re-search-forward "[][<>]" end t)
(replace-match (cdr (assoc (char-after (match-beginning 0)) map))
t t)))
(message "Timestamp is now %sactive"
(if (equal (char-after beg) ?<) "" "in")))))