summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-02-17 00:14:26 -0500
committerKyle Meyer <kyle@kyleam.com>2021-02-17 00:14:26 -0500
commit4ab2a4be51f54a788d4744825b1a25418568384b (patch)
treedfaa13f3092c708e942641550e74cd34e271df17
parentee4ffa5672e9cd28b28e2d947993847234540327 (diff)
downloadorg-mode-4ab2a4be51f54a788d4744825b1a25418568384b.tar.gz
org-adapt-indentation: Tweak headline-data addition
* lisp/org.el (org-adapt-indentation): Adjust :safe value for headline-data, avoid unnecessary quote in :type value, and follow the convention for quoting symbols in docstrings.
-rw-r--r--lisp/org.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el
index c61b8fb..d0f0d81 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1582,7 +1582,7 @@ When this variable is set to t, Org assumes that you write
outlines by indenting text in each node to align with the
headline (after the stars).
-When this variable is set to 'headline-data, only adapt the
+When this variable is set to `headline-data', only adapt the
indentation of the data lines right below the headline, such as
planning/clock lines and property/logbook drawers.
@@ -1608,9 +1608,9 @@ time in Emacs."
:type '(choice
(const :tag "Adapt indentation for all lines" t)
(const :tag "Adapt indentation for headline data lines"
- 'headline-data)
+ headline-data)
(const :tag "Do not adapt indentation at all" nil))
- :safe #'booleanp)
+ :safe (lambda (x) (memq x '(t nil headline-data))))
(defvaralias 'org-special-ctrl-a 'org-special-ctrl-a/e)