1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

730 Commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
8a44a18468 Add the zlib prefix to `decompress-gzipped-region' 2013-08-12 15:54:45 +02:00
Lars Magne Ingebrigtsen
6edea0a595 Add Content-Transfer gzip support to url
* url-http.el (url-handle-content-transfer-encoding): Support
decompressing gzipped content.

* url-vars.el (url-mime-encoding-string): If we have built-in gzip
support, say that we accept gzipped content.
2013-08-11 22:52:50 +02:00
Stefan Monnier
42d439528d * lisp/url/url-handlers.el (url-file-name-completion)
(url-file-name-all-completions): Don't signal errors.

Fixes: debbugs:14806
2013-07-31 00:19:09 -04:00
Stefan Monnier
3a3f390d1b * lisp/url/url-http.el (status): Remove, unused.
(success): Remove var.
(url-http-handle-authentication): Return the value that `success'
should take instead of setting `success' directly.  Don't set `status'
since it's not used.
(url-http-parse-headers): Avoid unneeded setq.
Move the `setq success'.
(url-http): Use pcase.
(url-http-file-exists-p): Simplify.
2013-07-22 00:06:21 -04:00
Lars Magne Ingebrigtsen
2b4f050643 Add bookmark support to eww
* net/eww.el (eww-mode): Undo isn't necessary in eww buffers,
probably.
(eww-mode-map): Add a menu bar.
(eww-add-bookmark): New command.
(eww-bookmark-mode): New mode and commands.
2013-06-26 18:54:48 +02:00
Lars Magne Ingebrigtsen
843571cba9 Implement a command and mode for displaying and editing cookies 2013-06-26 14:54:33 +02:00
Glenn Morris
6bfd7cd07a * lisp/url/url-future.el (url-future-call): Remove useless value call.
An earlier version of this function returned the value, ref
http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00708.html
but now it returns the function (see commentary).
2013-06-20 23:32:50 -07:00
Glenn Morris
c2fc00be72 Fix declaration typo 2013-05-23 00:42:16 -07:00
Glenn Morris
be32a13ff5 * lisp/url/url.el (mm-dissect-buffer, mm-display-part): Declare. 2013-05-22 21:58:09 -07:00
Glenn Morris
af74224803 Add some declarations to url-handlers.el
* lisp/url/url-handlers.el (mm-save-part-to-file, mm-destroy-parts)
(mm-decode-string, mail-content-type-get): Declare.
2013-05-22 00:30:44 -07:00
Glenn Morris
f440830d60 Silence some compiler warnings
* calculator.el (electric, ehelp): No need to load when compiling.
(Electric-command-loop, electric-describe-mode): Declare.

* doc-view.el (doc-view-current-converter-processes): Move before use.

* files.el (dired-unmark):
* progmodes/gud.el (gdb-input): Update declarations.

* emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Move MODE-set-explicitly definition before use.

* erc/erc-log.el (erc-network-name): Declare.

* erc/erc-notify.el (pcomplete--here): Declare.
(pcomplete/erc-mode/NOTIFY): Require pcomplete.

* international/mule-diag.el (mule-diag):
Don't use obsolete window-system-version.

* mail/feedmail.el (smtpmail): No need to load when compiling.
(smtpmail-via-smtp, smtpmail-smtp-server): Declare.

* mail/mail-utils.el (rfc822): No need to load when compiling.
(rfc822-addresses): Autoload it.
(mail-strip-quoted-names): Trivial simplification.

* mail/rmail.el (rmail-mime-message-p, rmail-mime-toggle-raw): Declare.
(rmail-retry-failure): Don't assume that rmail-mime-feature == rmailmm.

* net/snmp-mode.el (tempo): Don't duplicate requires.

* progmodes/prolog.el (info): No need to load when compiling.
(comint): Require before shell requires it.
(Info-goto-node): Autoload it.
(Info-follow-nearest-node): Declare.
(prolog-help-info, prolog-goto-predicate-info): No need to require info.

* textmodes/artist.el (picture-mode-exit): Declare.

* textmodes/reftex-parse.el (reftex-parse-from-file):
Trivial rewrite so the compiler can parse it better.

* url/url-dav.el (url-http): Require it.
(url-http-head-file-attributes): Don't autoload it.

* url/url-proxy.el (url-http): Autoload it.
2013-05-21 00:25:14 -07:00
Glenn Morris
ed8be7ff74 Misc custom group fixes
* cus-start.el (show-trailing-whitespace): Move to editing basics.
* faces.el (trailing-whitespace): Don't use whitespace-faces group.
* obsolete/old-whitespace.el (whitespace-faces): Remove group.
(whitespace-highlight): Move to whitespace group.

* comint.el (comint-source):
* pcmpl-linux.el (pcmpl-linux):
* shell.el (shell-faces):
* eshell/esh-opt.el (eshell-opt):
* international/ccl.el (ccl): Remove empty custom groups.

* completion.el (dynamic-completion-mode):
* jit-lock.el (jit-lock-debug-mode):
* minibuffer.el (completion-in-region-mode):
* type-break.el (type-break-mode-line-message-mode)
(type-break-query-mode):
* emulation/tpu-edt.el (tpu-edt-mode):
* progmodes/subword.el (global-subword-mode, global-superword-mode):
* progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
* term/vt100.el (vt100-wide-mode): Specify explicit :group.

* term/xterm.el (xterm): Change parent group to terminals.

* master.el (master): Remove empty custom group.
(master-mode): Remove unused :group argument.
* textmodes/refill.el (refill): Remove empty custom group.
(refill-mode): Remove unused :group argument.

* textmodes/rst.el (rst-compile-toolsets): Use rst-compile group.

* cedet/semantic/symref/list.el (semantic-symref-auto-expand-results)
(semantic-symref-results-mode-hook)
(semantic-symref-results-summary-function): Fix :group.

* erc/erc-list.el (erc-list):
* erc/erc-menu.el (erc-menu):
* erc/erc-ring.el (erc-ring): Define custom groups, for define-erc-module.

* gnus/shr-color.el (shr-color-visible-luminance-min)
(shr-color-visible-distance-min): Use shr-color group.

* url/url-news.el (url-news): Remove empty custom group.
2013-05-15 19:55:41 -04:00
Glenn Morris
fe2219e202 url-http-wait-for-headers-change-function fix for bug#13598
* lisp/url/url-http.el (url-http-wait-for-headers-change-function):
Avoid prematurely finding the end of headers when they arrive line-by-line.
2013-02-15 21:05:32 -05:00
Stefan Monnier
37a5665636 * lisp/url/url-cache.el (url-cache-create-filename-using-md5): Don't waste your
time `requiring' a builtin feature.
* lisp/subr.el (internal--called-interactively-p--get-frame): Remove
left-over message.
2013-02-03 11:13:36 -05:00
Paul Eggert
0877d0dc24 Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca 2013-01-02 08:13:04 -08:00
Paul Eggert
ab422c4d68 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
Takafumi Arakaki
33d359875a Two fixes for the URL library (tiny change).
* url-expand.el (url-default-expander): Don't calculate a default
url port before checking url-type.

