]> git.eshelyaron.com Git - emacs.git/commitdiff
Print bare symbols for EMACS_GENERATE_DYNVARS
authorBasil L. Contovounesios <contovob@tcd.ie>
Wed, 18 Oct 2023 13:33:51 +0000 (15:33 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Feb 2025 10:52:48 +0000 (11:52 +0100)
* lisp/emacs-lisp/bytecomp.el (byte-compile--load-dynvars): Remove
redundant goto-char.
(byte-compile-file): Bind print-symbols-bare around .dynvars file
generation.  (Bug#66628)

(cherry picked from commit dcc4cec04ada100d4389393500bdc94018e180c8)

lisp/emacs-lisp/bytecomp.el

index 11a5e2a3b7f8cd8d11dd37df76d4725a66c89546..7a4e646ec68d7a5f45eb20a5e89c3d70c032cca3 100644 (file)
@@ -2150,7 +2150,6 @@ If compilation is needed, this functions returns the result of
   (and file (not (equal file ""))
        (with-temp-buffer
          (insert-file-contents file)
-         (goto-char (point-min))
          (let ((vars nil)
                var)
            (while (ignore-errors (setq var (read (current-buffer))))
@@ -2373,7 +2372,8 @@ See also `emacs-lisp-byte-compile-and-load'."
         (let ((gen-dynvars (getenv "EMACS_GENERATE_DYNVARS")))
           (when (and gen-dynvars (not (equal gen-dynvars ""))
                      byte-compile--seen-defvars)
-            (let ((dynvar-file (concat target-file ".dynvars")))
+            (let ((dynvar-file (concat target-file ".dynvars"))
+                  (print-symbols-bare t))
               (message "Generating %s" dynvar-file)
               (with-temp-buffer
                 (dolist (var (delete-dups byte-compile--seen-defvars))