diff options
| author | Glenn Morris | 2012-11-17 17:52:36 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-11-17 17:52:36 -0800 |
| commit | 2ac9538d674ab0aa937d22b68fef9136ddd904b9 (patch) | |
| tree | 81cf8c6762c0443ca2debe490ecfa7c1e55d2da0 /doc | |
| parent | c9ed8e3d2ba6c7d6eda82a39cbfa87729f1ca53e (diff) | |
| parent | 291a654dad6d4604ed4db80885b3af04e64c944f (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/mark.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 21 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 34 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 15 | ||||
| -rw-r--r-- | doc/lispref/loading.texi | 19 | ||||
| -rw-r--r-- | doc/lispref/macros.texi | 4 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 25 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 10 |
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 @@ | |||
| 1 | 2012-11-18 Dani Moncayo <dmoncayo@gmail.com> | ||
| 2 | |||
| 3 | * mark.texi (Disabled Transient Mark): Doc fixes (Bug#12746). | ||
| 4 | |||
| 1 | 2012-11-16 Eli Zaretskii <eliz@gnu.org> | 5 | 2012-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 | |||
| 430 | point and the mark (@pxref{Setting Mark}). | 430 | point and the mark (@pxref{Setting Mark}). |
| 431 | 431 | ||
| 432 | @item | 432 | @item |
| 433 | Many commands that move point long distances, like @kbd{M-<} and | ||
| 434 | @kbd{C-s}, first set the mark where point was. | ||
| 435 | |||
| 436 | @item | ||
| 437 | Some commands, which ordinarily act on the region when the mark is | 433 | Some commands, which ordinarily act on the region when the mark is |
| 438 | active, no longer do so. For example, normally @kbd{M-%} | 434 | active, 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 |
| 458 | Activate the mark and enable Transient Mark mode temporarily, until | 454 | Exchange point and mark, activate the mark and enable Transient Mark |
| 459 | the mark is next deactivated. (This is the @kbd{C-x C-x} command, | 455 | mode 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 |
| 457 | argument.) | ||
| 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 @@ | |||
| 1 | 2012-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 | |||
| 8 | 2012-11-18 Leo Liu <sdl.web@gmail.com> | ||
| 9 | |||
| 10 | * minibuf.texi (Programmed Completion): Doc fix for metadata | ||
| 11 | request (Bug#12850). | ||
| 12 | |||
| 13 | 2012-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 | |||
| 1 | 2012-11-16 Martin Rudalics <rudalics@gmx.at> | 22 | 2012-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. | |||
| 1078 | This function executes @var{forms} while arranging to insert any output | 1078 | This function executes @var{forms} while arranging to insert any output |
| 1079 | they print into the buffer named @var{buffer-name}, which is first | 1079 | they print into the buffer named @var{buffer-name}, which is first |
| 1080 | created if necessary, and put into Help mode. Finally, the buffer is | 1080 | created if necessary, and put into Help mode. Finally, the buffer is |
| 1081 | displayed in some window, but not selected. | 1081 | displayed in some window, but not selected. (See the similar |
| 1082 | form @code{with-temp-buffer-window} below.) | ||
| 1082 | 1083 | ||
| 1083 | If the @var{forms} do not change the major mode in the output buffer, | 1084 | If the @var{forms} do not change the major mode in the output buffer, |
| 1084 | so that it is still Help mode at the end of their execution, then | 1085 | so 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 | |||
| 1152 | is current, and the window it was displayed in is selected. | 1153 | is 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{} | ||
| 1157 | This macro is similar to @code{with-output-to-temp-buffer}. | ||
| 1158 | Like that construct, it executes @var{forms} while arranging to insert | ||
| 1159 | any output they print into the buffer named @var{buffer-or-name}. | ||
| 1160 | Finally, the buffer is displayed in some window, but not selected. | ||
| 1161 | Unlike @code{with-output-to-temp-buffer}, this does not switch to Help | ||
| 1162 | mode. | ||
| 1163 | |||
| 1164 | The argument @var{buffer-or-name} specifies the temporary buffer. | ||
| 1165 | It can be either a buffer, which must already exist, or a string, | ||
| 1166 | in which case a buffer of that name is created if necessary. | ||
| 1167 | The buffer is marked as unmodified and read-only when | ||
| 1168 | @code{with-temp-buffer-window} exits. | ||
| 1169 | |||
| 1170 | This macro does not call @code{temp-buffer-show-function}. Rather, it | ||
| 1171 | passes the @var{action} argument to @code{display-buffer} in order to | ||
| 1172 | display the buffer. | ||
| 1173 | |||
| 1174 | The value of the last form in @var{forms} is returned, unless the | ||
| 1175 | argument @var{quit-function} is specified. In that case, | ||
| 1176 | it is called with two arguments: the window showing the buffer | ||
| 1177 | and the result of @var{forms}. The final return value is then | ||
| 1178 | whatever @var{quit-function} returns. | ||
| 1179 | |||
| 1180 | @vindex temp-buffer-window-setup-hook | ||
| 1181 | @vindex temp-buffer-window-show-hook | ||
| 1182 | This macro uses the normal hooks @code{temp-buffer-window-setup-hook} | ||
| 1183 | and @code{temp-buffer-window-show-hook} in place of the analogous hooks | ||
| 1184 | run 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 |
| 1156 | This function momentarily displays @var{string} in the current buffer at | 1188 | This 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 | ||
| 1119 | This command adjusts the height of @var{frame} (the default is the | ||
| 1120 | selected frame) to fit its contents. The optional arguments | ||
| 1121 | @var{max-height} and @var{min-height} specify the maximum and minimum | ||
| 1122 | new frame heights, respectively. | ||
| 1123 | |||
| 1124 | @vindex fit-frame-to-buffer-bottom-margin | ||
| 1125 | The default minimum height corresponds to @code{window-min-height}. | ||
| 1126 | The default maximum height is the screen height below the current top | ||
| 1127 | position 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 | |||
| 113 | character set translation just as Emacs would do when visiting the file. | 113 | character 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 | ||
| 119 | When loading an uncompiled file, Emacs tries to expand any macros | ||
| 120 | that the file contains (@pxref{Macros}). We refer to this as | ||
| 121 | @dfn{eager macro expansion}. Doing this (rather than deferring | ||
| 122 | the expansion until the relevant code runs) can significantly speed | ||
| 123 | up the execution of uncompiled code. Sometimes, this macro expansion | ||
| 124 | cannot be done, owing to a cyclic dependency. In the simplest | ||
| 125 | example of this, the file you are loading refers to a macro defined | ||
| 126 | in another file, and that file in turn requires the file you are | ||
| 127 | loading. This is generally harmless. Emacs prints a warning | ||
| 128 | (@samp{Eager macro-expansion skipped due to cycle@dots{}}) | ||
| 129 | giving details of the problem, but it still loads the file, just | ||
| 130 | leaving the macro unexpanded for now. You may wish to restructure | ||
| 131 | your code so that this does not happen. Loading a compiled file does | ||
| 132 | not cause macroexpansion, because this should already have happened | ||
| 133 | during compilation. @xref{Compiling Macros}. | ||
| 134 | |||
| 116 | Messages like @samp{Loading foo...} and @samp{Loading foo...done} appear | 135 | Messages like @samp{Loading foo...} and @samp{Loading foo...done} appear |
| 117 | in the echo area during loading unless @var{nomessage} is | 136 | in the echo area during loading unless @var{nomessage} is |
| 118 | non-@code{nil}. | 137 | non-@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. | |||
| 86 | calls to other macros. It may even be a call to the same macro, though | 86 | calls to other macros. It may even be a call to the same macro, though |
| 87 | this is unusual. | 87 | this is unusual. |
| 88 | 88 | ||
| 89 | Note that Emacs tries to expand macros when loading an uncompiled | ||
| 90 | Lisp file. This is not always possible, but if it is, it speeds up | ||
| 91 | subsequent 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 | ||
| 898 | There are several functions that take an existing completion table and | ||
| 899 | return a modified version. @code{completion-table-case-fold} returns | ||
| 900 | a case-insensitive table. @code{completion-table-in-turn} combines | ||
| 901 | multiple input tables. @code{completion-table-subvert} alters a table | ||
| 902 | to use a different initial prefix. @code{completion-table-with-quoting} | ||
| 903 | returns a table suitable for operating on quoted text. | ||
| 904 | @code{completion-table-with-predicate} filters a table with a | ||
| 905 | predicate function. @code{completion-table-with-terminator} adds a | ||
| 906 | terminating 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 |
| 1712 | This specifies a request for information about the state of the | 1732 | This specifies a request for information about the state of the |
| 1713 | current completion. The function should return an alist, as described | 1733 | current completion. The return value should have the form |
| 1714 | below. The alist may contain any number of elements. | 1734 | @code{(metadata . @var{alist})}, where @var{alist} is an alist whose |
| 1735 | elements 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. | |||
| 490 | aliases are considered obsolete and will be removed in the future. | 490 | aliases 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}), |
| 494 | or split them (@pxref{Splitting Windows}), obey the variables | 496 | or 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}. | |||
| 633 | If the optional argument @var{override} is non-@code{nil}, this | 635 | If the optional argument @var{override} is non-@code{nil}, this |
| 634 | function ignores any size restrictions imposed by | 636 | function 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 | ||
| 640 | If the option @code{fit-frame-to-buffer} is non-@code{nil}, this | ||
| 641 | command 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. | |||
| 1926 | This function creates a new frame, and displays the buffer in that | 1932 | This function creates a new frame, and displays the buffer in that |
| 1927 | frame's window. It actually performs the frame creation by calling | 1933 | frame's window. It actually performs the frame creation by calling |
| 1928 | the function specified in @code{pop-up-frame-function} | 1934 | the 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 | ||
| 1937 | is 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 |