1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00
Commit Graph

396 Commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
7a9fc59350 * url-gw.el (url-open-stream): Use open-gnutls-stream if it exists. 2010-10-14 23:35:03 +02:00
Lars Magne Ingebrigtsen
b0e0b216e5 url-http.el (url-http-end-of-document-sentinel): Protect against the
process buffer being killed.
2010-10-07 13:40:42 +02:00
Lars Magne Ingebrigtsen
d23832a2cc (url-http-wait-for-headers-change-function): Revert previous
change.  It lead to really slow loads.
2010-10-04 21:34:35 +02:00
Lars Magne Ingebrigtsen
697ebdb06b * url-http.el (url-http-wait-for-headers-change-function): Protect
against url-http-response-status for degenerate documents.
2010-10-04 21:05:53 +02:00
Glenn Morris
5589b70e57 Cosmetic changes for some lisp/url files.
* lisp/url/url-util.el (url-get-url-filename-chars): Don't eval-and-compile.
(url-get-url-at-point): Don't use eval-when-compile.

* lisp/url/url-cache.el (url-cache-create-filename-human-readable)
(url-cache-create-filename-using-md5):
* lisp/url/url-util.el (url-file-directory, url-file-nondirectory):
Don't use eval-when-compile and regexp-quote.
2010-10-03 14:37:41 -07:00
Lars Magne Ingebrigtsen
b39e244605 url-vars.el (url-mime-charset-string): Changed the default to nil to
avoid sending 1171 bytes of not very useful data to the HTTP server
every request.
2010-10-03 14:43:12 +02:00
Glenn Morris
12421f1c89 url-http.el comment. 2010-10-02 18:30:51 -07:00
Lars Magne Ingebrigtsen
573a83b802 (url-lazy-message): Remove leftover debugging code. 2010-10-02 14:34:02 +02:00
Lars Magne Ingebrigtsen
08b8ba9fae Modify url-retrieve and related functions and structures to respect a
`silent' flag to signal that the operation should be silent.
2010-10-02 04:04:20 +02:00
Lars Magne Ingebrigtsen
82b9f9f5f4 Use url-lazy-message for warnings about ignored cookies.
These messages aren't very interesting for most users.
2010-10-01 16:49:14 +02:00
Lars Magne Ingebrigtsen
6ca26f1d7f (url-http-async-sentinel): Check that the buffer is still alive before
switching to it.
2010-10-01 16:05:25 +02:00
Julien Danjou
cbdd0d5877 Small url-cache fix.
* lisp/url/url-cache.el (url-cache-create-filename): Ensure no-port and
default-port end up with the same cache file.
(url-cache-create-filename-human-readable)
(url-cache-create-filename-using-md5): Argument is always in the form of
a string now.
2010-09-25 13:59:05 -07:00
Chong Yidong
266a86bd7f Merge changes from emacs-23 branch 2010-09-23 15:00:31 -04:00
Glenn Morris
97161df81e * lisp/url/url-cache.el (url-cache-expire-time): Doc fix. 2010-09-22 23:08:57 -07:00
Glenn Morris
8ea8e1744c Fix previous url-cache fix. 2010-09-22 23:04:01 -07:00
Glenn Morris
48ff1664e2 * url-cache.el (url-cache-expired): Don't autoload. Tweak previous change. 2010-09-22 22:59:20 -07:00
Julien Danjou
18d68e52f6 Small url-cache update.
* lisp/url/url-cache.el (url-cache-expire-time): New option.
(url-cache-expired): Rewrite.
2010-09-22 22:56:17 -07:00
Julien Danjou
50e4f0bf34 * lisp/url/url-cache.el (url-fetch-from-cache): New function. 2010-09-19 11:48:11 -07:00
Glenn Morris
77413977a3 Fix ChangeLog typo, mea culpa. 2010-09-18 13:54:55 -07:00
Julien Danjou
b0fd24c81d * lisp/url/url-vars.el (url-automatic-caching): Remove unused variable. 2010-09-18 13:49:25 -07:00
Glenn Morris
7ee54def43 * lisp/url/url-cache.el (url-is-cached): Doc fix. 2010-09-18 13:43:13 -07:00
Juanma Barranquero
6664fc59a8 Merge changes from emacs-23 branch. 2010-09-14 16:41:53 +02:00
Glenn Morris
a5cda60e9a lisp/url tiny fixes.
* url-cache.el, url-gw.el, url-history.el, url-irc.el, url-util.el:
* url-vars.el: Remove leading `*' from defcustom docs.
2010-09-10 18:58:42 -07:00
Julien Danjou
6f6dc4da1d * lisp/url/url-cache (url-store-in-cache): Make `buff' argument really optional. 2010-09-10 18:55:55 -07:00
Glenn Morris
c4ae64d106 * lisp/url/url-cookie.el (url-cookie-expired-p): Tweak previous change. 2010-09-08 22:38:43 -07:00
shawn boles
966bb6c005 * lisp/url/url-cookie.el (url-cookie-expired-p): Simplify and fix. (Bug#6957) 2010-09-08 22:36:13 -07:00
Juanma Barranquero
0ed082fedf Merge from emacs-23 2010-07-27 04:10:05 +02:00
Michael Albinus
c48763bb79 * url-http (url-http-parse-headers): Disable file name handlers at
all (not only Tramp).  (Bug#6717)
2010-07-26 15:19:32 +02:00
Michael Albinus
4ac3a65cf1 * url-http (url-http-parse-headers): Disable Tramp. (Bug#6717) 2010-07-25 13:36:02 +02:00
Juanma Barranquero
a628ad9d97 Fix typos in ChangeLogs. 2010-07-20 13:13:25 +02:00
Chong Yidong
2ec1b5ee34 Merge changes from emacs-23 branch. 2010-07-10 14:52:53 -04:00
Mark A. Hershberger
e4f6153f96 2010-07-01 Mark A. Hershberger <mah@everybody.org>
* url-http.el (url-http-create-request): Add a CRLF on the end so
  that POSTs with content to https urls work. See
  <https://bugs.launchpad.net/mediawiki-el/+bug/540759>


Prior to this, the following request would not terminate:

(let ((url-request-method "POST")
             (url-request-data "action=login"))
         (url-retrieve-synchronously "https://example.org/wiki/api.php"))
2010-07-01 14:02:43 -04:00
Mark A. Hershberger
04c2373982 Add in some useful convenience functions for handling HTTP. 2010-06-22 12:48:53 -04:00
Glenn Morris
2b1b005c76 * lisp/url/ChangeLog: Standardize author name . 2010-06-21 20:20:24 -07:00
Stefan Monnier
2a64315a11 Merge from emacs-23 2010-06-16 16:08:41 -04:00
Štěpán Němec
7fb277a9f0 Close bug#6406.
* lisp/url/url-vars.el (url-privacy-level): Fix doc typo.
2010-06-12 00:25:20 -07:00
Stefan Monnier
171eda5358 Merge from emacs-23 2010-05-24 20:54:13 -04:00
Stefan Monnier
c3bb441dd0 * url-util.el (url-unhex-string): Don't accidentally decode as latin-1.
* editfns.c (Fbyte_to_string): New function.
* NEWS: Add sections for Emacs-23.3.
2010-05-19 11:23:53 -04:00
Stefan Monnier
0235128c15 Merge from emacs-23 2010-05-08 14:47:07 -04:00
Chong Yidong
61a808e819 Bump version to 23.2. 2010-05-07 23:28:26 -04:00
Stefan Monnier
56eb09046e Use define-minor-mode where applicable.
* mh-show.el (mh-showing-mode): Move function to mh-e.el.
* mh-e.el (mh-showing-mode):
* url-dired.el (url-dired-minor-mode):
* org-table.el (orgtbl-mode):
* view.el (view-mode):
* type-break.el (type-break-query-mode)
(type-break-mode-line-message-mode):
* textmodes/reftex.el (reftex-mode):
* term/vt100.el (vt100-wide-mode):
* tar-mode.el (tar-subfile-mode):
* savehist.el (savehist-mode):
* ibuf-ext.el (ibuffer-auto-mode):
* composite.el (auto-composition-mode):
* progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
Use define-minor-mode.
(vhdl-mode): Use static mode-line format.
(vhdl-mode-line-update): Delete.
(vhdl-create-mode-menu, vhdl-activate-customizations)
(vhdl-hs-minor-mode): Don't bother calling it.
2010-05-02 22:29:46 -04:00
Ted Zlatanov
89734fb6f6 Fix wrong variable name.
(url-http-parse-headers): Fix wrong variable name.
2010-03-24 20:14:42 -05:00
Ted Zlatanov
1e9d758c2f Add a list of HTTP status code symbols and their text, mapped by number.
* url-http.el (url-http-codes): New variable to hold a mapping of
HTTP status codes' numbers, their symbolic name, and their text.
(url-http-parse-headers): Use it, leaving the original numeric
code in a comment.
2010-03-24 04:30:28 -05:00
Glenn Morris
aa8f82773f Stop message.el from loading about 40 libraries it doesn't always need.
The general approach is to autoload rather than require, and to
require in the specific functions rather than the file.  (Bug#5642)

* url/url.el: Move mailcap require earlier in the file.

* gnus/gmm-utils.el: Don't require wid-edit.
(widget-create-child-value, widget-convert, widget-default-get):
Autoload.

* gnus/gnus-util.el: Don't require time-date, netrc.
(message-fetch-field, gnus-group-name-decode): Declare rather than
autoloading.
(gnus-fetch-field): Require message.
(gnus-decode-newsgroups): Require gnus-group.

* gnus/ietf-drums.el: Don't require time-date.

* gnus/message.el: Don't require hashcash, canlock, ecomplete.
Do require mail-utils.  Require nnheader only when compiling.
(smtpmail-default-smtp-server): Remove declaration.
(message-send-mail-function): Check smtpmail-default-smtp-server
is bound rather than requiring smtpmail.
(message-auto-save-directory, message-insert-signature): Use
expand-file-name rather than nnheader-concat.
(nnheader-insert-file-contents): Autoload.
(hashcash-wait-async): Declare.
(message-send-mail): Only call gnus-setup-posting-charset if
gnus-group-posting-charset-alist is bound.  Require hashcash if needed.
(message-send-mail-with-sendmail): Require sendmail.
(canlock-password, canlock-password-for-verify): Declare.
(message-canlock-password): Require canlock.
(nnheader-get-report): Autoload.
(gnus-setup-posting-charset): Declare.
(message-send-news): Require gnus-msg.
(message-make-references, message-make-in-reply-to): Use mail-header-id
rather than the alias mail-header-message-id.
(ecomplete-add-item, ecomplete-save): Declare.
(message-put-addresses-in-ecomplete): Require ecomplete.
(ecomplete-display-matches): Autoload.

* gnus/mm-decode.el: Don't require mailcap, gnus-util.
(gnus-map-function, gnus-replace-in-string, gnus-read-shell-command)
(message-fetch-field, mailcap-parse-mailcaps, mailcap-mime-info):
Autoload.
(mailcap-mime-extensions): Declare.

* gnus/mm-encode.el: Don't require mailcap.
(mailcap-extension-to-mime): Autoload.

* gnus/mml-sec.el: Don't require password-cache.

* gnus/mml.el (gnus-setup-posting-charset): Declare rather than autoload.
(mailcap-parse-mimetypes, mailcap-mime-types): Declare.
(mml-minibuffer-read-type): Require mailcap.
(mml-preview): Require gnus-msg.

* gnus/mml1991.el: Require password-cache.
(password-cache-expiry): Remove declaration.

* gnus/mml2015.el: Require password-cache.
(password-cache-expiry): Remove declaration.

* gnus/nneething.el (mailcap): Require mailcap.

* gnus/nnheader.el: (declare-function): Add compatibility stub.
(message-remove-header): Declare rather than autoload.
(nnheader-replace-header): Require message.

* gnus/nnimap.el (declare-function): Add compatibility stub.
(netrc-parse, netrc-machine-user-or-password): Declare.
(nnimap-open-connection): Require netrc.

* gnus/nntp.el (declare-function): Add compatibility stub.
(netrc-parse, netrc-machine, netrc-get): Declare.
(nntp-send-authinfo): Require netrc.

* gnus/rfc2047.el: Don't require qp.
(quoted-printable-encode-region, quoted-printable-decode-string):
Autoload.

* gnus/sieve-mode.el: Don't require easymenu.
(easy-menu-add-item): Autoload it.

* gnus/spam-stat.el (time-to-number-of-days): Autoload it.

* password-cache.el (password-cache, password-cache-expiry):
Autoload.
2010-03-18 19:55:37 -07:00
Chong Yidong
26f4b8abb8 Fix last change to use existing comm Custom group instead of `net'.
* cus-edit.el (net): Remove group.
(comm): Promote to top-level group.

