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

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

[elpa] externals-release/org 4ab2a4b 2/2: org-adapt-indentation: Tweak h


From: ELPA Syncer
Subject: [elpa] externals-release/org 4ab2a4b 2/2: org-adapt-indentation: Tweak headline-data addition
Date: Wed, 17 Feb 2021 00:57:10 -0500 (EST)

branch: externals-release/org
commit 4ab2a4be51f54a788d4744825b1a25418568384b
Author: Kyle Meyer <kyle@kyleam.com>
Commit: Kyle Meyer <kyle@kyleam.com>

    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.
---
 lisp/org.el | 6 +++---
 1 file 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)
 



reply via email to

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