[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39805: 28.0.50; scan-sexps (scan_lists) incorrectly parsing circular
bug#39805: 28.0.50; scan-sexps (scan_lists) incorrectly parsing circular list
Thu, 27 Feb 2020 12:22:34 -0500
mu4e 1.3.9; emacs 28.0.50
Noam Postavsky <address@hidden> writes:
It doesn't fail if the buffer is changed to emacs-lisp-mode
In the meantime, I'd like to be able to offer the users of my
package a solution if they hit this bug.
This seems to work for me, but I haven't written much, and am a
bit leery of, elisp advice.
Would you consider this an appropriate workaround?:
(defun workaround/describe-variable-print-bug (original-function
"Put temp buffer in emacs-lisp before ORIGINAL-FUNCTION:
(cl-flet ((pp-advice (original-function)
(when (string-prefix-p " *temp"
(let ((mm major-mode))
(advice-add #'pp-buffer :around #'pp-advice)
(apply original-function args)
(advice-remove #'pp-buffer #'pp-advice))))
(advice-add #'describe-variable :around