[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-x version command

From: Harry Putnam
Subject: Re: M-x version command
Date: Sat, 09 Nov 2002 07:51:02 -0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

John Paul Wallington <jpw@shootybangbang.com> writes:

> From: John Paul Wallington <jpw@shootybangbang.com>
> Subject: Re: M-x version command
> To: Harry Putnam <hgp@sbcglobal.net>
> Cc: bug-gnu-emacs@gnu.org
> Date: Sat, 09 Nov 2002 14:08:40 +0000
> Message-ID: <87adki4yzb.fsf@bundalo.shootybangbang.com>
> Harry Putnam <hgp@sbcglobal.net> wrote:
>> Invoking M-x version leaves no way to conviently copy that
>> information.
>> It doesn't show up in *Messages* buffer either.
>> In the past one could review it there.
> When called interactively, `version' (an alias for `emacs-version')
> will use `message' to display its output (causing it to show up in the
> *Messages* buffer) in both the RC branch (that will be 21.3) and HEAD.

I did discover this info:

Running M-x version <RET> prints a `G' in *Messages" buffer

Running M-x eval-expression <RET>
Eval: (emacs-version) <RET>

Does print version info in *Messages*
  "GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
   of 2002-08-28 on astest"

Further, something I should have tried first:
Calling emacs -q -no-site-file, then M-x version, and the version info
does appear in *Messages*.  So apparently some local setting causing this.

> Does `emacs-version' in 21.2 have this snippet at the end?
>     (if here 
>         (insert version-string)
>       (if (interactive-p)
>           (message "%s" version-string)
>         version-string))))

If you mean in /usr/share/emacs/21.2/lisp/version.el, then yes it does
around line 74.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]