* url-http.el (url-http-end-of-document-sentinel): Bind relevant
url-request-* variables around the call to url-http.

Fixes: debbugs:11469 debbugs:12374
2012-12-22 10:59:08 +08:00
Chong Yidong
1c960c45ac * lisp/url/url-misc.el (url-do-terminal-emulator): Use make-term
instead of terminal-emulator.
2012-12-03 14:23:06 +08:00
Chong Yidong
eaf5afb747 * url-parse.el (url-path-and-query): Minor doc fix. 2012-11-17 14:48:51 +08:00
Glenn Morris
3071811230 Comment 2012-10-13 13:17:16 -07:00
Liam Stitt
076a4db2fe Add .xz to some url code (tiny change).
* url-vars.el (url-uncompressor-alist):
* url-file.el (url-file-find-possibly-compressed-file, url-file):
Recognize .xz compression.

Fixes: debbugs:11839
2012-10-13 18:51:26 +08:00
Chong Yidong
b1367cba38 Doc fix for url-http.
* url-http.el (url-http):
* url.el (url-retrieve-internal): Doc fix.

Fixes: debbugs:6407
2012-10-13 17:37:25 +08:00
Glenn Morris
97fbed8759 Fix for url-https.el neing merged into url-http.el
* lisp/url/url-methods.el (url-scheme-get-property): url-https.el was
merged into url-http.el, so load the latter for https.

Fixes: debbugs:12599
2012-10-08 00:47:23 -07:00
Stefan Monnier
e79186e5b9 * lisp/url/url-http.el (url-http-user-agent-string): Leak less info.
(url-http, url-http-file-exists-p, url-http-file-readable-p)
(url-http-file-attributes, url-http-options, url-https-default-port)
(url-https-asynchronous-p): Don't autoload.
2012-10-01 23:48:01 -04:00
Stefan Monnier
23855148a2 * lisp/url/url-handlers.el (url-file-handler): Don't assume any url-FOO
function is a good handler for FOO.
(url-copy-file, url-file-local-copy, url-insert-file-contents)
(url-file-name-completion, url-file-name-all-completions)
(url-handlers-create-wrapper): Explicitly register as handler.
2012-09-29 23:26:52 -04:00
Bastien Guerry
04558d31ab url-util.el: Fix two docstrings. 2012-09-29 22:45:44 +02:00
Chong Yidong
59f7af816e Use declare forms, where possible, to mark obsolete functions.
* lisp/allout.el (allout-passphrase-hint-string): Likewise.
(allout-init): Use a declare form to mark obsolete.

* lisp/calendar/calendar.el (calendar-version):
* lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
(icalendar-convert-diary-to-ical):
* lisp/cus-edit.el (custom-mode):
* lisp/ansi-color.el (ansi-color-unfontify-region):
* lisp/international/latin1-disp.el (latin1-char-displayable-p):
* lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
* lisp/progmodes/which-func.el (which-func-update-1): Use
define-obsolete-function-alias.

* lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
this function obsolete.

* lisp/calendar/cal-x.el (calendar-two-frame-setup)
(calendar-only-one-frame-setup, calendar-one-frame-setup):
* lisp/calendar/calendar.el (american-calendar, european-calendar)
(calendar-for-loop):
* lisp/comint.el (comint-dynamic-simple-complete)
(comint-dynamic-complete-as-filename, comint-unquote-filename):
* lisp/desktop.el (desktop-load-default):
* lisp/dired-x.el (dired-omit-here-always)
(dired-hack-local-variables, dired-default-directory):
* lisp/emacs-lisp/derived.el (derived-mode-class):
* lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
* lisp/emacs-lock.el (toggle-emacs-lock):
* lisp/epa.el (epa-display-verify-result):
* lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
(epg-passphrase-callback-function):
* lisp/eshell/esh-util.el (eshell-for):
* lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
(eshell-add-to-window-buffer-names):
* lisp/files.el (locate-file-completion):
* lisp/imenu.el (imenu-example--create-c-index)
(imenu-example--create-lisp-index)
(imenu-example--lisp-extract-index-name)
(imenu-example--name-and-position):
* lisp/international/mule-cmds.el (princ-list):
* lisp/international/mule-diag.el (decode-codepage-char):
* lisp/international/mule-util.el (detect-coding-with-priority):
* lisp/iswitchb.el (iswitchb-read-buffer):
* lisp/mail/mailalias.el (mail-complete):
* lisp/mail/sendmail.el (mail-sent-via):
* lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
(mouse-major-mode-menu):
* lisp/password-cache.el (password-read-and-add):
* lisp/pcomplete.el (pcomplete-parse-comint-arguments):
* lisp/progmodes/sh-script.el (sh-maybe-here-document):
* lisp/replace.el (query-replace-regexp-eval):
* lisp/savehist.el (savehist-load):
* lisp/simple.el (choose-completion-delete-max-match):
* lisp/term.el (term-dynamic-simple-complete):
* lisp/vc/ediff-init.el (ediff-check-version):
* lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
* lisp/vc/vc.el (vc-diff-switches-list):
* lisp/view.el (view-return-to-alist-update): Likewise.

* lisp/iswitchb.el (iswitchb-read-buffer): Move code of
iswitchb-define-mode-map here, and delete that obsolete function.

* lisp/subr.el (eval-next-after-load, makehash, insert-string)
(assoc-ignore-representation, assoc-ignore-case): Use declare to
mark obsolete.
(mode-line-inverse-video): Variable deleted.

* lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
this applies to functions.

* lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.

* lisp/international/mule-util.el (string-to-sequence): Remove.

* lisp/net/newst-backend.el (newsticker-cache-filename):
* lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
incorrect obsolescence declaration.

* lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
font-lock-reference-face.

* lisp/url/url-parse.el (url-recreate-url-attributes):
* lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
obsolete.

