emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 96281c5: Record :version for built-in variables w


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 96281c5: Record :version for built-in variables while dumping
Date: Fri, 7 Sep 2018 03:36:59 -0400 (EDT)

branch: emacs-26
commit 96281c5ee1582ac0c329d09797ab7ab3dbae26d1
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Record :version for built-in variables while dumping
    
    * lisp/cus-start.el (standard): Record the ':version; of the
    symbols when dumping, so that 'describe-variable' could tell
    which built-in variables were added/changed in recent
    versions.
---
 lisp/cus-start.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 451e7f7..8ed0f80 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -706,6 +706,8 @@ since it could result in memory overflow and make Emacs 
crash."
          (put symbol 'risky-local-variable (cadr prop)))
       (if (setq prop (memq :set rest))
          (put symbol 'custom-set (cadr prop)))
+      ;; This is used by describe-variable.
+      (if version (put symbol 'custom-version version))
       ;; Note this is the _only_ initialize property we handle.
       (if (eq (cadr (memq :initialize rest)) 'custom-initialize-delay)
           ;; These vars are defined early and should hence be initialized
@@ -724,7 +726,6 @@ since it could result in memory overflow and make Emacs 
crash."
          (custom-add-to-group group symbol 'custom-variable))
        ;; Set the type.
        (put symbol 'custom-type type)
-       (if version (put symbol 'custom-version version))
        (while rest
          (setq prop (car rest)
                propval (cadr rest)



reply via email to

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