Gnus development mailing list
 help / color / mirror / Atom feed
* [patch] extremely minor aesthetics in nnrss.el
@ 2002-04-24  4:16 Andrew J Cosgriff
  2002-04-24  8:01 ` Andrew J Cosgriff
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew J Cosgriff @ 2002-04-24  4:16 UTC (permalink / raw)



This is entirely frivolous, but now the whole world can know we're
using Gnus to read our RSS feeds.  Instead of this :

somewhere - - [24/Apr/2002:13:52:50 +1000] "GET /blah.rss HTTP/1.0" 200 45224 "-" "Unknown/Unknown URL/p4.0pre.46 (i686-pc-linux; X11)"

we now get this :

somewhere - - [24/Apr/2002:14:07:29 +1000] "GET /blah.rss HTTP/1.0" 200 45224 "-" "OortGnus/0.06 URL/p4.0pre.46 (i686-pc-linux; X11)"


Enjoy,
 Andrew


Index: nnrss.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnrss.el,v
retrieving revision 6.28
diff -u -1 -b -p -r6.28 nnrss.el
--- nnrss.el	2002/02/20 00:15:32	6.28
+++ nnrss.el	2002/04/24 04:13:03
@@ -452,4 +504,6 @@ ARTICLE is the article number of the cur
 (defun nnrss-insert-w3 (url)
+  (let ((url-package-name (replace-in-string (replace-in-string gnus-version " v.*$" "") " " ""))
+    (url-package-version gnus-version-number))
   (mm-with-unibyte-current-buffer
-    (mm-url-insert url)))
+    (mm-url-insert url))))
 


-- 
Andrew J Cosgriff <ajc@polydistortion.net>
surprise sun amnesia hope lies



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

* Re: [patch] extremely minor aesthetics in nnrss.el
  2002-04-24  4:16 [patch] extremely minor aesthetics in nnrss.el Andrew J Cosgriff
@ 2002-04-24  8:01 ` Andrew J Cosgriff
  2002-04-27 17:36   ` ShengHuo ZHU
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew J Cosgriff @ 2002-04-24  8:01 UTC (permalink / raw)


ajc wrote :

> This is entirely frivolous, but now the whole world can know we're
> using Gnus to read our RSS feeds.  Instead of this :

dang. somewhere in the fuzz between my ears I remembered that emacs 20
doesn't have replace-in-string, does it ?

and emacs 21 seems to have a "replace-regexp-in-string", instead.

um.  hmm.

*grep*

Ah.  Gnus already had/solved this problem.  Well, in that case :


Index: nnrss.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnrss.el,v
retrieving revision 6.28
diff -u -1 -b -p -r6.28 nnrss.el
--- nnrss.el	2002/02/20 00:15:32	6.28
+++ nnrss.el	2002/04/24 07:59:52
@@ -452,4 +504,6 @@ ARTICLE is the article number of the cur
 (defun nnrss-insert-w3 (url)
+  (let ((url-package-name (gnus-replace-in-string (gnus-replace-in-string gnus-version " v.*$" "") " " ""))
+    (url-package-version gnus-version-number))
   (mm-with-unibyte-current-buffer
-    (mm-url-insert url)))
+    (mm-url-insert url))))
 

Er.  Sorry about that.

-- 
Andrew J Cosgriff <ajc@polydistortion.net>
butter moon fun 1970s tunnel



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

* Re: [patch] extremely minor aesthetics in nnrss.el
  2002-04-24  8:01 ` Andrew J Cosgriff
@ 2002-04-27 17:36   ` ShengHuo ZHU
  2002-04-29  1:19     ` Andrew J Cosgriff
  0 siblings, 1 reply; 4+ messages in thread
From: ShengHuo ZHU @ 2002-04-27 17:36 UTC (permalink / raw)


Andrew J Cosgriff <ajc@polydistortion.net> writes:

> ajc wrote :
>
>> This is entirely frivolous, but now the whole world can know we're
>> using Gnus to read our RSS feeds.  Instead of this :
>
> dang. somewhere in the fuzz between my ears I remembered that emacs 20
> doesn't have replace-in-string, does it ?
>
> and emacs 21 seems to have a "replace-regexp-in-string", instead.
>
> um.  hmm.
>
> *grep*
>
> Ah.  Gnus already had/solved this problem.  Well, in that case :

I installed it into mm-url.el instead of nnrss.el. Thanks.

ShengHuo



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

* Re: [patch] extremely minor aesthetics in nnrss.el
  2002-04-27 17:36   ` ShengHuo ZHU
@ 2002-04-29  1:19     ` Andrew J Cosgriff
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew J Cosgriff @ 2002-04-29  1:19 UTC (permalink / raw)


ShengHuo ZHU wrote :

[...my user-agent patch...]

> I installed it into mm-url.el instead of nnrss.el. Thanks.

sure.  I thought about putting it there, but wasn't sure if mm-url was
likely to be used by non-gnus stuff, in which case they might like to
set their own user-agent instead ?  not that it /really/ matters,
though.

-- 
Andrew J Cosgriff <ajc@polydistortion.net>
why prozac cola spandex metal



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

end of thread, other threads:[~2002-04-29  1:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24  4:16 [patch] extremely minor aesthetics in nnrss.el Andrew J Cosgriff
2002-04-24  8:01 ` Andrew J Cosgriff
2002-04-27 17:36   ` ShengHuo ZHU
2002-04-29  1:19     ` Andrew J Cosgriff

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).