From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59557 Path: main.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Using versions instead of XEmacs codenames in User-Agent Date: Mon, 10 Jan 2005 16:07:12 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1105369863 6549 80.91.229.6 (10 Jan 2005 15:11:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 15:11:03 +0000 (UTC) Original-X-From: ding-owner+M8097@lists.math.uh.edu Mon Jan 10 16:10:53 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Co1C1-0002ZZ-00 for ; Mon, 10 Jan 2005 16:10:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Co18r-0006MN-00; Mon, 10 Jan 2005 09:07:37 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Co18n-0006MI-00 for ding@lists.math.uh.edu; Mon, 10 Jan 2005 09:07:33 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Co18h-0000at-7J for ding@lists.math.uh.edu; Mon, 10 Jan 2005 09:07:27 -0600 Original-Received: from main.gmane.org ([80.91.224.249]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Co18g-0002Br-00 for ; Mon, 10 Jan 2005 16:07:26 +0100 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Co18g-000815-00 for ; Mon, 10 Jan 2005 16:07:26 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jan 2005 16:07:25 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jan 2005 16:07:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 84 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY;Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m,tWj]&},qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi,+g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:DHB8Xv51D8W6Zem33GPFb3e7NFc= Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59557 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59557 On Mon, Jan 10 2005, Steve Youngs wrote: > > Is a quoted string like "Aston Martin" allowed in RFC 2616? [...] > Yep, however, IMHO, this... > > SXEmacs/22.1.1 (Aston Martin, berkeley-unix) > > doesn't look anywhere near as nice as... > > SXEmacs/22.1.1 "Aston Martin" (berkeley-unix) > > :-) I think we should use the former variant unless there are good reasons not to do so, as Bjørn already pointed out. [...] > Cool. Can we make the default on (S)XEmacs to include the codename? > Just to keep as close as possible to current settings. My intention was to _change_ the default settings. ;-) See the subject of this thread. Maybe that wasn't clear enough in my previous articles. The default User-Agent header line should be no more than 80 chars, IMO. I have committed the default w/o codename to the trunk. If you or anyone strongly wants to include the codename by default, feel free to change it. :-) > > + ((or (featurep 'sxemacs) (featurep 'xemacs)) > You could write this as: > ((featurep '(or sxemacs xemacs)) > > But I'm not sure how GNU/Emacs would cope with that. Emacs would signal an error. > In this instance it probably shouldn't matter because GNU/Emacs > wouldn't get to this part of the code. Yes. But at least for me my suggestion is more clear. > Other than that, I think your patch is great! And works well. I have improved the conversion code to automatically convert customized values: --8<---------------cut here---------------start------------->8--- (defcustom gnus-user-agent '(emacs gnus type) ...) ;; Convert old (< 2005-01-10) symbol type values: (when (symbolp gnus-user-agent) (setq gnus-user-agent (cond ((eq gnus-user-agent 'emacs-gnus-config) '(emacs gnus config)) ((eq gnus-user-agent 'emacs-gnus-type) '(emacs gnus type)) ((eq gnus-user-agent 'emacs-gnus) '(emacs gnus)) ((eq gnus-user-agent 'gnus) '(gnus)) (t gnus-user-agent))) (gnus-message 1 "Converted `gnus-user-agent' to `%s'." gnus-user-agent) (sit-for 1) (if (get 'gnus-user-agent 'saved-value) (customize-save-variable 'gnus-user-agent gnus-user-agent) (gnus-message 1 "Edit your init file to make this change permanent.") (sit-for 2))) --8<---------------cut here---------------end--------------->8--- But if the user loads first gnus.elc and then does (setq gnus-user-agent 'emacs-gnus) it will fail. Ideas? But I doubt that many people have done this. `gnus-user-agent' is quite new and most people use the default value, AFAICS. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/