From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yavor Doganov Newsgroups: gmane.emacs.bugs Subject: bug#1171: #1171 - ns-version-string - Emacs bug report logs Date: Wed, 22 Oct 2008 13:53:17 +0300 Organization: The GNU Emacs Church (Bulgarian eparchy) Message-ID: <87fxmozysi.GNU's_Not_Unix!%yavor@gnu.org> References: <7DF28CA0-8DDC-4EF3-81EE-01DC314E7228@gmail.com> Reply-To: Yavor Doganov , 1171@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1224673834 11460 80.91.229.12 (22 Oct 2008 11:10:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2008 11:10:34 +0000 (UTC) Cc: Adrian Robert To: Glenn Morris , 1171@emacsbugs.donarmstrong.com, Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 22 13:11:34 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 1Ksbci-0003lN-Io for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 13:11:32 +0200 Original-Received: from localhost ([127.0.0.1]:44274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksbbc-0001E3-UV for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2008 07:10:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsbbZ-0001De-CZ for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:10:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsbbV-00019i-PM for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:10:21 -0400 Original-Received: from [199.232.76.173] (port=58515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsbbV-00019Z-KO for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:10:17 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39581) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KsbbV-00087I-In for bug-gnu-emacs@gnu.org; Wed, 22 Oct 2008 07:10:17 -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 m9MBA1ho020914; Wed, 22 Oct 2008 04:10:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9MB03I9017846; Wed, 22 Oct 2008 04:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Yavor Doganov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Wed, 22 Oct 2008 11:00: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.122467281816600 (code B ref 1171); Wed, 22 Oct 2008 11:00:03 +0000 Original-Received: (at 1171) by emacsbugs.donarmstrong.com; 22 Oct 2008 10:53:38 +0000 Original-Received: from southway-varna.com ([213.91.219.2]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9MArTCr016594 for <1171@emacsbugs.donarmstrong.com>; Wed, 22 Oct 2008 03:53:31 -0700 Original-Received: from keel.southway-varna.com ([192.168.0.2]) by southway-varna.com with esmtp (Exim 4.63) (envelope-from ) id 1KsbL5-00044v-Cf; Wed, 22 Oct 2008 13:53:21 +0300 Original-Received: from localhost ([127.0.0.1] helo=keel.southway-varna.com) by keel.southway-varna.com with esmtp (Exim 4.69) (envelope-from ) id 1KsbL3-0003gN-DA; Wed, 22 Oct 2008 13:53:17 +0300 In-Reply-To: Mail-Followup-To: Glenn Morris , 1171@emacsbugs.donarmstrong.com, Stefan Monnier , Adrian Robert , yavor@gnu.org User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 =?UTF-8?Q?(Goj=C5=8D)?= APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Jabber-ID: doganov@jabber.minus273.org X-SA-Exim-Connect-IP: 192.168.0.2 X-SA-Exim-Mail-From: yavor@gnu.org X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on southway-varna.com) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 22 Oct 2008 07:10:21 -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:21779 Archived-At: Glenn Morris wrote: >=20 > 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"), 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 number.")= }; Fdefconst (Flist (3, args)); }