output Emacs version (was: Re: bug with `apropos-value' in Emacs 29.0?)
Emanuel Berg <[email protected]> Mon, 23 May 2022 23:22:24 +0200
| Newsgroups | gmane.emacs.help,gmane.emacs.w3m |
|---|---|
| Message-ID | <[email protected]> |
Marcin Borkowski wrote:
> http://mbork.pl/2017-01-30_Current_Emacs_version
>
> (defun insert-debug-version-info ()
> "Insert version of Emacs and 7 characters of the commit hash."
> (interactive)
> (insert
> (format "GNU Emacs %s (commit %s)"
> emacs-version
> (substring (emacs-repository-get-version) 0 7))))
Cool, I did my own one:
;;; -*- lexical-binding: t -*-
;;
;; this file:
;; https://dataswamp.org/~incal/emacs-init/meta.el
(defun emacs-version-commit (&optional here)
(interactive "P")
(let ((ver (format "%s [%s]" (emacs-version)
(emacs-repository-get-version) )))
(when here
(insert ver) )
(message ver) ))
(defalias 'ever #'emacs-version-commit)
Also check out, https://dataswamp.org/~incal/emacs-init/w3m/w3m-version.el
--
underground experts united
https://dataswamp.org/~incal