From 87dfb040b08adf22cea41115adaa913997c04437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sat, 31 Jan 2026 15:55:47 +0100 Subject: [PATCH] Don't produce zero-length lazy strings * lisp/emacs-lisp/bytecomp.el (byte-compile--docstring): There is no gain from making an empty string lazy. (It also contributed to bug#80292.) --- lisp/emacs-lisp/bytecomp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index edfd9491a2f..949a1a5e517 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -1856,7 +1856,8 @@ It is too wide if it has any lines longer than the largest of ;; The native compiler doesn't use those dynamic docstrings. (not byte-native-compiling) ;; Docstrings can only be dynamic when compiling a file. - byte-compile--\#$) + byte-compile--\#$ + (not (equal doc ""))) ; empty lazy strings are pointless (let* ((byte-pos (with-memoization ;; Reuse a previously written identical docstring. ;; This is not done out of thriftiness but to try and