aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-02-03 06:30:29 +0100
committerStefan Kangas2022-02-03 06:30:29 +0100
commitdce93e397d54de19353a9e768757009043be1fc2 (patch)
tree62d49383e3668a09d280c4eb4a08532d83154065
parent3d7f17bf80b8689c7f22e69dc9a96ab200e52f97 (diff)
parentab2f27542210580ed6235fd7a721a5396a416492 (diff)
downloademacs-dce93e397d54de19353a9e768757009043be1fc2.tar.gz
emacs-dce93e397d54de19353a9e768757009043be1fc2.zip
Merge from origin/emacs-28
ab2f275422 Improve documentation of 'emacs-version'
-rw-r--r--doc/emacs/trouble.texi10
-rw-r--r--lisp/version.el9
2 files changed, 13 insertions, 6 deletions
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi
index e966565f000..93f9c779dbf 100644
--- a/doc/emacs/trouble.texi
+++ b/doc/emacs/trouble.texi
@@ -782,10 +782,12 @@ Emacs, so you will have to report the bug somewhere else.
782 782
783@item 783@item
784The type of machine you are using, and the operating system name and 784The type of machine you are using, and the operating system name and
785version number (again, automatically included by @kbd{M-x 785version number (again, automatically included by @w{@kbd{M-x
786report-emacs-bug}). @kbd{M-x emacs-version @key{RET}} provides this 786report-emacs-bug}}). @w{@kbd{M-x emacs-version @key{RET}}} provides
787information too. Copy its output from the @file{*Messages*} buffer, 787this information too. Copy its output from the @file{*Messages*}
788so that you get it all and get it accurately. 788buffer, so that you get it all and get it accurately, or use
789@w{@kbd{C-u M-x emacs-version @key{RET}}} to insert the version
790information into the current buffer.
789 791
790@item 792@item
791The operands given to the @code{configure} command when Emacs was 793The operands given to the @code{configure} command when Emacs was
diff --git a/lisp/version.el b/lisp/version.el
index 45f72b4329f..7e360209d85 100644
--- a/lisp/version.el
+++ b/lisp/version.el
@@ -56,8 +56,13 @@ developing Emacs.")
56(declare-function haiku-get-version-string "haikufns.c") 56(declare-function haiku-get-version-string "haikufns.c")
57 57
58(defun emacs-version (&optional here) 58(defun emacs-version (&optional here)
59 "Return string describing the version of Emacs that is running. 59 "Display the version of Emacs that is running in this session.
60If optional argument HERE is non-nil, insert string at point. 60With a prefix argument, insert the Emacs version string at point
61instead of displaying it.
62If called from Lisp, by default return the version string; but
63if the optional argument HERE is non-nil, insert the string at
64point instead.
65
61Don't use this function in programs to choose actions according 66Don't use this function in programs to choose actions according
62to the system configuration; look at `system-configuration' instead." 67to the system configuration; look at `system-configuration' instead."
63 (interactive "P") 68 (interactive "P")