From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.bugs Subject: bug#1171: #1171 - ns-version-string - Emacs bug report logs Date: Wed, 22 Oct 2008 08:29:03 -0400 Message-ID: References: <7DF28CA0-8DDC-4EF3-81EE-01DC314E7228@gmail.com> <87fxmozysi.GNU's_Not_Unix!%yavor@gnu.org> Reply-To: Adrian Robert , 1171@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224679856 32310 80.91.229.12 (22 Oct 2008 12:50:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 12:50:56 +0000 (UTC) Cc: 1171@emacsbugs.donarmstrong.com, Stefan Monnier To: Yavor Doganov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 14:51:57 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsdBg-0004QC-H9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 14:51:44 +0200 Original-Received: from localhost ([127.0.0.1]:41737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsdAb-0008KF-1t for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 08:50:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsdAX-0008Jl-K3 for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsdAW-0008JW-SG for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:33 -0400 Original-Received: from [199.232.76.173] (port=49785 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsdAW-0008JT-QG for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59097) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsdAX-00027T-0Q for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 08:50:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9MCo10M013391; Wed, 22 Oct 2008 05:50:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9MCZ3pK009809; Wed, 22 Oct 2008 05:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Adrian Robert Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Wed, 22 Oct 2008 12:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1171 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 1171-submit@emacsbugs.donarmstrong.com id=B1171.12246785678558 (code B ref 1171); Wed, 22 Oct 2008 12:35:03 +0000 Original-Received: (at 1171) by emacsbugs.donarmstrong.com; 22 Oct 2008 12:29:27 +0000 Original-Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9MCTNq2008552 for <1171@emacsbugs.donarmstrong.com>; Wed, 22 Oct 2008 05:29:25 -0700 Original-Received: by yw-out-2324.google.com with SMTP id 3so553527ywj.31 for <1171@emacsbugs.donarmstrong.com>; Wed, 22 Oct 2008 05:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=XoiPaPtMWrLtjVl/JZZ9gZRgUFL44o+WY7cIk9YCPcg=; b=iUBsuU/9pPz7d+iuO/qq4NuVGxAqG3PQj9iTUeyK4Uj/6jOwY7YCQcJ/MEn5Fnk2/7 +oDkL0aUtU66StEJCVeC8T6rDcOwSDotqB72VNztJutAxs0OFYYUTimFalLfkVaDYRY2 lC4aCoKqzF/R7M/4dayYwJZKRGIePR3FsBXGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=kFwPSLAG6UaPl6DyKUUGEz75d8Vlht386Fe7MYqVG50M7JM2kw+TCLfAUT4t9NdiEd QUBss+2YaRBydz7GgNbhB8+yEhf2NGCwjF5IcUVEywyv1lQ5tU/QT5Iv9jefrJ9RUB3D 8MbrnsJ6MKkNr/JJ9gFqEbkkQFV6HJliJbaLo= Original-Received: by 10.100.174.2 with SMTP id w2mr11558530ane.9.1224678562740; Wed, 22 Oct 2008 05:29:22 -0700 (PDT) Original-Received: from ?10.0.1.198? ([72.169.150.82]) by mx.google.com with ESMTPS id 5sm22392255yxt.1.2008.10.22.05.29.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Oct 2008 05:29:21 -0700 (PDT) In-Reply-To: <87fxmozysi.GNU's_Not_Unix!%yavor@gnu.org> X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 22 Oct 2008 08:50:33 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21782 Archived-At: Hi, Thanks. I actually have a patch that does this for both, just haven't =20= had time to test yet. I'll try a quick compile and check-in right now =20= since there seems to be a lot of interest in this. On Oct 22, 2008, at 6:53 AM, Yavor Doganov wrote: > Glenn Morris wrote: >> >> If there is a meaningful version number for the external GNUstep/Mac >> components (analogous to gtk-version-string) against which Emacs was >> built, that could also be printed. > > For GNUstep, that would be the Base and GUI versions. Ideally, the > GSBackend should also be detected and reported, but that's more > complicated as it has to happen at runtime. > > For Mac OS X I don't have a clue, really. > > The attached patch works for me, although it might not be entirely > correct. > > > 2008-10-22 Yavor Doganov (tiny change) > > * nsterm.m (syms_of_nsterm): Provide GNUstep Base/GUI versions = as > `ns-version-string'. > > > --- nsterm.m 21 =D0=BE=D0=BA=D1=82 2008 15:50:42 +0300 1.32 > +++ nsterm.m 22 =D0=BE=D0=BA=D1=82 2008 13:17:21 +0300=09 > @@ -6382,7 +6382,22 @@ > /* TODO: try to move this back into lisp, ns-win.el loaded too late > right now */ > { > - Lisp_Object args[3] =3D { intern ("ns-version-string"), =20 > build_string ("9.0"), > +#ifdef NS_IMPL_GNUSTEP > + char gnustep_version[40]; > + snprintf (gnustep_version, sizeof (gnustep_version), > + "(GNUstep Base %u.%u.%u, GUI %u.%u.%u)", > + GNUSTEP_BASE_MAJOR_VERSION, GNUSTEP_BASE_MINOR_VERSION, > + GNUSTEP_BASE_SUBMINOR_VERSION, > + GNUSTEP_GUI_MAJOR_VERSION, GNUSTEP_GUI_MINOR_VERSION, > + GNUSTEP_GUI_SUBMINOR_VERSION); > +#endif > + Lisp_Object args[3] =3D { intern ("ns-version-string"), > +#ifdef NS_IMPL_GNUSTEP > + build_string (gnustep_version), > +#else > + /* TODO: Something appropriate for Mac OS X. = */ > + build_string ("9.0"), > +#endif > build_string ("NS Window system port version =20 > number.") }; > Fdefconst (Flist (3, args)); > }