diff options
author | Chong Yidong <[email protected]> | 2012-08-07 11:33:37 +0800 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2012-08-07 11:33:37 +0800 |
commit | 9f6f48455f7d25e5cc2d50485d98ff3af43946a2 (patch) | |
tree | 2c2a07d59e656de8681a8ebbe2570e4b5e138f48 /doc | |
parent | 7d732d1a24f77e1ee68ec952130dcc4a65d3e6a7 (diff) | |
parent | 7178e7222c34f2654ccc126c64eb16fbe5f382b5 (diff) |
Merge from emacs-24; up to 2012-05-02T07:12:[email protected].
Diffstat (limited to 'doc')
-rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
-rw-r--r-- | doc/emacs/emacs.texi | 2 | ||||
-rw-r--r-- | doc/lispref/ChangeLog | 8 | ||||
-rw-r--r-- | doc/lispref/functions.texi | 3 | ||||
-rw-r--r-- | doc/lispref/variables.texi | 4 | ||||
-rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
-rw-r--r-- | doc/misc/url.texi | 35 |
7 files changed, 40 insertions, 21 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 3f3592e64c..8be343165f 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,7 @@ +2012-07-31 Chong Yidong <[email protected]> + + * emacs.texi: Fix ISBN (Bug#12080). + 2012-08-05 Chong Yidong <[email protected]> * display.texi (Faces): Document frame-background-mode (Bug#7774). diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi index 1b457e0194..6357aebc6f 100644 --- a/doc/emacs/emacs.texi +++ b/doc/emacs/emacs.texi @@ -94,7 +94,7 @@ developing GNU and promoting software freedom.'' Published by the Free Software Foundation @* 51 Franklin Street, Fifth Floor @* Boston, MA 02110-1301 USA @* -ISBN 978-0-9831592-3-0 +ISBN 978-0-9831592-4-7 @sp 2 Cover art by Etienne Suvasa; cover design by Matt Lee. diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index c262cecb02..890cf0ef97 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,11 @@ +2012-08-06 Eli Zaretskii <[email protected]> + + * functions.texi (Closures): Put the main index entry for + "closures" here. (Bug#12138) + + * variables.texi (Lexical Binding): Disambiguate the index entry + for "closures". + 2012-08-05 Chong Yidong <[email protected]> * display.texi (Defining Faces): Move documentation of diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index ab2789b5e6..9e1d3f9c6a 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi @@ -1100,8 +1100,9 @@ named function that you create (e.g.@: with @code{defun}), as well as any anonymous function that you create using the @code{lambda} macro or the @code{function} special form or the @code{#'} syntax (@pxref{Anonymous Functions}), is automatically converted into a -closure. +@dfn{closure}. +@cindex closure A closure is a function that also carries a record of the lexical environment that existed when the function was defined. When it is invoked, any lexical variable references within its definition use the diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index affaff46ff..3b078e7e19 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi @@ -967,11 +967,11 @@ wants the current value of a variable, it looks first in the lexical environment; if the variable is not specified in there, it looks in the symbol's value cell, where the dynamic value is stored. -@cindex closures +@cindex closures, example of using Lexical bindings have indefinite extent. Even after a binding construct has finished executing, its lexical environment can be ``kept around'' in Lisp objects called @dfn{closures}. A closure is -created when you create a named or anonymous function with lexical +created when you define a named or anonymous function with lexical binding enabled. @xref{Closures}, for details. When a closure is called as a function, any lexical variable diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index b44beaa811..20c74cf70b 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,8 @@ +2012-08-06 Aurélien Aptel <[email protected]> + + * url.texi (Parsed URLs): Adjust to the code's use of defstruct + (bug#12096). + 2012-08-01 Jay Belanger <[email protected]> * calc.texi (Simplification modes, Conversions) diff --git a/doc/misc/url.texi b/doc/misc/url.texi index 680f192147..898a9994a8 100644 --- a/doc/misc/url.texi +++ b/doc/misc/url.texi @@ -126,10 +126,10 @@ directory in @code{user-emacs-directory}, which is normally @section Parsed URLs @cindex parsed URLs The library functions typically operate on @dfn{parsed} versions of -URLs. These are actually vectors of the form: +URLs. These are actually CL structures (vectors) of the form: @example -[@var{type} @var{user} @var{password} @var{host} @var{port} @var{file} @var{target} @var{attributes} @var{full}] +[cl-struct-url @var{type} @var{user} @var{password} @var{host} @var{port} @var{filename} @var{target} @var{attributes} @var{fullness} @var{use-cookies}] @end example @noindent where @@ -144,16 +144,19 @@ is the user password associated with it, or @code{nil}; is the host name associated with it, or @code{nil}; @item port is the port number associated with it, or @code{nil}; -@item file +@item filename is the ``file'' part of it, or @code{nil}. This doesn't necessarily actually refer to a file; @item target is the target part, or @code{nil}; @item attributes is the attributes associated with it, or @code{nil}; -@item full +@item fullness is @code{t} for a fully-specified URL, with a host part indicated by @samp{//} after the scheme part. +@item use-cookies +is @code{nil} to neither send or store cookies to the server, @code{t} +otherwise. @end table @findex url-type @@ -161,23 +164,21 @@ is @code{t} for a fully-specified URL, with a host part indicated by @findex url-password @findex url-host @findex url-port -@findex url-file +@findex url-filename @findex url-target @findex url-attributes -@findex url-full -@findex url-set-type -@findex url-set-user -@findex url-set-password -@findex url-set-host -@findex url-set-port -@findex url-set-file -@findex url-set-target -@findex url-set-attributes -@findex url-set-full +@findex url-fullness These attributes have accessors named @code{url-@var{part}}, where @var{part} is the name of one of the elements above, e.g., -@code{url-host}. Similarly, there are setters of the form -@code{url-set-@var{part}}. +@code{url-host}. These attributes can be set with the same accessors +using @code{setf}: + +@example +(setf (url-port url) 80) +@end example + +If @var{port} is @var{nil}, @code{url-port} returns the default port +of the protocol. There are functions for parsing and unparsing between the string and vector forms. |