unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Cc: emacs-w3m@namazu.org
Subject: Re: insert string at point with emacs-version
Date: Wed, 02 Feb 2022 00:15:53 +0100	[thread overview]
Message-ID: <87k0eefaae.fsf@zoho.eu> (raw)
In-Reply-To: YflsG/vApRG1zT4Y@tuxteam.de

tomas wrote:

> When in a buffer (whose content is not very important to
> you) try:
>
>   M-x eval-expression
>
> Then enter
>
>   (emacs-version 'bluntschli)
>
> Of course, any value besides 'bluntschli will do, as long as it is not
> nil.
>
> Of course, since it doesn't make a difference, you'll use
> t to not coufuse your readers.

It is used like this, C-u M-x emacs-version RET

So type for example "I like this Emacs version the most" then
hit the above combo for, in my case

  GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo
  version 1.16.0) of 2021-12-31

There is the same for Gnus, `gnus-version'

  Gnus v5.13

and I did the same for w3m and Emacs-w3m

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   https://dataswamp.org/~incal/emacs-init/w3m/w3m-version.el

(require 'w3m)

(defun emacs-w3m-version (&optional here)
  "Version number of this version of Emacs-w3m, `emacs-w3m-version'.
If optional argument HERE is non-nil, insert string at point.
\nThis is not the version of the shell tool w3m; see `w3m-version'."
  (interactive "P")
  (if here
      (insert (message emacs-w3m-version))
    (message emacs-w3m-version) ))

(defun w3m-version (&optional here)
  "Version number of this version of w3m, `w3m-version'.
If optional argument HERE is non-nil, insert string at point.
\nThis is not the version of the Emacs browser; see `emacs-w3m-version'."
  (interactive "P")
  (if here
      (insert (message w3m-version))
    (message w3m-version) ))

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2022-02-01 23:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-01 14:24 insert string at point with emacs-version goncholden via Users list for the GNU Emacs text editor
2022-02-01 15:51 ` Jean-Christophe Helary
2022-02-01 15:53 ` Robert Pluim
2022-02-01 16:08 ` H. Dieter Wilhelm
2022-02-01 16:33 ` inasprecali
2022-02-01 17:44   ` goncholden
2022-02-01 17:21 ` tomas
2022-02-01 23:15   ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-02-01 18:23 goncholden
2022-02-01 18:57 goncholden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0eefaae.fsf@zoho.eu \
    --to=help-gnu-emacs@gnu.org \
    --cc=emacs-w3m@namazu.org \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).