From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: Using versions instead of XEmacs codenames in User-Agent
Date: Mon, 10 Jan 2005 16:07:12 +0100 [thread overview]
Message-ID: <v9brbxqq5b.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <microsoft-free.878y72td2g.fsf@youngs.au.com>
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/
next prev parent reply other threads:[~2005-01-10 15:07 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
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 [this message]
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=v9brbxqq5b.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).