* url/url-vars.el (url):
* net/browse-url.el (browse-url):
* net/xesam.el (xesam):
* net/tramp.el (tramp):
* net/goto-addr.el (goto-address):
* net/ange-ftp.el (ange-ftp): Put in comm group.
2010-03-12 14:13:38 -05:00
Chong Yidong
eba5b4dd16 Reorganize Custom groups.
* cus-edit.el (processes): Remove from development group.
(oop, hypermedia): Delete group.
(net): New group.

* url/url-vars.el (url):
* net/browse-url.el (browse-url):
* net/xesam.el (xesam):
* net/tramp.el (tramp):
* net/goto-addr.el (goto-address):
* net/ange-ftp.el (ange-ftp): Put in net group.

* view.el (view): Remove from editing group.

* uniquify.el (uniquify): Put in files group.

* net/browse-url.el (browse-url):
* ps-print.el (postscript): Put in external group.

* cus-edit.el (outlines):
* textmodes/text-mode.el (text-mode-hook):
* textmodes/table.el (table):
* textmodes/picture.el (picture):
* outline.el (outlines): Put in wp group.

* nxml/nxml-mode.el (nxml): Remove from wp group.

* net/tramp-imap.el (tramp-imap): Put in tramp group.

* mail/metamail.el (metamail): Remove from hypermedia group.

* cus-edit.el (abbrev):
* whitespace.el (whitespace):
* vcursor.el (vcursor):
* reveal.el (reveal):
* hl-line.el (hl-line): Put in convenience group.

* epg-config.el (epg): Put in data group.

* emulation/pc-select.el (pc-select): Put in emulations group.

* calculator.el (calculator): Put in applications group.

* org/org.el (org): Remove from hypermedia group.
2010-03-12 12:47:22 -05:00
Chong Yidong
288f9fc069 Bump version to 24.0.50. 2010-03-10 10:17:13 -05:00
Chong Yidong
e17d428f7a * url-util.el: Require url-vars (Bug#5459). 2010-01-23 17:50:13 -05:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Juanma Barranquero
5ce6e4f452 Fix typos in ChangeLogs. 2009-12-29 02:57:40 +01:00