emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r104419: Add option :named to defstru


From: Leo Liu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104419: Add option :named to defstruct in url-cookie.el
Date: Sun, 29 May 2011 10:45:03 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104419
committer: Leo Liu <address@hidden>
branch nick: trunk
timestamp: Sun 2011-05-29 10:45:03 +0800
message:
  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.
modified:
  lisp/url/ChangeLog
  lisp/url/url-cookie.el
=== modified file 'lisp/url/ChangeLog'
--- a/lisp/url/ChangeLog        2011-05-02 18:15:39 +0000
+++ b/lisp/url/ChangeLog        2011-05-29 02:45:03 +0000
@@ -1,3 +1,8 @@
+2011-05-29  Leo Liu  <address@hidden>
+
+       * url-cookie.el (url-cookie): Add option :named so that
+       url-cookie-p is defined.  (Bug#8747)
+
 2011-05-02  Lars Magne Ingebrigtsen  <address@hidden>
 
        * url-queue.el: New file.

=== modified file 'lisp/url/url-cookie.el'
--- a/lisp/url/url-cookie.el    2011-04-01 23:24:21 +0000
+++ b/lisp/url/url-cookie.el    2011-05-29 02:45:03 +0000
@@ -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 @@
   ;; 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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]