* src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
2012-09-25 12:13:02 +08:00
Chong Yidong
865fe16fd2 Update docstrings and comments to use "init file" terminology.
* bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
* comint.el (comint-prompt-read-only):
* custom.el (defcustom):
* hi-lock.el (hi-lock-mode):
* ibuffer.el (ibuffer-formats):
* ielm.el (ielm-prompt-read-only):
* novice.el (disable-command):
* saveplace.el (toggle-save-place):
* speedbar.el (speedbar-supported-extension-expressions):
* startup.el (auto-save-list-file-prefix, init-file-user)
(after-init-hook, inhibit-startup-echo-area-message):
* strokes.el (strokes-help):
* time-stamp.el (time-stamp):
* calendar/calendar.el (calendar, diary-file):
* calendar/diary-lib.el (diary-mail-entries, diary)
(diary-list-entries-hook):
* calendar/holidays.el (holidays, calendar-holidays):
* calendar/lunar.el (lunar-phases):
* calendar/solar.el (sunrise-sunset):
* emulation/edt.el (edt-load-keys):
* emulation/viper.el (viper-mode):
* eshell/em-alias.el (eshell-command-aliases-list):
* eshell/esh-util.el (eshell-convert-numeric-arguments):
* international/ogonek.el (ogonek-information):
* net/tramp-cmds.el (tramp-bug):
* net/quickurl.el (quickurl-reread-hook-postfix):
* play/decipher.el (decipher-font-lock-keywords):
* progmodes/cc-styles.el (c-set-style):
* progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/octave-mod.el (octave-mode):
* progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
* progmodes/verilog-mode.el (verilog-read-defines):
* textmodes/two-column.el (2C-mode): Likewise.
2012-09-17 13:41:04 +08:00
Glenn Morris
2a1e24765b Replace version 24.2 with 24.3 where appropriate (hopefully) 2012-08-15 09:29:11 -07:00
Stefan Monnier
89534796c8 * lisp/url/url-http.el (url-http-parse-headers): Re-enable file-name-handlers.
Fixes: debbugs:11981
2012-08-14 10:54:51 -04:00
David Engster
577d5eea9a * lisp/url/url-util.el (url-file-directory, url-file-nondirectory): Avoid
file-name-directory and file-name-nondirectory internally.

