aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2012-11-17 17:52:36 -0800
committerGlenn Morris2012-11-17 17:52:36 -0800
commit2ac9538d674ab0aa937d22b68fef9136ddd904b9 (patch)
tree81cf8c6762c0443ca2debe490ecfa7c1e55d2da0 /doc
parentc9ed8e3d2ba6c7d6eda82a39cbfa87729f1ca53e (diff)
parent291a654dad6d4604ed4db80885b3af04e64c944f (diff)
downloademacs-2ac9538d674ab0aa937d22b68fef9136ddd904b9.tar.gz
emacs-2ac9538d674ab0aa937d22b68fef9136ddd904b9.zip
Merge from emacs-24; up to 2012-11-15T23:31:37Z!dancol@dancol.org
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/mark.texi11
-rw-r--r--doc/lispref/ChangeLog21
-rw-r--r--doc/lispref/display.texi34
-rw-r--r--doc/lispref/frames.texi15
-rw-r--r--doc/lispref/loading.texi19
-rw-r--r--doc/lispref/macros.texi4
-rw-r--r--doc/lispref/minibuf.texi25
-rw-r--r--doc/lispref/windows.texi10
9 files changed, 132 insertions, 11 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 9fad60d2a8c..dc5fa539cd1 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12012-11-18 Dani Moncayo <dmoncayo@gmail.com>
2
3 * mark.texi (Disabled Transient Mark): Doc fixes (Bug#12746).
4
12012-11-16 Eli Zaretskii <eliz@gnu.org> 52012-11-16 Eli Zaretskii <eliz@gnu.org>
2 6
3 * trouble.texi (Crashing): Add information about MS-Windows and 7 * trouble.texi (Crashing): Add information about MS-Windows and
diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi
index 83d519a4cd2..db191eb175c 100644
--- a/doc/emacs/mark.texi
+++ b/doc/emacs/mark.texi
@@ -430,10 +430,6 @@ mark is by using @kbd{C-x C-x}, which exchanges the positions of the
430point and the mark (@pxref{Setting Mark}). 430point and the mark (@pxref{Setting Mark}).
431 431
432@item 432@item
433Many commands that move point long distances, like @kbd{M-<} and
434@kbd{C-s}, first set the mark where point was.
435
436@item
437Some commands, which ordinarily act on the region when the mark is 433Some commands, which ordinarily act on the region when the mark is
438active, no longer do so. For example, normally @kbd{M-%} 434active, no longer do so. For example, normally @kbd{M-%}
439(@code{query-replace}) performs replacements within the region, if the 435(@code{query-replace}) performs replacements within the region, if the
@@ -455,9 +451,10 @@ command twice.)
455 451
456@item C-u C-x C-x 452@item C-u C-x C-x
457@kindex C-u C-x C-x 453@kindex C-u C-x C-x
458Activate the mark and enable Transient Mark mode temporarily, until 454Exchange point and mark, activate the mark and enable Transient Mark
459the mark is next deactivated. (This is the @kbd{C-x C-x} command, 455mode temporarily, until the mark is next deactivated. (This is the
460@code{exchange-point-and-mark}, with a prefix argument.) 456@kbd{C-x C-x} command, @code{exchange-point-and-mark}, with a prefix
457argument.)
461@end table 458@end table
462 459
463 These commands set or activate the mark, and enable Transient Mark 460 These commands set or activate the mark, and enable Transient Mark
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 8c1a863371b..a5295adc368 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,24 @@
12012-11-18 Glenn Morris <rgm@gnu.org>
2
3 * loading.texi (How Programs Do Loading): Add eager macro expansion.
4 * macros.texi (Expansion): Mention eager macro expansion.
5
6 * minibuf.texi (Basic Completion): Mention misc completion-table funcs.
7
82012-11-18 Leo Liu <sdl.web@gmail.com>
9
10 * minibuf.texi (Programmed Completion): Doc fix for metadata
11 request (Bug#12850).
12
132012-11-18 Glenn Morris <rgm@gnu.org>
14
15 * display.texi (Temporary Displays): Document with-temp-buffer-window.
16
17 * frames.texi (Size and Position): Add fit-frame-to-buffer command.
18 * windows.texi (Resizing Windows): Add fit-frame-to-buffer option.
19 (Window Sizes): Add vindex for window-min-height, window-min-width.
20 (Display Action Functions): Mention pop-up-frame-parameters.
21
12012-11-16 Martin Rudalics <rudalics@gmx.at> 222012-11-16 Martin Rudalics <rudalics@gmx.at>
2 23
3 * windows.texi (Choosing Window): Rewrite description of 24 * windows.texi (Choosing Window): Rewrite description of
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 9fedd162da6..475a9550f99 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -1078,7 +1078,8 @@ editing. Many help commands use this feature.
1078This function executes @var{forms} while arranging to insert any output 1078This function executes @var{forms} while arranging to insert any output
1079they print into the buffer named @var{buffer-name}, which is first 1079they print into the buffer named @var{buffer-name}, which is first
1080created if necessary, and put into Help mode. Finally, the buffer is 1080created if necessary, and put into Help mode. Finally, the buffer is
1081displayed in some window, but not selected. 1081displayed in some window, but not selected. (See the similar
1082form @code{with-temp-buffer-window} below.)
1082 1083
1083If the @var{forms} do not change the major mode in the output buffer, 1084If the @var{forms} do not change the major mode in the output buffer,
1084so that it is still Help mode at the end of their execution, then 1085so that it is still Help mode at the end of their execution, then
@@ -1152,6 +1153,37 @@ displaying the temporary buffer. When the hook runs, the temporary buffer
1152is current, and the window it was displayed in is selected. 1153is current, and the window it was displayed in is selected.
1153@end defvar 1154@end defvar
1154 1155
1156@defmac with-temp-buffer-window buffer-or-name action quit-function forms@dots{}
1157This macro is similar to @code{with-output-to-temp-buffer}.
1158Like that construct, it executes @var{forms} while arranging to insert
1159any output they print into the buffer named @var{buffer-or-name}.
1160Finally, the buffer is displayed in some window, but not selected.
1161Unlike @code{with-output-to-temp-buffer}, this does not switch to Help
1162mode.
1163
1164The argument @var{buffer-or-name} specifies the temporary buffer.
1165It can be either a buffer, which must already exist, or a string,
1166in which case a buffer of that name is created if necessary.
1167The buffer is marked as unmodified and read-only when
1168@code{with-temp-buffer-window} exits.
1169
1170This macro does not call @code{temp-buffer-show-function}. Rather, it
1171passes the @var{action} argument to @code{display-buffer} in order to
1172display the buffer.
1173
1174The value of the last form in @var{forms} is returned, unless the
1175argument @var{quit-function} is specified. In that case,
1176it is called with two arguments: the window showing the buffer
1177and the result of @var{forms}. The final return value is then
1178whatever @var{quit-function} returns.
1179
1180@vindex temp-buffer-window-setup-hook
1181@vindex temp-buffer-window-show-hook
1182This macro uses the normal hooks @code{temp-buffer-window-setup-hook}
1183and @code{temp-buffer-window-show-hook} in place of the analogous hooks
1184run by @code{with-output-to-temp-buffer}.
1185@end defmac
1186
1155@defun momentary-string-display string position &optional char message 1187@defun momentary-string-display string position &optional char message
1156This function momentarily displays @var{string} in the current buffer at 1188This function momentarily displays @var{string} in the current buffer at
1157@var{position}. It has no effect on the undo list or on the buffer's 1189@var{position}. It has no effect on the undo list or on the buffer's
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 27d55c4fdb9..846dfbaf17c 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -1113,6 +1113,21 @@ The argument @var{pretend} has the same meaning as in
1113@code{set-frame-height}. 1113@code{set-frame-height}.
1114@end defun 1114@end defun
1115 1115
1116@c FIXME? Belongs more in Emacs manual than here?
1117@c But eg fit-window-to-buffer is in this manual.
1118@deffn Command fit-frame-to-buffer &optional frame max-height min-height
1119This command adjusts the height of @var{frame} (the default is the
1120selected frame) to fit its contents. The optional arguments
1121@var{max-height} and @var{min-height} specify the maximum and minimum
1122new frame heights, respectively.
1123
1124@vindex fit-frame-to-buffer-bottom-margin
1125The default minimum height corresponds to @code{window-min-height}.
1126The default maximum height is the screen height below the current top
1127position of the frame, minus any margin specified by the option
1128@code{fit-frame-to-buffer-bottom-margin}.
1129@end deffn
1130
1116@node Geometry 1131@node Geometry
1117@subsection Geometry 1132@subsection Geometry
1118 1133
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi
index 3a511d34829..54acd0b4d4c 100644
--- a/doc/lispref/loading.texi
+++ b/doc/lispref/loading.texi
@@ -113,6 +113,25 @@ When loading a source file (not compiled), @code{load} performs
113character set translation just as Emacs would do when visiting the file. 113character set translation just as Emacs would do when visiting the file.
114@xref{Coding Systems}. 114@xref{Coding Systems}.
115 115
116@c This is referred to from the Macros chapter.
117@c Not sure if it should be the other way round.
118@cindex eager macro expansion
119When loading an uncompiled file, Emacs tries to expand any macros
120that the file contains (@pxref{Macros}). We refer to this as
121@dfn{eager macro expansion}. Doing this (rather than deferring
122the expansion until the relevant code runs) can significantly speed
123up the execution of uncompiled code. Sometimes, this macro expansion
124cannot be done, owing to a cyclic dependency. In the simplest
125example of this, the file you are loading refers to a macro defined
126in another file, and that file in turn requires the file you are
127loading. This is generally harmless. Emacs prints a warning
128(@samp{Eager macro-expansion skipped due to cycle@dots{}})
129giving details of the problem, but it still loads the file, just
130leaving the macro unexpanded for now. You may wish to restructure
131your code so that this does not happen. Loading a compiled file does
132not cause macroexpansion, because this should already have happened
133during compilation. @xref{Compiling Macros}.
134
116Messages like @samp{Loading foo...} and @samp{Loading foo...done} appear 135Messages like @samp{Loading foo...} and @samp{Loading foo...done} appear
117in the echo area during loading unless @var{nomessage} is 136in the echo area during loading unless @var{nomessage} is
118non-@code{nil}. 137non-@code{nil}.
diff --git a/doc/lispref/macros.texi b/doc/lispref/macros.texi
index 8be6a3fbcde..b0dee1bf215 100644
--- a/doc/lispref/macros.texi
+++ b/doc/lispref/macros.texi
@@ -86,6 +86,10 @@ macro.
86calls to other macros. It may even be a call to the same macro, though 86calls to other macros. It may even be a call to the same macro, though
87this is unusual. 87this is unusual.
88 88
89 Note that Emacs tries to expand macros when loading an uncompiled
90Lisp file. This is not always possible, but if it is, it speeds up
91subsequent execution. @xref{How Programs Do Loading}.
92
89 You can see the expansion of a given macro call by calling 93 You can see the expansion of a given macro call by calling
90@code{macroexpand}. 94@code{macroexpand}.
91 95
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 7243f46b882..033c10fbf7d 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -886,6 +886,26 @@ Here is an example:
886@end smallexample 886@end smallexample
887@end defmac 887@end defmac
888 888
889@c FIXME? completion-table-with-context?
890@findex completion-table-case-fold
891@findex completion-table-in-turn
892@findex completion-table-subvert
893@findex completion-table-with-quoting
894@findex completion-table-with-predicate
895@findex completion-table-with-terminator
896@cindex completion table, modifying
897@cindex completion tables, combining
898There are several functions that take an existing completion table and
899return a modified version. @code{completion-table-case-fold} returns
900a case-insensitive table. @code{completion-table-in-turn} combines
901multiple input tables. @code{completion-table-subvert} alters a table
902to use a different initial prefix. @code{completion-table-with-quoting}
903returns a table suitable for operating on quoted text.
904@code{completion-table-with-predicate} filters a table with a
905predicate function. @code{completion-table-with-terminator} adds a
906terminating string.
907
908
889@node Minibuffer Completion 909@node Minibuffer Completion
890@subsection Completion and the Minibuffer 910@subsection Completion and the Minibuffer
891@cindex minibuffer completion 911@cindex minibuffer completion
@@ -1710,8 +1730,9 @@ string, and @var{end} is the position of the end boundary in
1710 1730
1711@item metadata 1731@item metadata
1712This specifies a request for information about the state of the 1732This specifies a request for information about the state of the
1713current completion. The function should return an alist, as described 1733current completion. The return value should have the form
1714below. The alist may contain any number of elements. 1734@code{(metadata . @var{alist})}, where @var{alist} is an alist whose
1735elements are described below.
1715@end table 1736@end table
1716 1737
1717@noindent 1738@noindent
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index efbfebc670f..b8581b1cc62 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -490,6 +490,8 @@ partially-visible line at the bottom of the text area is not counted.
490aliases are considered obsolete and will be removed in the future. 490aliases are considered obsolete and will be removed in the future.
491 491
492@cindex fixed-size window 492@cindex fixed-size window
493@vindex window-min-height
494@vindex window-min-width
493 Commands that change the size of windows (@pxref{Resizing Windows}), 495 Commands that change the size of windows (@pxref{Resizing Windows}),
494or split them (@pxref{Splitting Windows}), obey the variables 496or split them (@pxref{Splitting Windows}), obey the variables
495@code{window-min-height} and @code{window-min-width}, which specify 497@code{window-min-height} and @code{window-min-width}, which specify
@@ -633,6 +635,10 @@ variable @code{window-min-height}.
633If the optional argument @var{override} is non-@code{nil}, this 635If the optional argument @var{override} is non-@code{nil}, this
634function ignores any size restrictions imposed by 636function ignores any size restrictions imposed by
635@code{window-min-height} and @code{window-min-width}. 637@code{window-min-height} and @code{window-min-width}.
638
639@vindex fit-frame-to-buffer
640If the option @code{fit-frame-to-buffer} is non-@code{nil}, this
641command may resize the frame to fit its contents.
636@end deffn 642@end deffn
637 643
638@deffn Command shrink-window-if-larger-than-buffer &optional window 644@deffn Command shrink-window-if-larger-than-buffer &optional window
@@ -1926,7 +1932,9 @@ entry (@pxref{Choosing Window Options}), raises that frame if necessary.
1926This function creates a new frame, and displays the buffer in that 1932This function creates a new frame, and displays the buffer in that
1927frame's window. It actually performs the frame creation by calling 1933frame's window. It actually performs the frame creation by calling
1928the function specified in @code{pop-up-frame-function} 1934the function specified in @code{pop-up-frame-function}
1929(@pxref{Choosing Window Options}). 1935(@pxref{Choosing Window Options}). If @var{alist} contains a
1936@code{pop-up-frame-parameters} entry, the associated value
1937is added to the newly created frame's parameters.
1930@end defun 1938@end defun
1931 1939
1932@defun display-buffer-pop-up-window buffer alist 1940@defun display-buffer-pop-up-window buffer alist