aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorChong Yidong2012-08-07 11:33:37 +0800
committerChong Yidong2012-08-07 11:33:37 +0800
commit9f6f48455f7d25e5cc2d50485d98ff3af43946a2 (patch)
tree2c2a07d59e656de8681a8ebbe2570e4b5e138f48 /doc/misc
parent7d732d1a24f77e1ee68ec952130dcc4a65d3e6a7 (diff)
parent7178e7222c34f2654ccc126c64eb16fbe5f382b5 (diff)
downloademacs-9f6f48455f7d25e5cc2d50485d98ff3af43946a2.tar.gz
emacs-9f6f48455f7d25e5cc2d50485d98ff3af43946a2.zip
Merge from emacs-24; up to 2012-05-02T07:12:52Z!rgm@gnu.org.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/url.texi35
2 files changed, 23 insertions, 17 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index b44beaa811e..20c74cf70b2 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12012-08-06 Aurélien Aptel <aurelien.aptel@gmail.com>
2
3 * url.texi (Parsed URLs): Adjust to the code's use of defstruct
4 (bug#12096).
5
12012-08-01 Jay Belanger <jay.p.belanger@gmail.com> 62012-08-01 Jay Belanger <jay.p.belanger@gmail.com>
2 7
3 * calc.texi (Simplification modes, Conversions) 8 * calc.texi (Simplification modes, Conversions)
diff --git a/doc/misc/url.texi b/doc/misc/url.texi
index 680f1921479..898a9994a86 100644
--- a/doc/misc/url.texi
+++ b/doc/misc/url.texi
@@ -126,10 +126,10 @@ directory in @code{user-emacs-directory}, which is normally
126@section Parsed URLs 126@section Parsed URLs
127@cindex parsed URLs 127@cindex parsed URLs
128The library functions typically operate on @dfn{parsed} versions of 128The library functions typically operate on @dfn{parsed} versions of
129URLs. These are actually vectors of the form: 129URLs. These are actually CL structures (vectors) of the form:
130 130
131@example 131@example
132[@var{type} @var{user} @var{password} @var{host} @var{port} @var{file} @var{target} @var{attributes} @var{full}] 132[cl-struct-url @var{type} @var{user} @var{password} @var{host} @var{port} @var{filename} @var{target} @var{attributes} @var{fullness} @var{use-cookies}]
133@end example 133@end example
134 134
135@noindent where 135@noindent where
@@ -144,16 +144,19 @@ is the user password associated with it, or @code{nil};
144is the host name associated with it, or @code{nil}; 144is the host name associated with it, or @code{nil};
145@item port 145@item port
146is the port number associated with it, or @code{nil}; 146is the port number associated with it, or @code{nil};
147@item file 147@item filename
148is the ``file'' part of it, or @code{nil}. This doesn't necessarily 148is the ``file'' part of it, or @code{nil}. This doesn't necessarily
149actually refer to a file; 149actually refer to a file;
150@item target 150@item target
151is the target part, or @code{nil}; 151is the target part, or @code{nil};
152@item attributes 152@item attributes
153is the attributes associated with it, or @code{nil}; 153is the attributes associated with it, or @code{nil};
154@item full 154@item fullness
155is @code{t} for a fully-specified URL, with a host part indicated by 155is @code{t} for a fully-specified URL, with a host part indicated by
156@samp{//} after the scheme part. 156@samp{//} after the scheme part.
157@item use-cookies
158is @code{nil} to neither send or store cookies to the server, @code{t}
159otherwise.
157@end table 160@end table
158 161
159@findex url-type 162@findex url-type
@@ -161,23 +164,21 @@ is @code{t} for a fully-specified URL, with a host part indicated by
161@findex url-password 164@findex url-password
162@findex url-host 165@findex url-host
163@findex url-port 166@findex url-port
164@findex url-file 167@findex url-filename
165@findex url-target 168@findex url-target
166@findex url-attributes 169@findex url-attributes
167@findex url-full 170@findex url-fullness
168@findex url-set-type
169@findex url-set-user
170@findex url-set-password
171@findex url-set-host
172@findex url-set-port
173@findex url-set-file
174@findex url-set-target
175@findex url-set-attributes
176@findex url-set-full
177These attributes have accessors named @code{url-@var{part}}, where 171These attributes have accessors named @code{url-@var{part}}, where
178@var{part} is the name of one of the elements above, e.g., 172@var{part} is the name of one of the elements above, e.g.,
179@code{url-host}. Similarly, there are setters of the form 173@code{url-host}. These attributes can be set with the same accessors
180@code{url-set-@var{part}}. 174using @code{setf}:
175
176@example
177(setf (url-port url) 80)
178@end example
179
180If @var{port} is @var{nil}, @code{url-port} returns the default port
181of the protocol.
181 182
182There are functions for parsing and unparsing between the string and 183There are functions for parsing and unparsing between the string and
183vector forms. 184vector forms.