Gnus development mailing list
 help / color / mirror / Atom feed
* A variable to expose or not system-configuration (patch)
@ 2003-02-06  8:02 Vasily Korytov
  2003-02-07 12:38 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Vasily Korytov @ 2003-02-06  8:02 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 184 bytes --]

I think, it might be handy. At least, I know some people, that would
like it. Maybe, system exposing is good, but sometimes it's ugly, and
some people just don't like it.

---Vas

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: gnus-msg.patch --]
[-- Type: text/x-patch, Size: 1369 bytes --]

Index: gnus-msg.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-msg.el,v
retrieving revision 6.118
diff -u -u -r6.118 gnus-msg.el
--- gnus-msg.el	1 Feb 2003 16:40:51 -0000	6.118
+++ gnus-msg.el	6 Feb 2003 08:01:21 -0000
@@ -283,6 +283,11 @@
   :group 'gnus-message
   :type 'boolean)
 
+(defcustom gnus-version-expose-system t
+  "If non-nil, `system-configuration' is exposed in `gnus-extended-version'."
+  :group 'gnus-message
+  :type 'boolean)
+
 ;;; Internal variables.
 
 (defvar gnus-inhibit-posting-styles nil
@@ -1028,7 +1033,9 @@
    (cond
     ((string-match "^\\(\\([.0-9]+\\)*\\)\\.[0-9]+$" emacs-version)
      (concat "Emacs/" (match-string 1 emacs-version)
-	     " (" system-configuration ")"))
+	     (if gnus-version-expose-system
+		 " (" system-configuration ")"
+	       "")))
     ((string-match "\\([A-Z]*[Mm][Aa][Cc][Ss]\\)[^(]*\\(\\((beta.*)\\|'\\)\\)?"
 		   emacs-version)
      (concat (match-string 1 emacs-version)
@@ -1037,8 +1044,10 @@
 		 (match-string 3 emacs-version)
 	       "")
 	     (if (boundp 'xemacs-codename)
+	     (if gnus-version-expose-system
 		 (concat " (" xemacs-codename ", " system-configuration ")")
-	       "")))
+	       (concat " (" xemacs-codename ")"))
+	     "")))
     (t emacs-version))))
 
 \f

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-02-08  3:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-06  8:02 A variable to expose or not system-configuration (patch) Vasily Korytov
2003-02-07 12:38 ` Lars Magne Ingebrigtsen
2003-02-07 14:03   ` Vasily Korytov
2003-02-07 14:03     ` Lars Magne Ingebrigtsen
2003-02-07 14:09     ` Vasily Korytov
2003-02-07 14:25       ` Lars Magne Ingebrigtsen
2003-02-08  3:50         ` Vasily Korytov

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 NNTP newsgroup(s).