Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Using versions instead of XEmacs codenames in User-Agent
Date: Sat, 08 Jan 2005 19:09:08 +0100	[thread overview]
Message-ID: <v94qhrx06z.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <microsoft-free.874qhu3zm2.fsf@youngs.au.com>

On Fri, Jan 07 2005, Steve Youngs wrote:

> * Reiner Steib <reinersteib+gmane@imap.cc> writes:
> [ Dropping codenames, use full version numbers in User-Agent ]
>
>   > Unless there are objections against my suggestion, I'll install it in
>   > the stable branch and in the trunk.  Steve, I'd like to ask you to
>   > wait for my patch and then also use full version numbers instead of
>   > codenames for SXEmacs.
>
> Will do.  But, as Katsumi suggested, perhaps make inclusion
> of the codename customisable.

I'm not sure how this options should be merged into the current
choices of `gnus-user-agent'.  Additionally, I don't have an XEmacs
for testing before Monday.  Here is a preliminary version of my patch
in case someone want to work on it now:

--8<---------------cut here---------------start------------->8---
--- gnus-util.el	17 Dec 2004 10:27:52 -0000	6.104.2.6
+++ gnus-util.el	6 Jan 2005 13:50:57 -0000
@@ -1530,17 +1530,22 @@
        emacs-version)
       (concat
        (match-string 1 emacs-version)
-       (format "/%d.%d" emacs-major-version emacs-minor-version)
-       (if (match-beginning 3)
-	   (match-string 3 emacs-version)
-	 "")
-       (if (boundp 'xemacs-codename)
-	   (concat
-	    " (" xemacs-codename
-	    (if system-v
-		(concat ", " system-v ")")
-	      ")"))
-	 "")))
+       (if (boundp 'emacs-program-version)
+	   (concat (format "/%s" emacs-program-version)
+		   (if system-v
+		       (concat " (" system-v ")")
+		     ""))
+	 (format "/%d.%d" emacs-major-version emacs-minor-version)
+	 (if (match-beginning 3)
+	     (match-string 3 emacs-version)
+	   "")
+	 (if (boundp 'xemacs-codename)
+	     (concat
+	      " (" xemacs-codename
+	      (if system-v
+		  (concat ", " system-v ")")
+		")"))
+	   ""))))
      (t emacs-version))))
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




  reply	other threads:[~2005-01-08 18:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-06  1:49 [PATCH] SXEmacs User-Agent string Steve Youngs
2005-01-06 13:41 ` Using versions instead of XEmacs codenames in User-Agent (was: [PATCH] SXEmacs User-Agent string) Reiner Steib
2005-01-06 23:00   ` Using versions instead of XEmacs codenames in User-Agent Katsumi Yamaoka
2005-01-06 23:29   ` Steve Youngs
2005-01-08 18:09     ` Reiner Steib [this message]
2005-01-09  1:28       ` Steve Youngs
2005-01-09 20:55         ` Reiner Steib
2005-01-09 23:09           ` Steve Youngs
2005-01-10  8:42             ` Bjørn Mork
2005-01-10  9:20               ` Steve Youngs
2005-01-10 10:39                 ` Bjørn Mork
2005-01-10 15:07             ` Reiner Steib
2005-01-10 23:29               ` Steve Youngs

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=v94qhrx06z.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).