Ivan Shmakov
22441b69cb
Ignore print-length and print-level while formatting url-cookie data.
...
* lisp/url/url-cookie.el (url-cookie-write-file): Let-bind print-length
and print-level to nil to avoid writing a garbled list.
Fixes: debbugs:16805
2015-01-17 19:32:26 +00:00
Paul Eggert
7e09ef09a4
Update copyright year to 2015
...
Run admin/update-copyright.
2015-01-01 14:26:41 -08:00
Paul Eggert
308cc448e5
Don't mishandle year-9999 dates.
...
* lisp/calendar/parse-time.el (parse-time-rules):
Allow years up to most-positive-fixnum.
* lisp/calendar/time-date.el (date-to-time):
Pass "Specified time is not representable" errors through.
* lisp/url/url-cookie.el (url-cookie-expired-p): Treat out-of-range
expiration dates as if they were far in the future.
* src/editfns.c (decode_time_components): Store an invalid timespec
on overflow, instead of returning false, so that the caller can
distinguish overflow from other errors.
(lisp_time_argument, lisp_seconds_argument): If the time is out
of range, signal a time overflow instead of an invalid time spec.
* src/keyboard.c (decode_timer): Treat time overflow like other
timespec errors.
Fixes: debbugs:18176
2014-08-03 08:38:52 -07:00
Glenn Morris
645586dcd8
Some doc for url-cookie-list
...
* lisp/url/url-cookie.el (url-cookie-list): Doc fix.
* doc/misc/url.texi (Cookies): Mention url-cookie-list command.
* etc/NEWS: Related edit.
2014-02-04 23:46:40 -08:00
Paul Eggert
ba3189039a
Update copyright year to 2014 by running admin/update-copyright.
2014-01-01 07:43:34 +00: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
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00: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
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
Glenn Morris
acaf905b11
Add 2012 to FSF copyright years for Emacs files
2012-01-05 01:46:05 -08:00
Paul Eggert
333f9019e2
Spelling fixes.
2011-12-11 21:32:49 -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
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
Juanma Barranquero
9952e40bd8
lisp/url/url-cookie.el: Use dolist' rather than mapcar'.
2011-04-02 01:24:21 +02:00
Glenn Morris
73b0cd5003
Convert consecutive FSF copyright years to ranges.
2011-01-24 20:08:28 -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
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
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
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Chong Yidong
7feadb909b
(url-cookie-retrieve): Fix last change.
2009-01-15 13:59:50 +00:00
Chong Yidong
033535ded7
(url-cookie-retrieve): Handle null localpart.
2009-01-14 20:47:02 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Glenn Morris
4936186e9c
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 04:29:13 +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
Glenn Morris
12dc447f2a
Add 2008 to copyright years.
2008-01-07 02:23:04 +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
4e44324af2
(url-cookie-write-file): Use url-make-private-file and with-temp-buffer.
2007-12-11 05:49:10 +00:00
Glenn Morris
361763416f
(url-cookie-p): Declare as a function.
2007-11-30 08:06:25 +00:00
Glenn Morris
ba40adb479
Comment.
2007-11-27 04:11:39 +00:00
Miles Bader
9aecacd08a
Merge from emacs--rel--22
...
Patches applied:
* emacs--rel--22 (patch 70-73)
- Update from CVS
2007-07-25 Glenn Morris <rgm@gnu.org>
* Relicense all FSF files to GPLv3 or later.
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
8c0ee52a6f
Switch license to GPLv3 or later.
2007-07-25 04:18:23 +00:00
Stefan Monnier
495fa7db39
(url-cookie-name, url-cookie-value, url-cookie-expires, url-cookie-localpart)
...
(url-cookie-domain, url-cookie-secure, url-cookie-set-name)
(url-cookie-set-value, url-cookie-set-expires, url-cookie-set-localpart)
(url-cookie-set-domain, url-cookie-set-secure, url-cookie-retrieve-arg)
(url-cookie-create, url-cookie-p): Remove.
(url-cookie): New struct.
(url-cookie-store): Use setf instead of url-cookie-set-*.
2007-06-12 18:24:25 +00:00
Chong Yidong
b4ddc815b7
(url-cookie-retrieve, url-cookie-host-can-set-p): Deal with wildcard
...
dots in domain values.
2007-04-01 15:38:50 +00:00
Glenn Morris
d7a0267c8d
Add 2007 to copyright years.
2007-01-21 03:53:13 +00:00
Stefan Monnier
7660c02fc5
(url-cookie-write-file): Really don't use versioned backups.
2006-08-29 14:00:27 +00:00
Stefan Monnier
bc684c16bc
Remove spurious * in docstrings.
...
(url-cookie-write-file): Don't use versioned backups.
(url-cookie-host-can-set-p): Remove unused var `tmp'.
(url-cookie-save-interval): Move to url-cookie group.
(url-cookie-write-file): Reset url-cookies-changed-since-last-save.
2006-07-11 15:03:24 +00:00
Stefan Monnier
72a30be46b
(url-cookie-parse-file): Don't complain of missing file.
...
(url-cookie-parse-file, url-cookie-write-file, url-cookie-retrieve)
(url-cookie-generate-header-lines, url-cookie-handle-set-cookie)
(url-cookie-setup-save-timer): Remove autoload cookies.
They're only called from files that require url-cookie anyway.
2006-01-05 22:10:47 +00:00
Stefan Monnier
32fa584479
(url-cookie-write-file): Create parent dir.
2005-12-21 20:08:49 +00:00
Richard M. Stallman
0c06992441
(url-cookie-save-interval): Simplify.
...
(url-cookie-setup-save-timer): Simplify.
2005-12-08 00:01:48 +00:00
Thien-Thi Nguyen
71ddfde5a5
Update years in copyright notice; nfc.
2005-08-06 15:55:38 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
Juanma Barranquero
5d9f30c6d7
(url-cookie): Finish `defgroup' description with period.
2005-07-04 01:04:33 +00:00
Richard M. Stallman
9f8a95cd54
(url-cookie-store): Rename arg PATH to LOCALPART.
...
(url-cookie-retrieve): Likewise.
(url-cookie-generate-header-lines): Likewise.
(url-cookie-handle-set-cookie): Likewise.
(url-cookie-create): Expect :localpart instead of :path.
(url-cookie-localpart): Renamed from url-cookie-path.
(url-cookie-set-localpart): Renamed from url-cookie-set-path.
(url-cookie-file): Doc fix.
(url-cookie-p): Add doc string.
2005-06-28 00:47:07 +00:00