Function: org-toggle-timestamp-overlays
org-toggle-timestamp-overlays is an interactive and byte-compiled
function defined in org.el.gz.
Signature
(org-toggle-timestamp-overlays)
Documentation
Toggle the use of custom time stamp formats.
Key Bindings
Aliases
org-toggle-time-stamp-overlays
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-toggle-timestamp-overlays ()
"Toggle the use of custom time stamp formats."
(interactive)
(setq org-display-custom-times (not org-display-custom-times))
(unless org-display-custom-times
(let ((p (point-min)) (bmp (buffer-modified-p)))
(while (setq p (next-single-property-change p 'display))
(when (and (get-text-property p 'display)
(eq (get-text-property p 'face) 'org-date))
(remove-text-properties
p (setq p (next-single-property-change p 'display))
'(display t))))
(set-buffer-modified-p bmp)))
(org-restart-font-lock)
(setq org-table-may-need-update t)
(if org-display-custom-times
(message "Time stamps are overlaid with custom format")
(message "Time stamp overlays removed")))