Fixes: debbugs:11981
2012-08-12 13:35:15 -04:00
Jason Rumney
46fab912d8 Last change fixes Bug#12069 2012-08-11 22:50:28 +08:00
Jason Rumney
4ed1626da6 * lisp/url/url-http.el (url-http-create-request): Use url-http-proxy to
look up proxy credentials.
2012-08-11 22:48:37 +08:00
David Engster
7fa20d96f1 Fix various issues with url-dav package (Bug#11916).
* url-dav.el (url-dav-supported-p): Added doc-string and remove
check for feature `xml' and function `xml-expand-namespace' which
never existed in Emacs proper.
(url-dav-process-response): Remove all indentation and newlines
from XML before parsing.  Change call to `xml-parse-region' to do
namespace expansion with simple qualified names (Bug#11916).
(url-dav-request): Add autoload.
(url-dav-directory-files): Properly deal with empty directories.
Unhex URL before generating relative URLs.
(url-dav-file-directory-p): Fix check for 'DAV:collection.
2012-07-28 13:07:17 +02:00
Juanma Barranquero
ed9265fc7d Fix typos in ChangeLogs. 2012-07-14 04:08:32 +02:00
Stefan Monnier
a464a6c73a More CL cleanups and reduction of use of cl.el.
* woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
* vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
* textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
* strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
* progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
* play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
* play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
* net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
* image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
* eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
* eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
* eshell/em-cmpl.el, eshell/em-banner.el:
* url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
* url/url-future.el, url/url-dav.el, url/url-cookie.el:
* calendar/parse-time.el, test/eshell.el: Use cl-lib.
* wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
* vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
* textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
* term/ns-win.el, term.el, shell.el, ps-samp.el:
* progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
* progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
* play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
* net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
* net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
* mail/mailheader.el, mail/feedmail.el:
* url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
* url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
Dont use CL.
* ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
* eshell/esh-opt.el (eshell-eval-using-options): Quote code with
`lambda' rather than with `quote'.
(eshell-do-opt): Adjust accordingly.
(eshell-process-option): Simplify.
* eshell/esh-var.el:
* eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
* emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
(pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
to `pcase--dontcare'.
* emacs-cl.el (labels): Mark obsolete.
(cl--letf, letf): Move to cl-lib.
(cl--letf*, letf*): Remove.
* emacs-cl-lib.el (cl-nth-value): Use defalias.
* emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
(cl-progv): Rewrite.
(cl--letf, cl-letf): Move from cl.el.
(cl-letf*): New macro.
* emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
2012-07-11 19:13:41 -04:00
Glenn Morris
938beca46e * url-vars.el (mm-mime-mule-charset-alist, mm-coding-system-p): Declare. 2012-06-30 14:13:05 -07:00
Chong Yidong
a3f10d3e4b * url.el (url-retrieve-internal): Fix last change.
Fixes: debbugs:11627
2012-06-21 17:21:28 +08:00
Juanma Barranquero
22c4001c8e lisp/url/url-handlers.el (url-handler-regexp): Declare. 2012-06-13 18:25:03 +02:00
Chong Yidong
47fc1d6ba8 * url-handlers.el: Re-order file to avoid recursive load. 2012-06-12 18:00:53 +08:00
Chong Yidong
f1a4e679f3 Various minor variable/hook cleanups.
* lisp/emacs-lisp/edebug.el (edebug-inhibit-emacs-lisp-mode-bindings):
Rename from gud-inhibit-global-bindings.

* lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-hooks): Doc fix.

* lisp/erc/erc-dcc.el (erc-dcc-chat-filter-functions): Rename from
erc-dcc-chat-filter-hook, since this is an abnormal hook.

* lisp/nxml/nxml-glyph.el (nxml-glyph-set-functions): Rename abnormal
hook from nxml-glyph-set-hook.

* lisp/progmodes/cwarn.el (cwarn-mode): Remove redundant variable
declaration.

* lisp/progmodes/pascal.el (pascal-toggle-completions): Doc fix.

* lisp/textmodes/bibtex.el (bibtex-string-file-path, bibtex-file-path):
Convert to defcustom.

* lisp/url/url-handlers.el (url-handler-regexp):
* lisp/url/url-nfs.el (url-nfs-automounter-directory-spec):
* lisp/url/url-vars.el (url-load-hook): Convert to defcustom.
2012-06-12 13:47:14 +08:00
Leo Liu
9979ea1c6c * lisp/url/url-http.el (url-http-codes): Fix mal-formed defconst. 2012-05-25 18:19:01 +08:00
Ted Zlatanov
4f0f72be56 mention bug#8706 in the last url-util.el ChangeLog entry 2012-05-15 04:53:49 -04:00
Ted Zlatanov
530e968e58 add url-build-query-string and improve url-parse-query-string as per bug#8706
* 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 '&'.
2012-05-15 04:47:38 -04:00
Lars Magne Ingebrigtsen
ac9f0b75eb Make URL redirection work again.
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.
2012-05-14 09:56:04 +02:00
Chong Yidong
9f9aa0448a Cleanups and improvements for FFAP and URL.
* 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
2012-05-10 14:27:12 +08:00
Chong Yidong
bdac2d37fa * url-util.el (url--allowed-chars): Use upper-case for percent-encoding. 2012-05-09 20:20:26 +08:00
Chong Yidong
ce7b18ec41 Improve RFC 3986 conformance of url package.
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
2012-05-09 16:33:48 +08:00
Stefan Monnier
e95a67dc75 Replace lexical-let by lexical-binding (except Gnus, CEDET, ERT).
* 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.
2012-04-26 08:43:28 -04:00
Lars Magne Ingebrigtsen
d3f7611b03 Tiny url-util.el code clean-up. 2012-04-10 19:03:34 +02:00
Lars Magne Ingebrigtsen
8d8d31f91e Revert previous url-util patch.
The caller can as easily do the decoding themselves.
2012-04-10 19:02:04 +02:00
William Xu
a967e26b40 (url-retrieve-internal): Hexify multibye URL string first when necessary.
Also mention this in the relevant doc strings.

Fixes: debbugs:7017
2012-04-10 13:22:08 +02:00
Glenn Morris
78658677a2 Comment trivia. 2012-04-10 00:15:09 -07:00
Lars Magne Ingebrigtsen
4bbc3323df (url-unhex-string): Add an optional CODING-SYSTEM parameter.
Fixes: debbugs:6252
2012-04-10 04:14:13 +02:00
Lars Magne Ingebrigtsen
9ea49b28ab Add a policy list of domains that url.el can set cookies for
* 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
2012-04-10 03:57:45 +02:00
Chong Yidong
fb7ada5f94 Remove * characters from the front of variable docstrings. 2012-04-09 21:05:48 +08:00
Lars Magne Ingebrigtsen
e0fe1d5589 Fix race condition in url-queue when doing the callback
* url-queue.el (url-queue-kill-job): Check whether the buffer has
been killed asynchronously before selecting it.
2012-03-25 15:38:22 +02:00
Lars Magne Ingebrigtsen
cc2ab73270 Always call the callback when timing out url-queue jobs
* url-queue.el (url-queue-kill-job): Make sure that the callback
is always called, even if we have a timeout.
2012-03-14 03:44:09 +01:00
Chong Yidong
091006330e Allow url-http to handle expired keepalive connections.
* 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
2012-03-11 23:12:26 +08:00
Devon Sean McCullough
179f69112d Bugfix for url-http-find-free-connection.
* 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
2012-03-11 17:43:01 +08:00
Lars Ingebrigtsen
27e7172ced Avoid a race condition in url-queue-kill-job
* 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.
2012-02-20 13:12:48 +01:00
Lars Ingebrigtsen
1e54a73bf0 Warn instead of erroring when pruning the URL cache
* url.el (url-retrieve-internal): Warn about file errors when
pruning the cache instead of bugging out.
2012-02-20 09:22:41 +01:00
Lars Ingebrigtsen
55645c6797 Make url-queue not kill a random buffer on error
* 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.
2012-02-19 09:49:09 +01:00
Lars Ingebrigtsen
f15bcb40f4 Kill jobs that we remove from the queue
* 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.
2012-02-14 19:43:21 +01:00
Ted Zlatanov
e72a771d50 * url-future.el: Minor doc update. 2012-02-14 08:18:05 -05:00
Leo Liu
1deeb569b1 Remove unused require in url-future.el 2012-02-14 10:14:43 +08:00
Ted Zlatanov
6c0c7cfc67 Move url-future.el ERT test to test/automated/url-future-tests.el.
* 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.
2012-02-13 13:45:36 -05:00
Lars Ingebrigtsen
3647f557cf Fix typo in last checkin. 2012-02-10 18:30:39 +01:00
Lars Ingebrigtsen
3b8eb822d9 Cookie/redirection URL fixup
(url-http-parse-headers): When redirecting, pass on
the `inhibit-cookie' parameter.
2012-02-10 18:25:31 +01:00
Glenn Morris
a48ec60ca1 Fix previous URL doc change
* 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.
2012-02-10 09:22:09 -08:00
Andreas Schwab
d7c5e1622f * url-http.el (url-http-clean-headers): Return the number of
removed characters.
	(url-http-wait-for-headers-change-function): Adjust end position
	after cleaning the headers.  (Bug#10768)
2012-02-10 12:36:42 +01:00
Glenn Morris
b74c9672c2 Document url-queue-retrieve
* 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.
2012-02-09 22:23:47 -05:00
Glenn Morris
e1ac4066d1 Minor-mode doc fixes for ARG behavior
* 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.
2012-02-07 21:12:24 -05:00
Lars Ingebrigtsen
aacaa41911 Allow specifying whether to inhibit cookies on a per-URL basis
* 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.
2012-02-08 01:04:42 +01:00
Lars Ingebrigtsen
7dd679eb09 Add extra checks before expiring the URL cache
(url-cache-prune-cache): Check that the directory exists before
trying to delete it.
2012-02-06 22:37:56 +01:00
Lars Ingebrigtsen
1968bb1b5c Expire URL items from the on-disk cache once in a while
* 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.
2012-02-06 22:06:15 +01:00
Lars Ingebrigtsen
b6ea20f39c Try to mitigate DNS failures when downloading stuff asynchronously
* 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.
2012-02-06 02:13:24 +01:00
Juanma Barranquero
6df6ae42fe Fix typos in ChangeLogs. 2012-01-31 17:15:03 +01:00
Glenn Morris
e7a8cb8f82 * url-auth.el (url-digest-auth): Copy previous url-basic-auth change. 2012-01-12 00:14:41 -08:00
Glenn Morris
d8d469ef27 url-auth fix for password-protected urls in url-handler-mode.
* 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
2012-01-12 00:11:24 -08:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Paul Eggert
22bcf20469 Spelling fixes. 2011-12-30 17:27:15 -08:00
Paul Eggert
fac916bfd7 Spelling fixes. 2011-12-14 13:05:20 -08:00
Paul Eggert
333f9019e2 Spelling fixes. 2011-12-11 21:32:49 -08:00
Juanma Barranquero
a98edce9ec Fix typos. 2011-12-06 02:30:54 +01:00
Paul Eggert
c80e3b4aed Spelling fixes. 2011-12-04 00:02:42 -08:00
Paul Eggert
e47695319f Spelling fixes. 2011-11-26 20:43:11 -08:00
Paul Eggert
e1dbe924b5 Spelling fixes. 2011-11-19 18:29:42 -08:00
Paul Eggert
5396468298 Spelling fixes. 2011-11-19 01:18:31 -08:00
Paul Eggert
c5e87d104b Spelling fixes. 2011-11-17 09:40:48 -08:00
Paul Eggert
4c36be58ca Spelling fixes. 2011-11-17 01:09:20 -08:00
Juanma Barranquero
c701515351 Fix typos. 2011-11-15 18:37:37 +01:00
Paul Eggert
da6062e6ea Spelling fixes. 2011-11-14 23:55:13 -08:00
Lars Magne Ingebrigtsen
122d94635f If the server hangs up while we're talking to it, just `message' the error instead of throwing an error. 2011-11-14 17:09:13 +01:00
Paul Eggert
fe3c566957 Spelling fixes. 2011-11-08 22:10:51 -08:00
Lars Magne Ingebrigtsen
14e1d9eab9 (url-cookie-expired-p): Protect against zero-length cookie expiry dates. 2011-11-03 22:53:59 +01:00
Chong Yidong
ac6c8639bd Fix more minor mode docstrings.
* lisp/emulation/cua-base.el (cua-mode):
* lisp/mail/footnote.el (footnote-mode):
* lisp/mail/mailabbrev.el (mail-abbrevs-mode):
* lisp/net/xesam.el (xesam-minor-mode):
* lisp/progmodes/bug-reference.el (bug-reference-mode):
* lisp/progmodes/cap-words.el (capitalized-words-mode):
* lisp/progmodes/compile.el (compilation-minor-mode)
(compilation-shell-minor-mode):
* lisp/progmodes/gud.el (gud-tooltip-mode):
* lisp/progmodes/hideif.el (hide-ifdef-mode):
* lisp/progmodes/idlw-shell.el (idlwave-shell-electric-debug-mode):
* lisp/progmodes/subword.el (subword-mode):
* lisp/progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
* lisp/progmodes/which-func.el (which-function-mode):
* lisp/term/tvi970.el (tvi970-set-keypad-mode):
* lisp/term/vt100.el (vt100-wide-mode):
* lisp/textmodes/flyspell.el (flyspell-mode):
* lisp/textmodes/ispell.el (ispell-minor-mode):
* lisp/textmodes/nroff-mode.el (nroff-electric-mode):
* lisp/textmodes/paragraphs.el (use-hard-newlines):
* lisp/textmodes/refill.el (refill-mode):
* lisp/textmodes/reftex.el (reftex-mode):
* lisp/textmodes/rst.el (rst-minor-mode):
* lisp/textmodes/sgml-mode.el (html-autoview-mode)
(sgml-electric-tag-pair-mode):
* lisp/textmodes/tex-mode.el (latex-electric-env-pair-mode):
* lisp/vc/diff-mode.el (diff-auto-refine-mode, diff-minor-mode):
* lisp/emulation/crisp.el (crisp-mode):
* lisp/emacs-lisp/eldoc.el (eldoc-mode):
* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode): Doc fixes for new
minor mode behavior.

* lisp/erc/erc-fill.el (erc-fill-mode):
* lisp/erc/erc-track.el (erc-track-minor-mode): Doc fix.

* lisp/erc/erc.el (define-erc-module): Fix autogenerated docstring to
reflect Emacs 24 minor mode changes.

* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24,
calling a minor mode from Lisp with nil arg enables it, so we have to
make the working a bit ambiguous here).
2011-10-19 20:26:14 -04:00
Christopher J. White
b02ba905b4 * url-http.el (url-http-create-request): Avoid adding extra CRLF (Bug#8931). 2011-09-24 18:58:40 -04:00
Lars Magne Ingebrigtsen
ad87170ff3 Fix URL connection failing handling.
* url-http.el (url-http-find-free-connection): If there was an
error on connect, make sure the user isn't bothered with
irrelevant questions.
2011-09-13 19:18:08 +02:00
Chong Yidong
98fdd2b837 * url-http.el (url-http-parse-headers): For HTTP 301/302/307, don't convert to a GET request.
Fixes: debbugs:701
2011-08-07 13:48:11 -04:00
Chris Newton
b0c9af93ab Copy over `url-show-status' to the async buffer
* url-http.el (url-http): Copy over `url-show-status' to the async
buffer so that `url-display-percentage' does the right thing
(bug#4680).
2011-07-13 16:12:06 +02:00
Julien Danjou
53d2167130 * url-cache.el (url-cache-extract): Set buffer multibyte flag to
nil (bug#8827).
2011-07-06 09:47:15 +02:00
Nicolas Avrutin
3487ca85e8 * url-http.el (url-http-create-request): Remove double carriage
return and newline.

Fixes: debbugs:8931
2011-07-03 18:03:47 +02:00
Lars Magne Ingebrigtsen
9aec558af4 * url-http.el (url-http-wait-for-headers-change-function): Remove
pointless "HTTP/0.9 How I hate thee!" message.

Fixes: debbugs:6735
2011-07-03 15:08:40 +02:00
Andreas Schwab
5993c059db * lisp/url/url-future.el (url-future-test): Fix scope of `saver'. 2011-06-04 09:53:22 +02:00
Glenn Morris
3b7d5980c9 Add :version tags for url-queue.el.
* lisp/url/url-queue.el (url-queue-parallel-processes, url-queue-timeout):
Add :version tag for options that will be new in 24.1.
2011-06-01 10:34:24 -07:00
Lars Magne Ingebrigtsen
5a94384bca (url-queue-parallel-processes): Increase the default to 6, since 2 seems too conservative for normal usage. 2011-05-31 22:58:01 +02:00
Ted Zlatanov
e300a61b96 * url-future.el: Add general futures facility. 2011-05-31 05:47:22 -05:00
Leo Liu
b1c83d95b3 Add option :named to defstruct in url-cookie.el
or url-cookie-p won't be defined.

See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8747 for details.
2011-05-29 10:45:03 +08:00
Lars Magne Ingebrigtsen
11aedcecf7 Kill all processes associated with the buffer. 2011-05-02 20:30:48 +02:00
Lars Magne Ingebrigtsen
471129b1e3 Autoload `url-queue-retrieve', and fix up the pruning code. 2011-05-02 20:15:39 +02:00
Lars Magne Ingebrigtsen
08da93f1a3 (url-queue-run-queue): Pick the first waiting job, and not the last. 2011-05-02 19:28:34 +02:00
Lars Magne Ingebrigtsen
5c77c3eda3 Add the new file url-queue.el, which allows controlling the
parallelism when fetching web pages asynchronously.
2011-05-02 19:06:56 +02:00
Lars Magne Ingebrigtsen
10472dd0d6 (url-http-wait-for-headers-change-function): Protect against malformed headerless responses from servers. 2011-04-16 15:59:54 +02:00
Juanma Barranquero
3338398778 Update and split ChangeLogs. 2011-04-06 14:18:10 +02:00
Chong Yidong
43c594f228 Add changes to lisp/url/ChangeLog omitted from 2011-04-02T23:41:03Z!cyd@stupidchicken.com. 2011-04-03 17:06:47 -04:00
Chong Yidong
da91b5f294 Merge open-protocol-stream into open-network-stream.
* lisp/subr.el (open-network-stream): Move to net/network-stream.el.

* lisp/gnus/proto-stream.el: Move to net/network-stream.el.

* lisp/net/network-stream.el: Move from gnus/proto-stream.el.
Change prefix to network-stream throughout.
(open-protocol-stream): Merge into open-network-stream, leaving
open-protocol-stream as an alias.  Handle nil BUFFER args.

* lisp/gnus/nnimap.el (nnimap-open-connection-1): Pass explicit :end-of-command
parameter to open-protocol-stream.

* lisp/emacs-lisp/package.el (package--with-work-buffer): Recognize
https URLs.

* lisp/url/url-gw.el (url-open-stream): Use new open-network-stream
functionality to perform encryption.
2011-04-02 19:41:03 -04:00
Glenn Morris
10c1b75128 ChangeLog fix. 2011-04-02 11:53:37 -07:00
Juanma Barranquero
9952e40bd8 lisp/url/url-cookie.el: Use dolist' rather than mapcar'. 2011-04-02 01:24:21 +02:00
Ted Zlatanov
563790b6db Use auto-source-search' instead of auto-source-user-or-password'.
* mail/smtpmail.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(smtpmail-try-auth-methods): Use it.

* net/imap-hash.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(imap-hash-open-connection): Use it.

* net/tramp-imap.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password.
(tramp-imap-passphrase-callback-function): Use it.

* net/tramp.el (tramp-default-method): Also check if
`auth-source-search' is bound.
(tramp-read-passwd): Use `auth-source-search' instead of
`auto-source-user-or-password'.

* url-parse.el (url-bit-for-url, url-user-for-url)
(url-password-for-url): Use `auto-source-search' instead of
`auto-source-user-or-password'.

* url-auth.el: Autoload `auto-source-search' instead of
`auto-source-user-or-password'.
(url-basic-auth, url-digest-auth, url-do-auth-source-search): Use it.
2011-02-12 11:51:02 -06:00
Lars Ingebrigtsen
fd7ec1ba35 Fix the ChangeLog message to be more legible. 2011-02-02 22:23:35 -08:00
Lars Ingebrigtsen
b301d17489 (url-http-wait-for-headers-change-function): Don't move if the callback function has moved point. 2011-02-02 22:22:07 -08:00
Glenn Morris
95df8112a0 Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
e9bffc61f2 Refill some copyright headers. 2011-01-15 18:21:30 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Miles Bader
3cbc281e31 url-cookie.el: Require 'cl when compiling 2010-12-16 13:14:48 +09:00
Glenn Morris
105a786f51 Misc url-cookie tidy-up.
* lisp/url/url-cookie.el: Don't require cl when compiling.
(url-cookie-clean-up, url-cookie-generate-header-lines): Use dolist.
(url-cookie-parse-file, url-cookie-store, url-cookie-retrieve)
(url-cookie-handle-set-cookie): Simplify.
2010-12-13 20:18:22 -08:00
Stefan Monnier
f49d1f52b2 Merge from emacs-23 2010-12-13 10:27:36 -05:00
Chong Yidong
37bf6ce2b4 * url-cookie.el (url-cookie-retrieve): Handle null LOCALPART (Bug#7543).
Suggested by Lennart Borgman.
2010-12-04 17:41:41 -05:00
Glenn Morris
2f5e7c6fbb ChangeLog fixes prompted by M-x authors. 2010-11-20 14:25:56 -08:00
Lars Magne Ingebrigtsen
023ec128fd Avoid interpreting file:/foo:/bar URLs via tramp. 2010-11-16 14:46:12 +01:00
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
Stefan Monnier
c074ba4a56 (url-generic-parse-url): Bind deactivate-mark. 2009-11-27 01:27:04 +00:00
Chong Yidong
c98f55cad9 * url-http.el (url-http-handle-authentication): Use proxy server,
if any, for authentication (Bug#4883).
2009-11-08 05:32:48 +00:00
Stefan Monnier
937e6a5612 * url-util.el (url-insert-entities-in-string):
* url-nfs.el (url-nfs-unescape):
* url-ldap.el (url-ldap):
* url-imap.el (url-imap):
* url-cid.el (url-cid-gnus, url-cid): Use with-current-buffer.
* erc.el (erc-display-line-1, erc-process-away):
* erc-truncate.el (erc-truncate-buffer-to-size):
Use with-current-buffer.
* term/ns-win.el (ns-scroll-bar-move, ns-face-at-pos):
* play/mpuz.el (mpuz-create-buffer):
* play/landmark.el (lm-prompt-for-move, lm-print-wts, lm-print-smell)
(lm-print-y,s,noise, lm-print-w0, lm-init):
* play/gomoku.el (gomoku-prompt-for-move):
* play/fortune.el (fortune-in-buffer):
* play/dissociate.el (dissociated-press):
* play/decipher.el (decipher-adjacency-list, decipher-display-regexp)
(decipher-analyze-buffer, decipher-stats-buffer,decipher-stats-buffer):
* mail/supercite.el (sc-eref-show):
* mail/smtpmail.el (smtpmail-send-it):
* mail/rmailsum.el (rmail-summary-next-labeled-message)
(rmail-summary-previous-labeled-message, rmail-summary-wipe)
(rmail-summary-undelete-many, rmail-summary-rmail-update)
(rmail-summary-goto-msg, rmail-summary-expunge)
(rmail-summary-get-new-mail, rmail-summary-search-backward)
(rmail-summary-add-label, rmail-summary-output-menu)
(rmail-summary-output-body):
* mail/rfc822.el (rfc822-addresses):
* mail/reporter.el (reporter-dump-variable, reporter-dump-state):
* mail/mailpost.el (post-mail-send-it):
* mail/hashcash.el (hashcash-generate-payment):
* mail/feedmail.el (feedmail-run-the-queue)
(feedmail-queue-send-edit-prompt-help-first)
(feedmail-send-it-immediately, feedmail-give-it-to-buffer-eater)
(feedmail-deduce-address-list):
* eshell/esh-ext.el (eshell-remote-command):
* eshell/em-unix.el (eshell-occur-mode-mouse-goto):
* emulation/viper-util.el (viper-glob-unix-files, viper-save-setting)
(viper-wildcard-to-regexp, viper-glob-mswindows-files)
(viper-save-string-in-file, viper-valid-marker):
* emulation/viper-keym.el (viper-toggle-key):
* emulation/viper-ex.el (ex-expand-filsyms, viper-get-ex-file)
(ex-edit, ex-global, ex-mark, ex-next-related-buffer, ex-quit)
(ex-get-inline-cmd-args, ex-tag, ex-command, ex-compile):
* emulation/viper-cmd.el (viper-exec-form-in-vi)
(viper-exec-form-in-emacs, viper-brac-function):
* emulation/viper.el (viper-delocalize-var):
* emulation/vip.el (vip-mode, vip-get-ex-token, vip-ex, vip-get-ex-pat)
(vip-get-ex-command, vip-get-ex-opt-gc, vip-get-ex-buffer)
(vip-get-ex-count, vip-get-ex-file, ex-edit, ex-global, ex-mark)
(ex-map, ex-unmap, ex-quit, ex-read, ex-tag, ex-command):
* emulation/vi.el (vi-switch-mode, vi-ex-cmd):
* emulation/edt.el (edt-electric-helpify):
* emulation/cua-rect.el (cua--rectangle-aux-replace):
* emulation/cua-gmrk.el (cua--insert-at-global-mark)
(cua--delete-at-global-mark, cua--copy-rectangle-to-global-mark)
(cua-indent-to-global-mark-column):
* calendar/diary-lib.el (calendar-mark-1):
* calendar/cal-hebrew.el (calendar-hebrew-mark-date-pattern):
Use with-current-buffer.
* emulation/viper.el (viper-delocalize-var): Use dolist.
2009-11-03 02:04:29 +00:00
Glenn Morris
f9c9a2395c (url-dav-file-attributes): Fix declaration. 2009-10-01 02:06:55 +00:00
Chong Yidong
120812a0ba * url-handlers.el (url-copy-file): Add fifth arg for compatibility
with 2005-06-25 change to copy-file (Bug#4410).
2009-09-13 21:21:40 +00:00
Glenn Morris
4f0f48dfc1 (url-file): Avoid assignment to free variable `filename'. 2009-09-13 02:09:12 +00:00
Chong Yidong
63255710c1 * url-methods.el (url-scheme--registering-proxy): New variable.
(url-scheme-register-proxy, url-scheme-get-property): Avoid
calling url-scheme-register-proxy in an infloop (Bug#4191).
2009-09-12 00:47:13 +00:00
Glenn Morris
3f12e3f4bf Remove code for defunct system-types Apple-Macintosh, emx, ms-windows,
next-mach.
2009-08-22 21:53:34 +00:00
Chong Yidong
7024347875 Add "Branch for 23.1" ChangeLog entry. 2009-06-21 14:35:26 +00:00
Stefan Monnier
d696b0d53f (url-file-handler): Save match data. 2009-03-27 15:58:16 +00:00
Jason Rumney
db922cc0e5 Prev commit in wrong ChangeLog 2009-02-23 11:50:08 +00:00
Jason Rumney
5ca454075e (url-default-expander): Use concat to combine parts. (Bug #1020) 2009-02-21 07:53:54 +00:00
Glenn Morris
f0cfa8f0c2 (url-generate-unique-filename): Silence compiler. 2009-02-10 03:27:29 +00:00
Chong Yidong
092f7594cd (url-file): Use make-temp-file. 2009-02-07 21:22:55 +00:00
Chong Yidong
5d3c5503d7 (url-generate-unique-filename): Mark as obsolete. 2009-02-07 21:22:34 +00:00
Chong Yidong
1a39939843 (url-temporary-directory): Mark as obsolete. 2009-02-07 21:22:03 +00:00
Chong Yidong
64594ef931 * url-vars.el (url-temporary-directory): Mark as obsolete. 2009-02-07 21:21:38 +00:00
Chong Yidong
7feadb909b (url-cookie-retrieve): Fix last change. 2009-01-15 13:59:50 +00:00
Chong Yidong
68fe704b63 * url-cookie.el (url-cookie-retrieve): Fix last change. 2009-01-15 13:59:43 +00:00
Chong Yidong
200c042450 * url-cookie.el (url-cookie-retrieve): If localpart is not a
string, use it literally.
2009-01-15 13:56:05 +00:00
Chong Yidong
033535ded7 (url-cookie-retrieve): Handle null localpart. 2009-01-14 20:47:02 +00:00
Chong Yidong
26343c7f0e * url-cookie.el (url-cookie-retrieve): Handle null localpart. 2009-01-14 20:46:23 +00:00
Juanma Barranquero
d9e52e92aa * url-util.el (url-truncate-url-for-viewing): Doc fix. 2009-01-13 01:53:45 +00:00
Glenn Morris
78892d1be9 (url-cid-gnus): Fix typo in header name. 2009-01-09 03:19:39 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Chong Yidong
08299ea7e3 (url-basepath): Add url-basepath as an alias for url-file-directory. 2008-11-04 17:11:58 +00:00
Chong Yidong
92066e8365 * url-util.el (url-basepath): Add url-basepath as an alias for
url-file-directory.
2008-11-04 17:11:52 +00:00
Juanma Barranquero
091b0137bf Fix braino in previous change. 2008-10-24 09:44:46 +00:00
Juanma Barranquero
d6c180c46b New function `locate-user-emacs-file'.
* subr.el (locate-user-emacs-file): New function.
  (user-emacs-directory): Mention it in docstring.

* completion.el (save-completions-file-name):
* filesets.el (filesets-menu-cache-file):
* image-dired.el (image-dired-dir, image-dired-db-file)
  (image-dired-temp-image-file, image-dired-gallery-dir)
  (image-dired-temp-rotate-image-file):
* savehist.el (savehist-file):
* server.el (server-auth-dir):
* startup.el (auto-save-list-file-prefix):
* thumbs.el (thumbs-thumbsdir):
* tutorial.el (tutorial--saved-dir):
* play/gamegrid.el (gamegrid-user-score-file-directory): Use it.

* url.el (url-configuration-directory): Use `locate-user-emacs-file'.

* NEWS: New function `locate-user-emacs-file'.
2008-10-24 09:39:27 +00:00
Chong Yidong
ab8dad365f (url-basic-auth): Encode password string. 2008-10-20 16:06:03 +00:00
Chong Yidong
3b4df55029 * url-auth.el (url-basic-auth): Encode password string. 2008-10-20 16:05:53 +00:00
Juanma Barranquero
183080b610 Fix typos. 2008-10-01 09:12:37 +00:00
Glenn Morris
4968291f3f Comment. 2008-09-25 07:41:32 +00:00
Juanma Barranquero
10d1d0af5f Fix typos. 2008-09-24 01:16:16 +00:00
Glenn Morris
b7270504e4 Comment. 2008-08-30 20:07:58 +00:00
Glenn Morris
e77e9cf409 (url-https-expand-file-name): Resolve directly to url-default-expander
rather than via another alias.
(url-default-expander): Autoload an autoload.  (Bug#825).
2008-08-30 02:22:47 +00:00
Juanma Barranquero
ba60bd44c7 Fix typos. 2008-07-18 15:42:14 +00:00
Juanma Barranquero
d1ce47b068 Typo and docstring fixes.
* url.el (url-do-setup):
* url-dired.el (url-dired-minor-mode):
* url-file.el (url-file-find-possibly-compressed-file):
* url-gw.el (url-gateway-broken-resolution):
* url-handlers.el (url-handler-regexp):
* url-imap.el (url-imap-default-port):
* url-methods.el (url-scheme-get-property): Fix typos in docstrings.

* url-auth.el (url-basic-auth-storage, url-digest-auth):
  Fix typos in docstrings.
  (url-digest-auth-storage, url-register-auth-scheme): Reflow docstrings.

* url-cache.el (url-cache-prepare): Doc fix.
  (url-cache-create-filename-human-readable, url-cache-extract):
  Fix typos in docstrings.

* url-dav.el (url-intersection, url-dav-iso8601-regexp)
  (url-dav-delete-something): Fix typos in docstrings.
  (url-dav-http-success-p, url-dav-file-name-all-completions)
  (url-dav-directory-files, url-dav-file-name-completion): Doc fixes.

* url-http.el (url-http-idle-sentinel): Doc fix.

* url-irc.el (url-irc-default-port): Fix typo in docstring.
  (url-irc-function): Doc fix.

* url-util.el (url-get-url-filename-chars, url-unhex-string):
  Fix typos in docstrings.
  (url-file-extension): Doc fix.

* url-vars.el (url-current-object, url-current-mime-headers)
  (url-privacy-level, url-mail-command, url-mime-language-string):
  Fix typos in docstrings.
  (url-honor-refresh-requests): Reflow docstring.
  (url-using-proxy): Doc fix.
2008-07-02 11:14:38 +00:00
Glenn Morris
fffa137cb7 American English spelling fix. 2008-06-27 07:34:53 +00:00
Glenn Morris
04bf5b655a American English spelling fix. 2008-06-27 02:14:52 +00:00
Dan Nicolaescu
0b5c42251a * vc-dav.el: Move here from url/vc-dav.el.
* Makefile.in (ELCFILES): Update vc-dav.el location.

* vc-dav.el: Move to the parent directory to be together with the
rest of the VC backends.
2008-06-22 14:57:42 +00:00
Glenn Morris
8705576eab (auth-source-user-or-password): Remove unnecessary eval-and-compile. 2008-06-07 02:34:01 +00:00
Stefan Monnier
a118b59bed (url-file-name-completion): Add missing argument. 2008-05-30 01:36:29 +00:00
Teodor Zlatanov
97d1c23634 Add autoload cookie for
`auth-source-user-or-password'.
(url-basic-auth, url-digest-auth): Use it with any realm,
overriding the user name and password before the prompt.
2008-05-12 12:39:46 +00:00
Glenn Morris
4936186e9c Switch to recommended form of GPLv3 permissions notice. 2008-05-06 04:29:13 +00:00
Juanma Barranquero
c385aa1a13 (url-load-hook): Fix typo in docstring. 2008-04-28 16:27:17 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Magnus Henoch
84f089d3fb (url-http-chunked-encoding-after-change-function):
Remove superfluous CRLF at end of file.  (bug #42)
2008-03-09 20:16:12 +00:00
Andreas Schwab
26d72be862 Require cl when compiling. 2008-03-02 17:24:18 +00:00
Teodor Zlatanov
d626f888d2 (url-get-normalized-date): Simplify
to use `format-time-string'.  Always generate date in UTC, but
call it GMT for full compatibility with the RFCs.
2008-02-28 17:41:40 +00:00
Michael Albinus
a9f31e3df9 * url-handlers.el (file-remote-p): Add handler.
(url-handler-file-remote-p): New fun.
2008-02-06 20:34:23 +00:00
Stefan Monnier
791fe18237 (url-handler-unhandled-file-name-directory):
Handle `file' URLs specially.  Return nil for non-local filenames.
2008-02-06 14:43:05 +00:00
Magnus Henoch
b72ef56499 Require cl when compiling, for setf. 2008-02-04 06:40:29 +00:00
John Wiegley
e652840bf7 2008-01-29 John Wiegley <johnw@newartisans.com>
* url-auth.el (url-digest-auth): If the 'opaque' argument is not
	being used, don't add it to the response text.  Also, changed an
	if so that the interaction between the PROMPT and OVERWRITE
	arguments can no longer result in the user being queried twice for
	the same login and password information.
2008-01-29 03:52:05 +00:00
Stefan Monnier
66991ff0a0 (url-generic-parse-url): Fix docstring. 2008-01-26 19:46:17 +00:00
Miles Bader
1bad168e59 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1006
2008-01-22 23:53:46 +00:00
Stefan Monnier
ce4059eea0 (unhandled-file-name-directory): Add handler.
(url-handler-unhandled-file-name-directory): New fun.
2008-01-21 17:16:52 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Juanma Barranquero
2941ce4bcf *** empty log message *** 2008-01-07 16:39:40 +00:00
Juanma Barranquero
2a5be7dc2b *** empty log message *** 2008-01-07 11:41:11 +00:00
Michael Albinus
80e4b01d33 * url-handlers.el (url-file-handler): Autoload. 2008-01-07 06:52:19 +00:00
Glenn Morris
12dc447f2a Add 2008 to copyright years. 2008-01-07 02:23:04 +00:00
Glenn Morris
812498713a (url-make-private-file): New function. 2007-12-11 05:50:37 +00:00
Glenn Morris
57f44ca44a (url-history-save-history): Use url-make-private-file and with-temp-buffer. 2007-12-11 05:50:11 +00:00
Glenn Morris
e6ed493502 (url-cookie-write-file): Use url-make-private-file and with-temp-buffer. 2007-12-11 05:49:53 +00:00
Glenn Morris
9824ded5dd (url-history-save-history): Use url-make-private-file and with-temp-buffer. 2007-12-11 05:49:36 +00:00