diff options
| author | Glenn Morris | 2014-10-04 00:05:21 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-10-04 00:05:21 -0700 |
| commit | 10501882f7c23525c14f3f4712ce34f7fe335864 (patch) | |
| tree | f8b8b8a7d2abbfeaf4a48ccd0082e3c80dd5a15e | |
| parent | 03c4553666d2e99d4e6f51f2195c0136d317f0c9 (diff) | |
| parent | 9352c1465fc4c32e04e763b4bf70e24292f06eed (diff) | |
| download | emacs-10501882f7c23525c14f3f4712ce34f7fe335864.tar.gz emacs-10501882f7c23525c14f3f4712ce34f7fe335864.zip | |
Merge from emacs-24; up to 2014-07-20T16:14:58Z!dmantipov@yandex.ru
| -rw-r--r-- | doc/emacs/ChangeLog | 10 | ||||
| -rw-r--r-- | doc/emacs/cmdargs.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/display.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/killing.texi | 19 | ||||
| -rw-r--r-- | doc/emacs/misc.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/vc1-xtra.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/ChangeLog | 15 | ||||
| -rw-r--r-- | doc/lispref/buffers.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/commands.texi | 35 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 10 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 53 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 9 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 49 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/misc/vip.texi | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/frame.el | 22 |
18 files changed, 133 insertions, 118 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index f13879eaa08..9115b514871 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2014-10-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * cmdargs.texi (Misc X): | ||
| 4 | * display.texi (Optional Mode Line): | ||
| 5 | * misc.texi (emacsclient Options): | ||
| 6 | * vc1-xtra.texi (VC Delete/Rename): Small fixes re @var usage. | ||
| 7 | |||
| 8 | * killing.texi (Rectangles): Copyedits re rectangle-mark-mode. | ||
| 9 | (CUA Bindings): Mention rectangle-mark-mode. | ||
| 10 | |||
| 1 | 2014-10-03 Martin Rudalics <rudalics@gmx.at> | 11 | 2014-10-03 Martin Rudalics <rudalics@gmx.at> |
| 2 | 12 | ||
| 3 | * frames.texi (Frame Commands): | 13 | * frames.texi (Frame Commands): |
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index 3443f0b1627..b438281b2a2 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -1106,8 +1106,8 @@ rectangle containing the frame's title. | |||
| 1106 | @c Enable horizontal scroll bars. Since horizontal scroll bars | 1106 | @c Enable horizontal scroll bars. Since horizontal scroll bars |
| 1107 | @c are not yet implemented, this actually does nothing. | 1107 | @c are not yet implemented, this actually does nothing. |
| 1108 | 1108 | ||
| 1109 | @item --parent-id @var{ID} | 1109 | @item --parent-id @var{id} |
| 1110 | Open Emacs as a client X window via the XEmbed protocol, with @var{ID} | 1110 | Open Emacs as a client X window via the XEmbed protocol, with @var{id} |
| 1111 | as the parent X window id. Currently, this option is mainly useful | 1111 | as the parent X window id. Currently, this option is mainly useful |
| 1112 | for developers. | 1112 | for developers. |
| 1113 | 1113 | ||
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index bdcb185a5f3..0a77e722d32 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -1245,11 +1245,11 @@ Size Indication mode. The size will be displayed immediately | |||
| 1245 | following the buffer percentage like this: | 1245 | following the buffer percentage like this: |
| 1246 | 1246 | ||
| 1247 | @example | 1247 | @example |
| 1248 | @var{POS} of @var{SIZE} | 1248 | @var{pos} of @var{size} |
| 1249 | @end example | 1249 | @end example |
| 1250 | 1250 | ||
| 1251 | @noindent | 1251 | @noindent |
| 1252 | Here @var{SIZE} is the human readable representation of the number of | 1252 | Here @var{size} is the human readable representation of the number of |
| 1253 | characters in the buffer, which means that @samp{k} for 10^3, @samp{M} | 1253 | characters in the buffer, which means that @samp{k} for 10^3, @samp{M} |
| 1254 | for 10^6, @samp{G} for 10^9, etc., are used to abbreviate. | 1254 | for 10^6, @samp{G} for 10^9, etc., are used to abbreviate. |
| 1255 | 1255 | ||
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi index 45dbd5727ac..f4b1752643d 100644 --- a/doc/emacs/killing.texi +++ b/doc/emacs/killing.texi | |||
| @@ -754,6 +754,10 @@ Replace rectangle contents with @var{string} on each line | |||
| 754 | (@code{string-rectangle}). | 754 | (@code{string-rectangle}). |
| 755 | @item M-x string-insert-rectangle @key{RET} @var{string} @key{RET} | 755 | @item M-x string-insert-rectangle @key{RET} @var{string} @key{RET} |
| 756 | Insert @var{string} on each line of the rectangle. | 756 | Insert @var{string} on each line of the rectangle. |
| 757 | @item C-x @key{SPC} | ||
| 758 | Toggle Rectangle Mark mode (@code{rectangle-mark-mode}). | ||
| 759 | When this mode is active, the region-rectangle is highlighted and can | ||
| 760 | be shrunk/grown, and the standard kill and yank commands operate on it. | ||
| 757 | @end table | 761 | @end table |
| 758 | 762 | ||
| 759 | The rectangle operations fall into two classes: commands to erase or | 763 | The rectangle operations fall into two classes: commands to erase or |
| @@ -840,11 +844,13 @@ rectangle shifts right. | |||
| 840 | shifting the original text to the right. | 844 | shifting the original text to the right. |
| 841 | 845 | ||
| 842 | @findex rectangle-mark-mode | 846 | @findex rectangle-mark-mode |
| 843 | @cindex rectangular region | 847 | The command @kbd{C-x @key{SPC}} (@code{rectangle-mark-mode}) toggles |
| 844 | The command @kbd{C-x @key{SPC}} (@code{rectangle-mark-mode}) makes a | 848 | whether the region-rectangle or the standard region is highlighted |
| 845 | @dfn{rectangular region}. It is a new feature introduced in GNU Emacs | 849 | (first activating the region if necessary). When this mode is enabled, |
| 846 | 24.4, and most commands now are still unaware of it, but kill and yank | 850 | commands that resize the region (@kbd{C-f}, @kbd{C-n} etc.) do |
| 847 | (@pxref{Killing}) do work on the rectangle. | 851 | so in a rectangular fashion, and killing and yanking operate on the |
| 852 | rectangle. @xref{Killing}. The mode persists only as long as the | ||
| 853 | region is active. | ||
| 848 | 854 | ||
| 849 | @node CUA Bindings | 855 | @node CUA Bindings |
| 850 | @section CUA Bindings | 856 | @section CUA Bindings |
| @@ -887,7 +893,8 @@ any direction. Normal text you type is inserted to the left or right | |||
| 887 | of each line in the rectangle (on the same side as the cursor). | 893 | of each line in the rectangle (on the same side as the cursor). |
| 888 | 894 | ||
| 889 | You can use this rectangle support without activating CUA by calling the | 895 | You can use this rectangle support without activating CUA by calling the |
| 890 | @code{cua-rectangle-mark-mode} command. | 896 | @code{cua-rectangle-mark-mode} command. But see also the standard |
| 897 | @code{rectangle-mark-mode}. @xref{Rectangles}. | ||
| 891 | 898 | ||
| 892 | With CUA you can easily copy text and rectangles into and out of | 899 | With CUA you can easily copy text and rectangles into and out of |
| 893 | registers by providing a one-digit numeric prefix to the kill, copy, | 900 | registers by providing a one-digit numeric prefix to the kill, copy, |
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index ae1aefcee76..1a865c70cdd 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -1610,9 +1610,9 @@ all server buffers are finished. You can take as long as you like to | |||
| 1610 | edit the server buffers within Emacs, and they are @emph{not} killed | 1610 | edit the server buffers within Emacs, and they are @emph{not} killed |
| 1611 | when you type @kbd{C-x #} in them. | 1611 | when you type @kbd{C-x #} in them. |
| 1612 | 1612 | ||
| 1613 | @item --parent-id @var{ID} | 1613 | @item --parent-id @var{id} |
| 1614 | Open an @command{emacsclient} frame as a client frame in the parent X | 1614 | Open an @command{emacsclient} frame as a client frame in the parent X |
| 1615 | window with id @var{ID}, via the XEmbed protocol. Currently, this | 1615 | window with id @var{id}, via the XEmbed protocol. Currently, this |
| 1616 | option is mainly useful for developers. | 1616 | option is mainly useful for developers. |
| 1617 | 1617 | ||
| 1618 | @item -q | 1618 | @item -q |
diff --git a/doc/emacs/vc1-xtra.texi b/doc/emacs/vc1-xtra.texi index 07f956c488d..dd52d97780d 100644 --- a/doc/emacs/vc1-xtra.texi +++ b/doc/emacs/vc1-xtra.texi | |||
| @@ -113,7 +113,7 @@ Prompt for a file name, delete the file from the working tree, and | |||
| 113 | schedule the deletion for committing. | 113 | schedule the deletion for committing. |
| 114 | 114 | ||
| 115 | @item M-x vc-rename-file | 115 | @item M-x vc-rename-file |
| 116 | Prompt for two file names, @var{VAR} and @var{OLD}, rename them in the | 116 | Prompt for two file names, @var{var} and @var{old}, rename them in the |
| 117 | working tree, and schedule the renaming for committing. | 117 | working tree, and schedule the renaming for committing. |
| 118 | @end table | 118 | @end table |
| 119 | 119 | ||
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 2cb9970f5fd..f3fce93dd53 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2014-10-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * commands.texi (Generic Commands): Copyedits. | ||
| 4 | |||
| 5 | * display.texi (Scroll Bars): | ||
| 6 | * modes.texi (Header Lines): Copyedits. | ||
| 7 | |||
| 8 | * buffers.texi (Buffer List): | ||
| 9 | * display.texi (Image Descriptors, Defining Images): | ||
| 10 | * functions.texi (Core Advising Primitives): Small fixes re @var usage. | ||
| 11 | |||
| 12 | * windows.texi (Window Sizes, Resizing Windows): Copyedits. | ||
| 13 | |||
| 14 | * frames.texi (Multiple Terminals): Copyedits re multiple monitors. | ||
| 15 | |||
| 1 | 2014-10-03 Martin Rudalics <rudalics@gmx.at> | 16 | 2014-10-03 Martin Rudalics <rudalics@gmx.at> |
| 2 | 17 | ||
| 3 | * frames.texi (Size Parameters, Size and Position): Mention that | 18 | * frames.texi (Size Parameters, Size and Position): Mention that |
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi index 1293a03082c..5ac2d6786e8 100644 --- a/doc/lispref/buffers.texi +++ b/doc/lispref/buffers.texi | |||
| @@ -863,7 +863,7 @@ If no suitable buffer exists, the buffer @file{*scratch*} is returned | |||
| 863 | 863 | ||
| 864 | @defun last-buffer &optional buffer visible-ok frame | 864 | @defun last-buffer &optional buffer visible-ok frame |
| 865 | This function returns the last buffer in @var{frame}'s buffer list other | 865 | This function returns the last buffer in @var{frame}'s buffer list other |
| 866 | than @var{BUFFER}. If @var{frame} is omitted or @code{nil}, it uses the | 866 | than @var{buffer}. If @var{frame} is omitted or @code{nil}, it uses the |
| 867 | selected frame's buffer list. | 867 | selected frame's buffer list. |
| 868 | 868 | ||
| 869 | The argument @var{visible-ok} is handled as with @code{other-buffer}, | 869 | The argument @var{visible-ok} is handled as with @code{other-buffer}, |
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index 58e903918bf..e5db4d87539 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -589,31 +589,26 @@ Put them into three windows, selecting the last one." | |||
| 589 | @cindex alternatives, defining | 589 | @cindex alternatives, defining |
| 590 | 590 | ||
| 591 | The macro @code{define-alternatives} can be used to define | 591 | The macro @code{define-alternatives} can be used to define |
| 592 | @dfn{generic commands}. Generic commands are interactive functions | 592 | @dfn{generic commands}. These are interactive functions whose |
| 593 | whose implementation can be selected among several alternatives, as a | 593 | implementation can be selected from several alternatives, as a matter |
| 594 | matter of user preference. | 594 | of user preference. |
| 595 | 595 | ||
| 596 | @defmac define-alternatives command &rest customizations | 596 | @defmac define-alternatives command &rest customizations |
| 597 | Define the new command `COMMAND'. | 597 | Define the new command @var{command}, a symbol. |
| 598 | 598 | ||
| 599 | The argument `COMMAND' should be a symbol. | 599 | When a user runs @kbd{M-x @var{command} @key{RET}} for the first time, |
| 600 | Emacs prompts for which real form of the command to use, and records | ||
| 601 | the selection by way of a custom variable. Using a prefix argument | ||
| 602 | repeats this process of choosing an alternative. | ||
| 600 | 603 | ||
| 601 | When a user runs @kbd{M-x COMMAND @key{RET}} for the first time, Emacs | 604 | The variable @code{@var{command}-alternatives} should contain an alist |
| 602 | will prompt for which alternative to use and record the selected | 605 | with alternative implementations of @var{command}. |
| 603 | command as a custom variable. | 606 | Until this variable is set, @code{define-alternatives} has no effect. |
| 604 | 607 | ||
| 605 | Running @kbd{C-u M-x COMMAND @key{RET}} prompts again for an | 608 | If @var{customizations} is non-@code{nil}, it should consist of |
| 606 | alternative and overwrites the previous choice. | 609 | alternating @code{defcustom} keywords (typically @code{:group} and |
| 607 | 610 | @code{:version}) and values to add to the declaration of | |
| 608 | The variable @code{COMMAND-alternatives} contains an alist | 611 | @code{@var{command}-alternatives}. |
| 609 | (@pxref{Association Lists}) with alternative implementations of | ||
| 610 | `COMMAND'. @code{define-alternatives} does not have any effect until | ||
| 611 | this variable is set. | ||
| 612 | |||
| 613 | If @var{customizations} is non-@var{nil}, it should be composed of | ||
| 614 | alternating @code{defcustom} keywords and values to add to the | ||
| 615 | declaration of @code{COMMAND-alternatives} (typically :group and | ||
| 616 | :version). | ||
| 617 | @end defmac | 612 | @end defmac |
| 618 | 613 | ||
| 619 | @node Interactive Call | 614 | @node Interactive Call |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index e88eadb5ca7..46be5ecf3f0 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -3925,9 +3925,9 @@ bar actually occupies. | |||
| 3925 | @end defun | 3925 | @end defun |
| 3926 | 3926 | ||
| 3927 | @defun window-scroll-bar-width &optional window | 3927 | @defun window-scroll-bar-width &optional window |
| 3928 | This function returns the width of @var{window}'s vertical scrollbar, | 3928 | This function returns the width in pixels of @var{window}'s vertical |
| 3929 | in pixels. @var{window} must be a live window. If @var{window} is | 3929 | scrollbar. @var{window} must be a live window, and defaults to the |
| 3930 | @code{nil} or omitted, it will be the selected window. | 3930 | selected window. |
| 3931 | @end defun | 3931 | @end defun |
| 3932 | 3932 | ||
| 3933 | If you don't specify these values for a window with | 3933 | If you don't specify these values for a window with |
| @@ -4503,7 +4503,7 @@ functions to insert images into buffers. | |||
| 4503 | 4503 | ||
| 4504 | Each image descriptor has the form @code{(image . @var{props})}, | 4504 | Each image descriptor has the form @code{(image . @var{props})}, |
| 4505 | where @var{props} is a property list of alternating keyword symbols | 4505 | where @var{props} is a property list of alternating keyword symbols |
| 4506 | and values, including at least the pair @code{:type @var{TYPE}} which | 4506 | and values, including at least the pair @code{:type @var{type}} that |
| 4507 | specifies the image type. | 4507 | specifies the image type. |
| 4508 | 4508 | ||
| 4509 | The following is a list of properties that are meaningful for all | 4509 | The following is a list of properties that are meaningful for all |
| @@ -4995,7 +4995,7 @@ of a list of image specifications @var{specs}. | |||
| 4995 | Each specification in @var{specs} is a property list with contents | 4995 | Each specification in @var{specs} is a property list with contents |
| 4996 | depending on image type. All specifications must at least contain the | 4996 | depending on image type. All specifications must at least contain the |
| 4997 | properties @code{:type @var{type}} and either @w{@code{:file @var{file}}} | 4997 | properties @code{:type @var{type}} and either @w{@code{:file @var{file}}} |
| 4998 | or @w{@code{:data @var{DATA}}}, where @var{type} is a symbol specifying | 4998 | or @w{@code{:data @var{data}}}, where @var{type} is a symbol specifying |
| 4999 | the image type, e.g., @code{xbm}, @var{file} is the file to load the | 4999 | the image type, e.g., @code{xbm}, @var{file} is the file to load the |
| 5000 | image from, and @var{data} is a string containing the actual image data. | 5000 | image from, and @var{data} is a string containing the actual image data. |
| 5001 | The first specification in the list whose @var{type} is supported, and | 5001 | The first specification in the list whose @var{type} is supported, and |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index fdb995f2399..c8e0fff6cd0 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -314,57 +314,50 @@ on that display (@pxref{Deleting Frames}). | |||
| 314 | 314 | ||
| 315 | @cindex multi-monitor | 315 | @cindex multi-monitor |
| 316 | On some ``multi-monitor'' setups, a single X display outputs to more | 316 | On some ``multi-monitor'' setups, a single X display outputs to more |
| 317 | than one physical monitor. @code{display-monitor-attributes-list} and | 317 | than one physical monitor. You can use the functions |
| 318 | @code{frame-monitor-attributes} can be used to obtain information | 318 | @code{display-monitor-attributes-list} and @code{frame-monitor-attributes} |
| 319 | about each physical monitor on multi-monitor setups. | 319 | to obtain information about such setups. |
| 320 | 320 | ||
| 321 | @defun display-monitor-attributes-list &optional display | 321 | @defun display-monitor-attributes-list &optional display |
| 322 | This function returns a list of physical monitor attributes on | 322 | This function returns a list of physical monitor attributes on |
| 323 | @var{display}. Each element of the list is an association list, | 323 | @var{display}, which defaults to that of the selected frame. |
| 324 | representing the attributes of each physical monitor. The first | 324 | Each element of the list is an association list, representing the |
| 325 | element corresponds to the primary monitor. | 325 | attributes of a physical monitor. The first element corresponds to |
| 326 | 326 | the primary monitor. The attribute keys and values are: | |
| 327 | Attributes for a physical monitor are: | ||
| 328 | 327 | ||
| 329 | @table @samp | 328 | @table @samp |
| 330 | @item geometry | 329 | @item geometry |
| 331 | Position and size in pixels in the form of @samp{(X Y WIDTH HEIGHT)} | 330 | Position and size in pixels as @samp{(@var{x} @var{y} |
| 331 | @var{width} @var{height})}. | ||
| 332 | 332 | ||
| 333 | @item workarea | 333 | @item workarea |
| 334 | Position and size of the workarea in pixels in the form of @samp{(X Y | 334 | Position and size of the work area in pixels as |
| 335 | WIDTH HEIGHT)} | 335 | @samp{(@var{x} @var{y} @var{width} @var{height})}. |
| 336 | 336 | ||
| 337 | @item mm-size | 337 | @item mm-size |
| 338 | Width and height in millimeters in the form of @samp{(WIDTH HEIGHT)} | 338 | Width and height in millimeters as @samp{(@var{width} @var{height})} |
| 339 | 339 | ||
| 340 | @item frames | 340 | @item frames |
| 341 | List of frames dominated by the physical monitor | 341 | List of frames that this physical monitor dominates (see below). |
| 342 | 342 | ||
| 343 | @item name | 343 | @item name |
| 344 | Name of the physical monitor as a string | 344 | Name of the physical monitor as @var{string}. |
| 345 | @end table | 345 | @end table |
| 346 | 346 | ||
| 347 | where X, Y, WIDTH, and HEIGHT are integers. @samp{name} is optional. | 347 | @var{x}, @var{y}, @var{width}, and @var{height} are integers. |
| 348 | 348 | @samp{name} may not be present. | |
| 349 | A frame is dominated by a physical monitor when either the | ||
| 350 | largest area of the frame resides in the monitor, or the monitor | ||
| 351 | is the closest to the frame if the frame does not intersect any | ||
| 352 | physical monitors. Every non-tip frame (including invisible one) | ||
| 353 | in a graphical display is dominated by exactly one physical | ||
| 354 | monitor at a time, though it can span multiple (or no) physical | ||
| 355 | monitors. | ||
| 356 | 349 | ||
| 357 | @var{display} defaults to the selected frame's display. | 350 | A frame is @dfn{dominated} by a physical monitor when either the |
| 351 | largest area of the frame resides in that monitor, or (if the frame | ||
| 352 | does not intersect any physical monitors) that monitor is the closest | ||
| 353 | to the frame. Every (non-tooltip) frame (whether visible or not) in a | ||
| 354 | graphical display is dominated by exactly one physical monitor at a | ||
| 355 | time, though the frame can span multiple (or no) physical monitors. | ||
| 358 | @end defun | 356 | @end defun |
| 359 | 357 | ||
| 360 | @defun frame-monitor-attributes &optional frame | 358 | @defun frame-monitor-attributes &optional frame |
| 361 | This function returns the attributes of the physical monitor | 359 | This function returns the attributes of the physical monitor |
| 362 | dominating @var{frame}, which defaults to the selected frame. | 360 | dominating (see above) @var{frame}, which defaults to the selected frame. |
| 363 | |||
| 364 | A frame is dominated by a physical monitor when either the | ||
| 365 | largest area of the frame resides in the monitor, or the monitor | ||
| 366 | is the closest to the frame if the frame does not intersect any | ||
| 367 | physical monitors. | ||
| 368 | @end defun | 361 | @end defun |
| 369 | 362 | ||
| 370 | @node Frame Parameters | 363 | @node Frame Parameters |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index 3049660159a..023175e3632 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -1232,7 +1232,7 @@ global value of @var{place}. Whereas if @var{place} is of the form | |||
| 1232 | @code{(local @var{symbol})}, where @var{symbol} is an expression which returns | 1232 | @code{(local @var{symbol})}, where @var{symbol} is an expression which returns |
| 1233 | the variable name, then @var{function} will only be added in the | 1233 | the variable name, then @var{function} will only be added in the |
| 1234 | current buffer. Finally, if you want to modify a lexical variable, you will | 1234 | current buffer. Finally, if you want to modify a lexical variable, you will |
| 1235 | have to use @code{(var @var{VARIABLE})}. | 1235 | have to use @code{(var @var{variable})}. |
| 1236 | 1236 | ||
| 1237 | Every function added with @code{add-function} can be accompanied by an | 1237 | Every function added with @code{add-function} can be accompanied by an |
| 1238 | association list of properties @var{props}. Currently only two of those | 1238 | association list of properties @var{props}. Currently only two of those |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index e23e2685a7c..d67bac63b15 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -2221,13 +2221,10 @@ is the same as for @code{mode-line-format} (@pxref{Mode Line Data}). | |||
| 2221 | It is normally @code{nil}, so that ordinary buffers have no header line. | 2221 | It is normally @code{nil}, so that ordinary buffers have no header line. |
| 2222 | @end defvar | 2222 | @end defvar |
| 2223 | 2223 | ||
| 2224 | The function @code{window-header-line-height} returns the height of | ||
| 2225 | the header line: | ||
| 2226 | |||
| 2227 | @defun window-header-line-height &optional window | 2224 | @defun window-header-line-height &optional window |
| 2228 | Return the height of @var{window}'s header line, in pixels. | 2225 | This function returns the height in pixels of @var{window}'s header |
| 2229 | @var{window} must be a live window. If @var{window} is @code{nil} or | 2226 | line. @var{window} must be a live window, and defaults to the |
| 2230 | omitted, it will be the selected window. | 2227 | selected window. |
| 2231 | @end defun | 2228 | @end defun |
| 2232 | 2229 | ||
| 2233 | A window that is just one line tall never displays a header line. A | 2230 | A window that is just one line tall never displays a header line. A |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index f2fe5c85a93..f5122a39f8c 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -451,7 +451,7 @@ This function returns the total height, in lines, of the window | |||
| 451 | the selected window. If @var{window} is an internal window, the return | 451 | the selected window. If @var{window} is an internal window, the return |
| 452 | value is the total height occupied by its descendant windows. | 452 | value is the total height occupied by its descendant windows. |
| 453 | 453 | ||
| 454 | If a window's pixel height is not an integral multiple of its frame's | 454 | If a window's pixel height is not an integral multiple of its frame's |
| 455 | default character height, the number of lines occupied by the window is | 455 | default character height, the number of lines occupied by the window is |
| 456 | rounded internally. This is done in a way such that, if the window is a | 456 | rounded internally. This is done in a way such that, if the window is a |
| 457 | parent window, the sum of the total heights of all its child windows | 457 | parent window, the sum of the total heights of all its child windows |
| @@ -462,13 +462,12 @@ vertically combined and has a right sibling, the topmost row of that | |||
| 462 | sibling can be calculated as the sum of this window's topmost row and | 462 | sibling can be calculated as the sum of this window's topmost row and |
| 463 | total height (@pxref{Coordinates and Windows}) | 463 | total height (@pxref{Coordinates and Windows}) |
| 464 | 464 | ||
| 465 | If the optional argument @var{round} equals @code{ceiling}, this | 465 | If the optional argument @var{round} is @code{ceiling}, this |
| 466 | function returns the smallest integer larger than @var{window}'s pixel | 466 | function returns the smallest integer larger than @var{window}'s pixel |
| 467 | height divided by the character height of @var{window}'s frame; if it is | 467 | height divided by the character height of its frame; if it is |
| 468 | @code{floor}, it returns the largest integer smaller than @var{window}'s | 468 | @code{floor}, it returns the largest integer smaller than said value; |
| 469 | pixel height divided by the character height of @var{window}'s frame. | 469 | with any other @var{round} it returns the internal value of |
| 470 | Any other value of @var{round} means to return the internal value of the | 470 | @var{windows}'s total height. |
| 471 | total height of @var{window}. | ||
| 472 | @end defun | 471 | @end defun |
| 473 | 472 | ||
| 474 | @cindex window width | 473 | @cindex window width |
| @@ -484,7 +483,7 @@ This function returns the total width, in columns, of the window | |||
| 484 | the selected window. If @var{window} is internal, the return value is | 483 | the selected window. If @var{window} is internal, the return value is |
| 485 | the total width occupied by its descendant windows. | 484 | the total width occupied by its descendant windows. |
| 486 | 485 | ||
| 487 | If a window's pixel width is not an integral multiple of its frame's | 486 | If a window's pixel width is not an integral multiple of its frame's |
| 488 | character width, the number of lines occupied by the window is rounded | 487 | character width, the number of lines occupied by the window is rounded |
| 489 | internally. This is done in a way such that, if the window is a parent | 488 | internally. This is done in a way such that, if the window is a parent |
| 490 | window, the sum of the total widths of all its children internally | 489 | window, the sum of the total widths of all its children internally |
| @@ -493,15 +492,9 @@ windows have the same pixel width, their internal total widths may | |||
| 493 | differ by one column. This means also, that if this window is | 492 | differ by one column. This means also, that if this window is |
| 494 | horizontally combined and has a right sibling, the leftmost column of | 493 | horizontally combined and has a right sibling, the leftmost column of |
| 495 | that sibling can be calculated as the sum of this window's leftmost | 494 | that sibling can be calculated as the sum of this window's leftmost |
| 496 | column and total width (@pxref{Coordinates and Windows}). | 495 | column and total width (@pxref{Coordinates and Windows}). The |
| 497 | 496 | optional argument @var{round} behaves as it does for | |
| 498 | If the optional argument @var{round} is @code{ceiling}, this function | 497 | @code{window-total-height}. |
| 499 | will return the smallest integer larger than @var{window}'s pixel width | ||
| 500 | divided by the character width of @var{window}'s frame; if it is | ||
| 501 | @code{floor}, it returns the largest integer smaller than @var{window}'s | ||
| 502 | pixel width divided by the character width of @var{window}'s frame. Any | ||
| 503 | other value of @var{round} means to return the internal total width of | ||
| 504 | @var{window}. | ||
| 505 | @end defun | 498 | @end defun |
| 506 | 499 | ||
| 507 | @defun window-total-size &optional window horizontal round | 500 | @defun window-total-size &optional window horizontal round |
| @@ -510,8 +503,7 @@ width in columns of the window @var{window}. If @var{horizontal} is | |||
| 510 | omitted or @code{nil}, this is equivalent to calling | 503 | omitted or @code{nil}, this is equivalent to calling |
| 511 | @code{window-total-height} for @var{window}; otherwise it is equivalent | 504 | @code{window-total-height} for @var{window}; otherwise it is equivalent |
| 512 | to calling @code{window-total-width} for @var{window}. The optional | 505 | to calling @code{window-total-width} for @var{window}. The optional |
| 513 | argument @code{ROUND} is handled as for @code{window-total-height} and | 506 | argument @var{round} behaves as it does for @code{window-total-height}. |
| 514 | @code{window-total-width}. | ||
| 515 | @end defun | 507 | @end defun |
| 516 | 508 | ||
| 517 | The following two functions can be used to return the total size of a | 509 | The following two functions can be used to return the total size of a |
| @@ -754,8 +746,8 @@ tall; and a minimum-width window as one consisting of fringes, margins, | |||
| 754 | a scroll bar and a right divider (if any), plus a text area two columns | 746 | a scroll bar and a right divider (if any), plus a text area two columns |
| 755 | wide. | 747 | wide. |
| 756 | 748 | ||
| 757 | If the optional argument @code{pixelwise} is non-@code{nil}, | 749 | If the optional argument @var{pixelwise} is non-@code{nil}, |
| 758 | @var{delta} will be interpreted as pixels. | 750 | @var{delta} is interpreted as pixels. |
| 759 | @end defun | 751 | @end defun |
| 760 | 752 | ||
| 761 | @defun window-resize window delta &optional horizontal ignore pixelwise | 753 | @defun window-resize window delta &optional horizontal ignore pixelwise |
| @@ -779,7 +771,7 @@ values of the option @code{window-combination-resize} and the | |||
| 779 | combination limits of the involved windows; in some cases, it may alter | 771 | combination limits of the involved windows; in some cases, it may alter |
| 780 | both edges. @xref{Recombining Windows}. To resize by moving only the | 772 | both edges. @xref{Recombining Windows}. To resize by moving only the |
| 781 | bottom or right edge of a window, use the function | 773 | bottom or right edge of a window, use the function |
| 782 | @code{adjust-window-trailing-edge}, below. | 774 | @code{adjust-window-trailing-edge}. |
| 783 | @end defun | 775 | @end defun |
| 784 | 776 | ||
| 785 | @c The commands enlarge-window, enlarge-window-horizontally, | 777 | @c The commands enlarge-window, enlarge-window-horizontally, |
| @@ -792,8 +784,8 @@ If optional argument @var{horizontal} is non-@code{nil}, it instead | |||
| 792 | moves the right edge by @var{delta} columns. If @var{window} is | 784 | moves the right edge by @var{delta} columns. If @var{window} is |
| 793 | @code{nil}, it defaults to the selected window. | 785 | @code{nil}, it defaults to the selected window. |
| 794 | 786 | ||
| 795 | If the optional argument @code{pixelwise} is non-@code{nil}, | 787 | If the optional argument @var{pixelwise} is non-@code{nil}, |
| 796 | @var{delta} will be interpreted as pixels. | 788 | @var{delta} is interpreted as pixels. |
| 797 | 789 | ||
| 798 | A positive @var{delta} moves the edge downwards or to the right; a | 790 | A positive @var{delta} moves the edge downwards or to the right; a |
| 799 | negative @var{delta} moves it upwards or to the left. If the edge | 791 | negative @var{delta} moves it upwards or to the left. If the edge |
| @@ -807,17 +799,16 @@ window is fixed-size), it may resize other windows. | |||
| 807 | 799 | ||
| 808 | @cindex pixelwise, resizing windows | 800 | @cindex pixelwise, resizing windows |
| 809 | @defopt window-resize-pixelwise | 801 | @defopt window-resize-pixelwise |
| 810 | If the value of this option is non-@code{nil}, windows are resized in | 802 | If the value of this option is non-@code{nil}, Emacs resizes windows in |
| 811 | units of pixels. This currently affects functions like | 803 | units of pixels. This currently affects functions like |
| 812 | @code{split-window} (@pxref{Splitting Windows}), @code{maximize-window}, | 804 | @code{split-window} (@pxref{Splitting Windows}), @code{maximize-window}, |
| 813 | @code{minimize-window}, @code{fit-window-to-buffer}, | 805 | @code{minimize-window}, @code{fit-window-to-buffer}, |
| 814 | @code{shrink-window-if-larger-than-buffer} (all listed below) and | 806 | @code{shrink-window-if-larger-than-buffer} (all listed below) and |
| 815 | @code{fit-frame-to-buffer} (@pxref{Size and Position}). | 807 | @code{fit-frame-to-buffer} (@pxref{Size and Position}). |
| 816 | 808 | ||
| 817 | Note that when a frame's pixel size is not a multiple of the frame's | 809 | Note that when a frame's pixel size is not a multiple of its character |
| 818 | character size, at least one window may get resized pixelwise even if | 810 | size, at least one window may get resized pixelwise even if this |
| 819 | this option is @code{nil}. The default value of this option is | 811 | option is @code{nil}. The default value is @code{nil}. |
| 820 | @code{nil}. | ||
| 821 | @end defopt | 812 | @end defopt |
| 822 | 813 | ||
| 823 | The following commands resize windows in more specific ways. When | 814 | The following commands resize windows in more specific ways. When |
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 270ab48bcda..7ce5941d282 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-10-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * vip.texi (Other Vi Commands): Markup fix. | ||
| 4 | |||
| 1 | 2014-10-03 Bastien Guerry <bzg@gnu.org> | 5 | 2014-10-03 Bastien Guerry <bzg@gnu.org> |
| 2 | 6 | ||
| 3 | * org.texi (Key bindings and useful functions): Fix typo. | 7 | * org.texi (Key bindings and useful functions): Fix typo. |
diff --git a/doc/misc/vip.texi b/doc/misc/vip.texi index 2b255eefcca..a6c6d3067ea 100644 --- a/doc/misc/vip.texi +++ b/doc/misc/vip.texi | |||
| @@ -1561,7 +1561,7 @@ assigned to a function that just beeps (@code{vip-nil}). | |||
| 1561 | @end example | 1561 | @end example |
| 1562 | 1562 | ||
| 1563 | VIP uses a special local keymap to interpret key strokes you enter in vi | 1563 | VIP uses a special local keymap to interpret key strokes you enter in vi |
| 1564 | mode. The following keys are bound to @var{nil} in the keymap. Therefore, | 1564 | mode. The following keys are bound to @code{nil} in the keymap. Therefore, |
| 1565 | these keys are interpreted by the global keymap of Emacs. We give below a | 1565 | these keys are interpreted by the global keymap of Emacs. We give below a |
| 1566 | short description of the functions bound to these keys in the global | 1566 | short description of the functions bound to these keys in the global |
| 1567 | keymap. See GNU Emacs Manual for details. | 1567 | keymap. See GNU Emacs Manual for details. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 75dac546c0f..375bfcf45db 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * frame.el (frame-monitor-attributes) | ||
| 4 | (display-monitor-attributes-list): Doc fixes. | ||
| 5 | |||
| 1 | 2014-10-04 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2014-10-04 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | Merge trivially safe differences from standalone CC-mode. | 8 | Merge trivially safe differences from standalone CC-mode. |
diff --git a/lisp/frame.el b/lisp/frame.el index 0b26e356f07..19c878b59e3 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1276,7 +1276,7 @@ bars (top, bottom, or nil)." | |||
| 1276 | 1276 | ||
| 1277 | (defun frame-monitor-attributes (&optional frame) | 1277 | (defun frame-monitor-attributes (&optional frame) |
| 1278 | "Return the attributes of the physical monitor dominating FRAME. | 1278 | "Return the attributes of the physical monitor dominating FRAME. |
| 1279 | If FRAME is omitted, describe the currently selected frame. | 1279 | If FRAME is omitted or nil, describe the currently selected frame. |
| 1280 | 1280 | ||
| 1281 | A frame is dominated by a physical monitor when either the | 1281 | A frame is dominated by a physical monitor when either the |
| 1282 | largest area of the frame resides in the monitor, or the monitor | 1282 | largest area of the frame resides in the monitor, or the monitor |
| @@ -1554,16 +1554,15 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display." | |||
| 1554 | 1554 | ||
| 1555 | (defun display-monitor-attributes-list (&optional display) | 1555 | (defun display-monitor-attributes-list (&optional display) |
| 1556 | "Return a list of physical monitor attributes on DISPLAY. | 1556 | "Return a list of physical monitor attributes on DISPLAY. |
| 1557 | Each element of the list represents the attributes of each | 1557 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. |
| 1558 | physical monitor. The first element corresponds to the primary | 1558 | Each element of the list represents the attributes of a physical |
| 1559 | monitor. | 1559 | monitor. The first element corresponds to the primary monitor. |
| 1560 | 1560 | ||
| 1561 | Attributes for a physical monitor is represented as an alist of | 1561 | The attributes for a physical monitor are represented as an alist |
| 1562 | attribute keys and values as follows: | 1562 | of attribute keys and values as follows: |
| 1563 | 1563 | ||
| 1564 | geometry -- Position and size in pixels in the form of | 1564 | geometry -- Position and size in pixels in the form of (X Y WIDTH HEIGHT) |
| 1565 | (X Y WIDTH HEIGHT) | 1565 | workarea -- Position and size of the work area in pixels in the |
| 1566 | workarea -- Position and size of the workarea in pixels in the | ||
| 1567 | form of (X Y WIDTH HEIGHT) | 1566 | form of (X Y WIDTH HEIGHT) |
| 1568 | mm-size -- Width and height in millimeters in the form of | 1567 | mm-size -- Width and height in millimeters in the form of |
| 1569 | (WIDTH HEIGHT) | 1568 | (WIDTH HEIGHT) |
| @@ -1576,11 +1575,10 @@ with (*) are optional. | |||
| 1576 | A frame is dominated by a physical monitor when either the | 1575 | A frame is dominated by a physical monitor when either the |
| 1577 | largest area of the frame resides in the monitor, or the monitor | 1576 | largest area of the frame resides in the monitor, or the monitor |
| 1578 | is the closest to the frame if the frame does not intersect any | 1577 | is the closest to the frame if the frame does not intersect any |
| 1579 | physical monitors. Every non-tip frame (including invisible one) | 1578 | physical monitors. Every (non-tooltip) frame (including invisible ones) |
| 1580 | in a graphical display is dominated by exactly one physical | 1579 | in a graphical display is dominated by exactly one physical |
| 1581 | monitor at a time, though it can span multiple (or no) physical | 1580 | monitor at a time, though it can span multiple (or no) physical |
| 1582 | monitors. | 1581 | monitors." |
| 1583 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." | ||
| 1584 | (let ((frame-type (framep-on-display display))) | 1582 | (let ((frame-type (framep-on-display display))) |
| 1585 | (cond | 1583 | (cond |
| 1586 | ((eq frame-type 'x) | 1584 | ((eq frame-type 'x) |