unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [KSNetz@Arcor.DE: variable url-automatic-caching defined but not used]
@ 2005-01-07 23:04 Richard Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2005-01-07 23:04 UTC (permalink / raw)


Would someone please look at this and DTRT and ack?

------- Start of forwarded message -------
Date: Fri, 7 Jan 2005 13:41:40 +0100 (CET)
From: Klaus Straubinger <KSNetz@Arcor.DE>
To: emacs-pretest-bug@gnu.org
X-SAP: out
Subject: variable url-automatic-caching defined but not used
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
X-Spam-Status: No, hits=0.5 required=5.0
	tests=RCVD_IN_ORBS
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

The file url/url-vars.el defines the variable url-automatic-caching,
but it is not used in the whole URL package anywhere. What is worse,
the current behaviour (i.e., caching always) does not correspond to
the default nil setting of this variable.

The function url-store-in-cache in url-cache.el seems a good place to
implement the intended functionality.

Regards
Klaus Straubinger


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

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

* [KSNetz@Arcor.DE: variable url-automatic-caching defined but not used]
@ 2005-01-22  2:52 Richard Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2005-01-22  2:52 UTC (permalink / raw)


[I sent this message two weeks ago but did not get a response.]

Would someone please look at this and DTRT and ack?

------- Start of forwarded message -------
Date: Fri, 7 Jan 2005 13:41:40 +0100 (CET)
From: Klaus Straubinger <KSNetz@Arcor.DE>
To: emacs-pretest-bug@gnu.org
X-SAP: out
Subject: variable url-automatic-caching defined but not used
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
X-Spam-Status: No, hits=0.5 required=5.0
	tests=RCVD_IN_ORBS
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

The file url/url-vars.el defines the variable url-automatic-caching,
but it is not used in the whole URL package anywhere. What is worse,
the current behaviour (i.e., caching always) does not correspond to
the default nil setting of this variable.

The function url-store-in-cache in url-cache.el seems a good place to
implement the intended functionality.

Regards
Klaus Straubinger


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

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

* [KSNetz@Arcor.DE: variable url-automatic-caching defined but not used]
@ 2005-02-07 20:51 Richard Stallman
  2005-02-10 13:54 ` Michael Welsh Duggan
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2005-02-07 20:51 UTC (permalink / raw)


[I sent this message twice but did not get a response.]

Would someone please look at this and DTRT and ack?  There is no
particular maintainer of URL, but we need to fix the bugs.
Would someone please fix this one?

------- Start of forwarded message -------
Date: Fri, 7 Jan 2005 13:41:40 +0100 (CET)
From: Klaus Straubinger <KSNetz@Arcor.DE>
To: emacs-pretest-bug@gnu.org
X-SAP: out
Subject: variable url-automatic-caching defined but not used
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
X-Spam-Status: No, hits=0.5 required=5.0
	tests=RCVD_IN_ORBS
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

The file url/url-vars.el defines the variable url-automatic-caching,
but it is not used in the whole URL package anywhere. What is worse,
the current behaviour (i.e., caching always) does not correspond to
the default nil setting of this variable.

The function url-store-in-cache in url-cache.el seems a good place to
implement the intended functionality.

Regards
Klaus Straubinger


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

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

* Re: [KSNetz@Arcor.DE: variable url-automatic-caching defined but not used]
  2005-02-07 20:51 Richard Stallman
@ 2005-02-10 13:54 ` Michael Welsh Duggan
  2005-02-11  7:44   ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Welsh Duggan @ 2005-02-10 13:54 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> [I sent this message twice but did not get a response.]
>
> Would someone please look at this and DTRT and ack?  There is no
> particular maintainer of URL, but we need to fix the bugs.
> Would someone please fix this one?
>
> From: Klaus Straubinger <KSNetz@Arcor.DE>
> Subject: variable url-automatic-caching defined but not used
> To: emacs-pretest-bug@gnu.org
> Date: Fri, 7 Jan 2005 13:41:40 +0100 (CET)
> X-SAP: out
> X-Spam-Status: No, hits=0.5 required=5.0 tests=RCVD_IN_ORBS version=2.55
> X-Spam-Level: 
> X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
>
> The file url/url-vars.el defines the variable url-automatic-caching,
> but it is not used in the whole URL package anywhere. What is worse,
> the current behaviour (i.e., caching always) does not correspond to
> the default nil setting of this variable.
>
> The function url-store-in-cache in url-cache.el seems a good place to
> implement the intended functionality.

I didn't like the idea of making url-store-in-cache work based on the
value of url-automatic-caching, so I think the following patch is the
best simple fix:

Index: url-http.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/url/url-http.el,v
retrieving revision 1.9
diff -u -p -r1.9 url-http.el
--- url-http.el	22 Jan 2005 10:52:28 -0000	1.9
+++ url-http.el	10 Feb 2005 13:51:47 -0000
@@ -413,7 +413,7 @@ should be shown to the user."
 	  ;; Generic success for all others.  Store in the cache, and
 	  ;; mark it as successful.
 	  (widen)
-	  (if (equal url-http-method "GET")
+	  (if (and url-automatic-caching (equal url-http-method "GET"))
 	      (url-store-in-cache (current-buffer)))
 	  (setq success t))))
       (3				; Redirection

-- 
Michael Welsh Duggan
(md5i@cs.cmu.edu)

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

* Re: [KSNetz@Arcor.DE: variable url-automatic-caching defined but not used]
  2005-02-10 13:54 ` Michael Welsh Duggan
@ 2005-02-11  7:44   ` Richard Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2005-02-11  7:44 UTC (permalink / raw)
  Cc: emacs-devel

Thanks.  If no one objects, I will install that in a few days.

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

end of thread, other threads:[~2005-02-11  7:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-22  2:52 [KSNetz@Arcor.DE: variable url-automatic-caching defined but not used] Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2005-02-07 20:51 Richard Stallman
2005-02-10 13:54 ` Michael Welsh Duggan
2005-02-11  7:44   ` Richard Stallman
2005-01-07 23:04 Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).