diff options
| author | Stefan Kangas | 2022-02-03 06:30:29 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2022-02-03 06:30:29 +0100 |
| commit | dce93e397d54de19353a9e768757009043be1fc2 (patch) | |
| tree | 62d49383e3668a09d280c4eb4a08532d83154065 | |
| parent | 3d7f17bf80b8689c7f22e69dc9a96ab200e52f97 (diff) | |
| parent | ab2f27542210580ed6235fd7a721a5396a416492 (diff) | |
| download | emacs-dce93e397d54de19353a9e768757009043be1fc2.tar.gz emacs-dce93e397d54de19353a9e768757009043be1fc2.zip | |
Merge from origin/emacs-28
ab2f275422 Improve documentation of 'emacs-version'
| -rw-r--r-- | doc/emacs/trouble.texi | 10 | ||||
| -rw-r--r-- | lisp/version.el | 9 |
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 |
| 784 | The type of machine you are using, and the operating system name and | 784 | The type of machine you are using, and the operating system name and |
| 785 | version number (again, automatically included by @kbd{M-x | 785 | version number (again, automatically included by @w{@kbd{M-x |
| 786 | report-emacs-bug}). @kbd{M-x emacs-version @key{RET}} provides this | 786 | report-emacs-bug}}). @w{@kbd{M-x emacs-version @key{RET}}} provides |
| 787 | information too. Copy its output from the @file{*Messages*} buffer, | 787 | this information too. Copy its output from the @file{*Messages*} |
| 788 | so that you get it all and get it accurately. | 788 | buffer, 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 | ||
| 790 | information into the current buffer. | ||
| 789 | 791 | ||
| 790 | @item | 792 | @item |
| 791 | The operands given to the @code{configure} command when Emacs was | 793 | The 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. |
| 60 | If optional argument HERE is non-nil, insert string at point. | 60 | With a prefix argument, insert the Emacs version string at point |
| 61 | instead of displaying it. | ||
| 62 | If called from Lisp, by default return the version string; but | ||
| 63 | if the optional argument HERE is non-nil, insert the string at | ||
| 64 | point instead. | ||
| 65 | |||
| 61 | Don't use this function in programs to choose actions according | 66 | Don't use this function in programs to choose actions according |
| 62 | to the system configuration; look at `system-configuration' instead." | 67 | to the system configuration; look at `system-configuration' instead." |
| 63 | (interactive "P") | 68 | (interactive "P") |