Procházet zdrojové kódy

org-ellipsis cannot be local variable

* lisp/org.el (org-ellipsis): docstring specifies it cannot be a local
variable.  As a consequence, remove :safe keyword.

Reported-by: "Mark E. Shoulson" <mark@shoulson.com>
<http://lists.gnu.org/r/emacs-orgmode/2020-01/msg00145.html>
Nicolas Goaziou před 4 roky
rodič
revize
046f1d22ff
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      lisp/org.el

+ 2 - 3
lisp/org.el

@@ -1086,11 +1086,10 @@ use that string instead.
 
 
 The change affects only Org mode (which will then use its own display table).
 The change affects only Org mode (which will then use its own display table).
 Changing this requires executing `\\[org-mode]' in a buffer to become
 Changing this requires executing `\\[org-mode]' in a buffer to become
-effective."
+effective.  It cannot be set as a local variable."
   :group 'org-startup
   :group 'org-startup
   :type '(choice (const :tag "Default" nil)
   :type '(choice (const :tag "Default" nil)
-		 (string :tag "String" :value "...#"))
-  :safe (lambda (v) (and (string-or-null-p v) (not (equal "" v)))))
+		 (string :tag "String" :value "...#")))
 
 
 (defvar org-display-table nil
 (defvar org-display-table nil
   "The display table for Org mode, in case `org-ellipsis' is non-nil.")
   "The display table for Org mode, in case `org-ellipsis' is non-nil.")