summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/shortdoc.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2024-03-06 12:03:06 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2024-03-07 13:47:53 +0100
commit61b2f5f96b1d9dfd2fd908e09fac0d4163049c42 (patch)
treee76095045e99141e287be64920502e053de5a787 /lisp/emacs-lisp/shortdoc.el
parent8aabd835747297818d538cc16b3f53fcc1dd67f6 (diff)
downloademacs-61b2f5f96b1d9dfd2fd908e09fac0d4163049c42.tar.gz
emacs-61b2f5f96b1d9dfd2fd908e09fac0d4163049c42.tar.bz2
emacs-61b2f5f96b1d9dfd2fd908e09fac0d4163049c42.zip
Single string literal in body is return value only, not doc string
A function or macro body consisting of a single string literal now only uses it as a return value. Previously, it had the dual uses as return value and doc string, which was never what the programmer wanted and had some inconvenient consequences (bug#69387). This change applies to `lambda`, `defun`, `defsubst` and `defmacro` forms; most other defining forms already worked in the sensible way. * lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Don't use a lone string literal as doc string. * test/lisp/emacs-lisp/bytecomp-resources/warn-wide-docstring-defun.el (foo): Update docstring warning test. * doc/lispref/functions.texi (Function Documentation): Update. * etc/NEWS: Announce.
Diffstat (limited to 'lisp/emacs-lisp/shortdoc.el')
0 files changed, 0 insertions, 0 deletions