Gnus development mailing list
 help / color / mirror / Atom feed
From: deskpot@myrealbox.com (Vasily Korytov)
Subject: A variable to expose or not system-configuration (patch)
Date: Thu, 06 Feb 2003 11:02:31 +0300	[thread overview]
Message-ID: <877kcdvnu0.fsf@unix.home> (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 --]

             reply	other threads:[~2003-02-06  8:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-06  8:02 Vasily Korytov [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877kcdvnu0.fsf@unix.home \
    --to=deskpot@myrealbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).