diff options
author | Leo Liu <sdl.web@gmail.com> | 2011-05-29 10:45:03 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2011-05-29 10:45:03 +0800 |
commit | b1c83d95b3d6d80137a76911581e6531a3376982 (patch) | |
tree | 62c760abbabeaf193e39cf59b78aa5cae619a083 /lisp/url | |
parent | 1dd3c2d9b2466eb6dc379da6a67074dbd4c13fa5 (diff) | |
download | emacs-b1c83d95b3d6d80137a76911581e6531a3376982.tar.gz |
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.
Diffstat (limited to 'lisp/url')
-rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/url/url-cookie.el | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 1049d09d6db..37a9fb8ffe2 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog @@ -1,3 +1,8 @@ +2011-05-29 Leo Liu <sdl.web@gmail.com> + + * url-cookie.el (url-cookie): Add option :named so that + url-cookie-p is defined. (Bug#8747) + 2011-05-02 Lars Magne Ingebrigtsen <larsi@gnus.org> * url-queue.el: New file. diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el index 7fdd8b174c1..78afa1633b6 100644 --- a/lisp/url/url-cookie.el +++ b/lisp/url/url-cookie.el @@ -35,17 +35,13 @@ :group 'url) ;; A cookie is stored internally as a vector of 7 slots -;; [ cookie NAME VALUE EXPIRES LOCALPART DOMAIN SECURE ] +;; [ url-cookie NAME VALUE EXPIRES LOCALPART DOMAIN SECURE ] (defstruct (url-cookie (:constructor url-cookie-create) (:copier nil) - ;; For compatibility with a previous version which did not use - ;; defstruct, and also in order to make sure that the printed - ;; representation does not depend on CL internals, we use an - ;; explicitly managed tag. - (:type vector)) - (tag 'cookie :read-only t) + (:type vector) + :named) name value expires localpart domain secure) (defvar url-cookie-storage nil "Where cookies are stored.") @@ -77,8 +73,6 @@ telling Microsoft that." ;; It's completely normal for the cookies file not to exist yet. (load (or fname url-cookie-file) t t)) -(declare-function url-cookie-p "url-cookie" t t) ; defstruct - (defun url-cookie-clean-up (&optional secure) (let ((var (if secure 'url-cookie-secure-storage 'url-cookie-storage)) new new-cookies) |