diff options
| author | Chong Yidong | 2012-08-07 11:33:37 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-07 11:33:37 +0800 |
| commit | 9f6f48455f7d25e5cc2d50485d98ff3af43946a2 (patch) | |
| tree | 2c2a07d59e656de8681a8ebbe2570e4b5e138f48 /doc/misc | |
| parent | 7d732d1a24f77e1ee68ec952130dcc4a65d3e6a7 (diff) | |
| parent | 7178e7222c34f2654ccc126c64eb16fbe5f382b5 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/url.texi | 35 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-08-01 Jay Belanger <jay.p.belanger@gmail.com> | 6 | 2012-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 |
| 128 | The library functions typically operate on @dfn{parsed} versions of | 128 | The library functions typically operate on @dfn{parsed} versions of |
| 129 | URLs. These are actually vectors of the form: | 129 | URLs. 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}; | |||
| 144 | is the host name associated with it, or @code{nil}; | 144 | is the host name associated with it, or @code{nil}; |
| 145 | @item port | 145 | @item port |
| 146 | is the port number associated with it, or @code{nil}; | 146 | is the port number associated with it, or @code{nil}; |
| 147 | @item file | 147 | @item filename |
| 148 | is the ``file'' part of it, or @code{nil}. This doesn't necessarily | 148 | is the ``file'' part of it, or @code{nil}. This doesn't necessarily |
| 149 | actually refer to a file; | 149 | actually refer to a file; |
| 150 | @item target | 150 | @item target |
| 151 | is the target part, or @code{nil}; | 151 | is the target part, or @code{nil}; |
| 152 | @item attributes | 152 | @item attributes |
| 153 | is the attributes associated with it, or @code{nil}; | 153 | is the attributes associated with it, or @code{nil}; |
| 154 | @item full | 154 | @item fullness |
| 155 | is @code{t} for a fully-specified URL, with a host part indicated by | 155 | is @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 | ||
| 158 | is @code{nil} to neither send or store cookies to the server, @code{t} | ||
| 159 | otherwise. | ||
| 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 | ||
| 177 | These attributes have accessors named @code{url-@var{part}}, where | 171 | These 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}}. | 174 | using @code{setf}: |
| 175 | |||
| 176 | @example | ||
| 177 | (setf (url-port url) 80) | ||
| 178 | @end example | ||
| 179 | |||
| 180 | If @var{port} is @var{nil}, @code{url-port} returns the default port | ||
| 181 | of the protocol. | ||
| 181 | 182 | ||
| 182 | There are functions for parsing and unparsing between the string and | 183 | There are functions for parsing and unparsing between the string and |
| 183 | vector forms. | 184 | vector forms. |