bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#39805: 28.0.50; scan-sexps (scan_lists) incorrectly parsing circular


From: No Wayman
Subject: bug#39805: 28.0.50; scan-sexps (scan_lists) incorrectly parsing circular list
Date: Thu, 27 Feb 2020 23:01:41 -0500
User-agent: mu4e 1.3.9; emacs 28.0.50

Mostly yes, but IMO it's kind of over-engineered. I would do just:

(defun workaround/describe-variable-print-bug (original-function &rest args)
      "Put temp buffer in emacs-lisp-mode before `pp-buffer'.
    https://debbugs.gnu.org/39805#8";
      (advice-add #'pp-buffer :before #'emacs-lisp-mode)
      (unwind-protect
        (apply original-function args)
        (advice-remove #'pp-buffer #'emacs-lisp-mode)))

    (when (= emacs-major-version 26) ;; Work around Bug#39805.
      (advice-add #'describe-variable :around
              #'workaround/describe-variable-print-bug))

I assumed mine was doing a more than it needed to.
Thanks again for the patch and the workaround.





reply via email to

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