GNU bug report logs -
#1171
ns-version-string
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Wed, 15 Oct 2008 01:20:03 UTC
Severity: normal
Done: Adrian Robert <adrian.b.robert <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #21 received at 1171 <at> emacsbugs.donarmstrong.com (full text, mbox):
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 <yavor <at> gnu.org> (tiny change)
* nsterm.m (syms_of_nsterm): Provide GNUstep Base/GUI versions as
`ns-version-string'.
--- nsterm.m 21 окт 2008 15:50:42 +0300 1.32
+++ nsterm.m 22 окт 2008 13:17:21 +0300
@@ -6382,7 +6382,22 @@
/* TODO: try to move this back into lisp, ns-win.el loaded too late
right now */
{
- Lisp_Object args[3] = { 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] = { 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));
}
This bug report was last modified 16 years and 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.