summaryrefslogtreecommitdiff
path: root/lisp/url
Commit message (Collapse)AuthorAgeFilesLines
* * lisp/url/url-http.el (url-http-codes): Fix mal-formed defconst.Leo Liu2012-05-252-2/+6
|
* mention bug#8706 in the last url-util.el ChangeLog entryTed Zlatanov2012-05-151-1/+1
|
* add url-build-query-string and improve url-parse-query-string as per bug#8706Ted Zlatanov2012-05-152-13/+60
| | | | | | * url/url-util.el (url-build-query-string): New function. (url-parse-query-string): Allow that '=' is not required and split URL parameters on ';', not just '&'.
* Make URL redirection work again.Lars Magne Ingebrigtsen2012-05-142-1/+10
| | | | | | | | The previous changes would make redirection fail, since the expansion would end up with URLs that looked like "http:www.bing.com/hello". * url-expand.el (url-default-expander): Copy over the fullness of the new URL object based on the definition URL object.
* Cleanups and improvements for FFAP and URL.Chong Yidong2012-05-104-46/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | * ffap.el (ffap-url-unwrap-local): Make it work right. Use url-generic-parse-url, and handle host names and Windows filenames properly. (ffap-url-unwrap-remote): Use url-generic-parse-url. (ffap-url-unwrap-remote): Accept list values, specifying a list of URL schemes to work on. (ffap--toggle-read-only): New function. (ffap-read-only, ffap-read-only-other-window) (ffap-read-only-other-frame): Use it. (ffap-fixup-url): Don't check ffap-ftp-regexp, since it is not necessary for ffap-url-unwrap-remote. * url-parse.el (url-path-and-query, url-port-if-non-default): New functions. (url-generic-parse-url): Don't set the portspec slot if it is not specified; that is what `url-port' is for. (url-port): Only require the scheme to be specified to call url-scheme-get-property. * url-util.el (url-encode-url): Use url-path-and-query. * url-vars.el (url-mime-charset-string): Load mm-util lazily. Fixes: debbugs:9131
* * url-util.el (url--allowed-chars): Use upper-case for percent-encoding.Chong Yidong2012-05-092-3/+6
|
* Improve RFC 3986 conformance of url package.Chong Yidong2012-05-096-125/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix 2012-04-10 change to url.el. * url-http.el (url-http-create-request): Ignore obsolete attributes slot of url-object. * url-parse.el: Improve RFC 3986 conformance. (url-generic-parse-url): Do not populate the ATTRIBUTES slot, since this is not reliable for general RFC 3986 URIs. Keep the whole path and query inside the FILENAME slot. Improve docstring. (url-recreate-url-attributes): Mark as obsolete. (url-recreate-url): Handle missing scheme and userinfo. * url-util.el (url-encode-url): New function for URL quoting. (url-encoding-table, url-host-allowed-chars) (url-path-allowed-chars): New constants. (url--allowed-chars): New helper function. (url-hexify-string): Use them. * url-vars.el (url-nonrelative-link): Make the regexp stricter. * url.el (url-retrieve-internal): Use url-encode-url. Fixes: debbugs:7017
* Replace lexical-let by lexical-binding (except Gnus, CEDET, ERT).Stefan Monnier2012-04-262-7/+12
| | | | | | | | | | | | | * lisp/term/ns-win.el (ns-define-service): * lisp/progmodes/pascal.el (pascal-goto-defun): * lisp/progmodes/js.el (js--read-tab): * lisp/progmodes/etags.el (tags-lazy-completion-table): * lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock): * lisp/emacs-lisp/ewoc.el (ewoc--wrap): * lisp/emacs-lisp/assoc.el (aput, adelete, amake): * lisp/doc-view.el (doc-view-convert-current-doc): * lisp/url/url.el (url-retrieve-synchronously): * lisp/vc/diff.el (diff-no-select): Replace lexical-let by lexical-binding.
* Tiny url-util.el code clean-up.Lars Magne Ingebrigtsen2012-04-101-2/+1
|
* Revert previous url-util patch.Lars Magne Ingebrigtsen2012-04-102-10/+3
| | | | The caller can as easily do the decoding themselves.
* (url-retrieve-internal): Hexify multibye URL string first when necessary.William Xu2012-04-102-2/+19
| | | | | | Also mention this in the relevant doc strings. Fixes: debbugs:7017
* Comment trivia.Glenn Morris2012-04-101-1/+3
|
* (url-unhex-string): Add an optional CODING-SYSTEM parameter.Lars Magne Ingebrigtsen2012-04-102-3/+10
| | | | Fixes: debbugs:6252
* Add a policy list of domains that url.el can set cookies forLars Magne Ingebrigtsen2012-04-103-32/+117
| | | | | | | | | | * etc/publicsuffix.txt: New file. * lisp/url/url-cookie.el (url-cookie-two-dot-domains): Remove. (url-cookie-host-can-set-p): Use `url-domsuf-cookie-allowed-p' instead of the variable above. Fixes: debbugs:1401
* Remove * characters from the front of variable docstrings.Chong Yidong2012-04-095-9/+9
|
* Fix race condition in url-queue when doing the callbackLars Magne Ingebrigtsen2012-03-252-1/+7
| | | | | * url-queue.el (url-queue-kill-job): Check whether the buffer has been killed asynchronously before selecting it.
* Always call the callback when timing out url-queue jobsLars Magne Ingebrigtsen2012-03-142-3/+19
| | | | | * url-queue.el (url-queue-kill-job): Make sure that the callback is always called, even if we have a timeout.
* Allow url-http to handle expired keepalive connections.Chong Yidong2012-03-112-10/+31
| | | | | | | | * lisp/url/url-http.el (url-http-end-of-document-sentinel): Handle keepalive expiry by calling url-http again. (url-http): New arg, for the above. Fixes: debbugs:10223
* Bugfix for url-http-find-free-connection.Devon Sean McCullough2012-03-112-23/+30
| | | | | | | * lisp/url/url-http.el (url-http-find-free-connection): Don't pass a nil argument to url-http-mark-connection-as-busy. Fixes: debbugs:10891
* Avoid a race condition in url-queue-kill-jobLars Ingebrigtsen2012-02-202-3/+9
| | | | | | * url-queue.el (url-queue-kill-job): Delete the process sentinel before killing the process to avoid a race condition between the two processes killing off the process buffer.
* Warn instead of erroring when pruning the URL cacheLars Ingebrigtsen2012-02-202-1/+9
| | | | | * url.el (url-retrieve-internal): Warn about file errors when pruning the cache instead of bugging out.
* Make url-queue not kill a random buffer on errorLars Ingebrigtsen2012-02-192-1/+7
| | | | | | * url-queue.el (url-queue-callback-function): Remove the job from the queue so that we don't kill the current buffer, which will then make the callback function kill a random buffer.
* Kill jobs that we remove from the queueLars Ingebrigtsen2012-02-142-6/+16
| | | | | | * url-queue.el (url-queue-kill-job): Refactored out code. (url-queue-remove-jobs-from-host): Use it to kill jobs that are in flight.
* * url-future.el: Minor doc update.Ted Zlatanov2012-02-142-1/+5
|
* Remove unused require in url-future.elLeo Liu2012-02-142-1/+4
|
* Move url-future.el ERT test to test/automated/url-future-tests.el.Ted Zlatanov2012-02-132-27/+4
| | | | | | | * lisp/url/url-future.el (url-future-test): Move to test/automated. * test/automated/url-future-tests.el (url-future-tests): Move from lisp/url/url-future.el and rename.
* Fix typo in last checkin.Lars Ingebrigtsen2012-02-101-1/+1
|
* Cookie/redirection URL fixupLars Ingebrigtsen2012-02-102-1/+7
| | | | | (url-http-parse-headers): When redirecting, pass on the `inhibit-cookie' parameter.
* Fix previous URL doc changeGlenn Morris2012-02-102-3/+7
| | | | | | | | | * lisp/url/url-queue.el (url-queue-retrieve): Fic previous doc fix. * doc/misc/url.texi (Retrieving URLs): Update url-retrieve arguments. Mention url-queue-retrieve. * etc/NEWS: Related edit.
* * url-http.el (url-http-clean-headers): Return the number ofAndreas Schwab2012-02-102-5/+15
| | | | | | removed characters. (url-http-wait-for-headers-change-function): Adjust end position after cleaning the headers. (Bug#10768)
* Document url-queue-retrieveGlenn Morris2012-02-092-4/+9
| | | | | | | | | * doc/misc/url.texi (Retrieving URLs): Update url-retrieve arguments. Mention url-queue-retrieve. * lisp/url/url-queue.el (url-queue-retrieve): Doc fix. * etc/NEWS: Edits.
* Minor-mode doc fixes for ARG behaviorGlenn Morris2012-02-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/completion.el (dynamic-completion-mode): * lisp/dirtrack.el (dirtrack-debug-mode): * lisp/electric.el (electric-layout-mode): * lisp/epa-mail.el (epa-mail-mode, epa-global-mail-mode): * lisp/face-remap.el (text-scale-mode, buffer-face-mode): * lisp/iimage.el (iimage-mode): * lisp/image-mode.el (image-transform-mode): * lisp/minibuffer.el (completion-in-region-mode): * lisp/scroll-lock.el (scroll-lock-mode): * lisp/simple.el (next-error-follow-minor-mode): * lisp/tar-mode.el (tar-subfile-mode): * lisp/tooltip.el (tooltip-mode): * lisp/vcursor.el (vcursor-use-vcursor-map): * lisp/wid-browse.el (widget-minor-mode): * lisp/emulation/tpu-edt.el (tpu-edt-mode): * lisp/emulation/tpu-extras.el (tpu-cursor-free-mode): * lisp/international/iso-ascii.el (iso-ascii-mode): * lisp/language/thai-util.el (thai-word-mode): * lisp/mail/supercite.el (sc-minor-mode): * lisp/net/goto-addr.el (goto-address-mode): * lisp/net/rcirc.el (rcirc-multiline-minor-mode, rcirc-track-minor-mode): * lisp/progmodes/cwarn.el (cwarn-mode): * lisp/progmodes/flymake.el (flymake-mode): * lisp/progmodes/glasses.el (glasses-mode): * lisp/progmodes/hideshow.el (hs-minor-mode): * lisp/progmodes/pascal.el (pascal-outline-mode): * lisp/textmodes/enriched.el (enriched-mode): * lisp/vc/smerge-mode.el (smerge-mode): Doc fixes (minor mode argument). * etc/NEWS: Related markup.
* Allow specifying whether to inhibit cookies on a per-URL basisLars Ingebrigtsen2012-02-085-13/+42
| | | | | | | | | | | | | | | * url-http.el (url-http-create-request): Don't send cookies unless requested. (url-http-parse-headers): Don't store cookies unless requested. * url.el (url-retrieve): Ditto * url-queue.el (url-queue-retrieve): Take an optional `inhibit-cookies' parameter. * url-parse.el (url): Add the `use-cookies' slot to the URL struct to be able to keep track of whether to do cookies or not on a per-URL basis.
* Add extra checks before expiring the URL cacheLars Ingebrigtsen2012-02-062-18/+22
| | | | | (url-cache-prune-cache): Check that the directory exists before trying to delete it.
* Expire URL items from the on-disk cache once in a whileLars Ingebrigtsen2012-02-063-0/+39
| | | | | | | | * url.el (url-retrieve-number-of-calls): New variable. (url-retrieve-internal): Use it to expire the cache once in a while. * url-cache.el (url-cache-prune-cache): New function.
* Try to mitigate DNS failures when downloading stuff asynchronouslyLars Ingebrigtsen2012-02-062-2/+51
| | | | | | | | * url-queue.el (url-queue-setup-runners): New function that uses `run-with-idle-timer' for extra asynchronicity. (url-queue-remove-jobs-from-host): New function. (url-queue-callback-function): Remove jobs from the same host if connection failed.
* Fix typos in ChangeLogs.Juanma Barranquero2012-01-311-11/+10
|
* * url-auth.el (url-digest-auth): Copy previous url-basic-auth change.Glenn Morris2012-01-122-2/+4
|
* url-auth fix for password-protected urls in url-handler-mode.Glenn Morris2012-01-122-0/+6
| | | | | | | * lisp/usr/url-auth.el (url-basic-auth): Allow reading usernames etc when the minibuffer is already in use, eg in url-handler-mode. Fixes: debbugs:10298
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-0532-32/+32
|
* Spelling fixes.Paul Eggert2011-12-301-1/+1
|
* Spelling fixes.Paul Eggert2011-12-141-2/+2
|
* Spelling fixes.Paul Eggert2011-12-112-2/+1
|
* Fix typos.Juanma Barranquero2011-12-061-1/+1
|
* Spelling fixes.Paul Eggert2011-12-042-3/+3
|
* Spelling fixes.Paul Eggert2011-11-261-2/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-171-1/+1
|
* Spelling fixes.Paul Eggert2011-11-172-2/+2
|