aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-10-04 00:05:21 -0700
committerGlenn Morris2014-10-04 00:05:21 -0700
commit10501882f7c23525c14f3f4712ce34f7fe335864 (patch)
treef8b8b8a7d2abbfeaf4a48ccd0082e3c80dd5a15e
parent03c4553666d2e99d4e6f51f2195c0136d317f0c9 (diff)
parent9352c1465fc4c32e04e763b4bf70e24292f06eed (diff)
downloademacs-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/ChangeLog10
-rw-r--r--doc/emacs/cmdargs.texi4
-rw-r--r--doc/emacs/display.texi4
-rw-r--r--doc/emacs/killing.texi19
-rw-r--r--doc/emacs/misc.texi4
-rw-r--r--doc/emacs/vc1-xtra.texi2
-rw-r--r--doc/lispref/ChangeLog15
-rw-r--r--doc/lispref/buffers.texi2
-rw-r--r--doc/lispref/commands.texi35
-rw-r--r--doc/lispref/display.texi10
-rw-r--r--doc/lispref/frames.texi53
-rw-r--r--doc/lispref/functions.texi2
-rw-r--r--doc/lispref/modes.texi9
-rw-r--r--doc/lispref/windows.texi49
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/vip.texi2
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/frame.el22
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 @@
12014-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
12014-10-03 Martin Rudalics <rudalics@gmx.at> 112014-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}
1110Open Emacs as a client X window via the XEmbed protocol, with @var{ID} 1110Open Emacs as a client X window via the XEmbed protocol, with @var{id}
1111as the parent X window id. Currently, this option is mainly useful 1111as the parent X window id. Currently, this option is mainly useful
1112for developers. 1112for 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
1245following the buffer percentage like this: 1245following 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
1252Here @var{SIZE} is the human readable representation of the number of 1252Here @var{size} is the human readable representation of the number of
1253characters in the buffer, which means that @samp{k} for 10^3, @samp{M} 1253characters in the buffer, which means that @samp{k} for 10^3, @samp{M}
1254for 10^6, @samp{G} for 10^9, etc., are used to abbreviate. 1254for 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}
756Insert @var{string} on each line of the rectangle. 756Insert @var{string} on each line of the rectangle.
757@item C-x @key{SPC}
758Toggle Rectangle Mark mode (@code{rectangle-mark-mode}).
759When this mode is active, the region-rectangle is highlighted and can
760be 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.
840shifting the original text to the right. 844shifting 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 848whether 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,
84624.4, and most commands now are still unaware of it, but kill and yank 850commands that resize the region (@kbd{C-f}, @kbd{C-n} etc.) do
847(@pxref{Killing}) do work on the rectangle. 851so in a rectangular fashion, and killing and yanking operate on the
852rectangle. @xref{Killing}. The mode persists only as long as the
853region 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
887of each line in the rectangle (on the same side as the cursor). 893of 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
893registers by providing a one-digit numeric prefix to the kill, copy, 900registers 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
1610edit the server buffers within Emacs, and they are @emph{not} killed 1610edit the server buffers within Emacs, and they are @emph{not} killed
1611when you type @kbd{C-x #} in them. 1611when you type @kbd{C-x #} in them.
1612 1612
1613@item --parent-id @var{ID} 1613@item --parent-id @var{id}
1614Open an @command{emacsclient} frame as a client frame in the parent X 1614Open an @command{emacsclient} frame as a client frame in the parent X
1615window with id @var{ID}, via the XEmbed protocol. Currently, this 1615window with id @var{id}, via the XEmbed protocol. Currently, this
1616option is mainly useful for developers. 1616option 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
113schedule the deletion for committing. 113schedule the deletion for committing.
114 114
115@item M-x vc-rename-file 115@item M-x vc-rename-file
116Prompt for two file names, @var{VAR} and @var{OLD}, rename them in the 116Prompt for two file names, @var{var} and @var{old}, rename them in the
117working tree, and schedule the renaming for committing. 117working 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 @@
12014-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
12014-10-03 Martin Rudalics <rudalics@gmx.at> 162014-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
865This function returns the last buffer in @var{frame}'s buffer list other 865This function returns the last buffer in @var{frame}'s buffer list other
866than @var{BUFFER}. If @var{frame} is omitted or @code{nil}, it uses the 866than @var{buffer}. If @var{frame} is omitted or @code{nil}, it uses the
867selected frame's buffer list. 867selected frame's buffer list.
868 868
869The argument @var{visible-ok} is handled as with @code{other-buffer}, 869The 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
591The macro @code{define-alternatives} can be used to define 591The 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
593whose implementation can be selected among several alternatives, as a 593implementation can be selected from several alternatives, as a matter
594matter of user preference. 594of user preference.
595 595
596@defmac define-alternatives command &rest customizations 596@defmac define-alternatives command &rest customizations
597Define the new command `COMMAND'. 597Define the new command @var{command}, a symbol.
598 598
599The argument `COMMAND' should be a symbol. 599When a user runs @kbd{M-x @var{command} @key{RET}} for the first time,
600Emacs prompts for which real form of the command to use, and records
601the selection by way of a custom variable. Using a prefix argument
602repeats this process of choosing an alternative.
600 603
601When a user runs @kbd{M-x COMMAND @key{RET}} for the first time, Emacs 604The variable @code{@var{command}-alternatives} should contain an alist
602will prompt for which alternative to use and record the selected 605with alternative implementations of @var{command}.
603command as a custom variable. 606Until this variable is set, @code{define-alternatives} has no effect.
604 607
605Running @kbd{C-u M-x COMMAND @key{RET}} prompts again for an 608If @var{customizations} is non-@code{nil}, it should consist of
606alternative and overwrites the previous choice. 609alternating @code{defcustom} keywords (typically @code{:group} and
607 610@code{:version}) and values to add to the declaration of
608The 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
611this variable is set.
612
613If @var{customizations} is non-@var{nil}, it should be composed of
614alternating @code{defcustom} keywords and values to add to the
615declaration 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
3928This function returns the width of @var{window}'s vertical scrollbar, 3928This function returns the width in pixels of @var{window}'s vertical
3929in pixels. @var{window} must be a live window. If @var{window} is 3929scrollbar. @var{window} must be a live window, and defaults to the
3930@code{nil} or omitted, it will be the selected window. 3930selected window.
3931@end defun 3931@end defun
3932 3932
3933If you don't specify these values for a window with 3933If 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})},
4505where @var{props} is a property list of alternating keyword symbols 4505where @var{props} is a property list of alternating keyword symbols
4506and values, including at least the pair @code{:type @var{TYPE}} which 4506and values, including at least the pair @code{:type @var{type}} that
4507specifies the image type. 4507specifies 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}.
4995Each specification in @var{specs} is a property list with contents 4995Each specification in @var{specs} is a property list with contents
4996depending on image type. All specifications must at least contain the 4996depending on image type. All specifications must at least contain the
4997properties @code{:type @var{type}} and either @w{@code{:file @var{file}}} 4997properties @code{:type @var{type}} and either @w{@code{:file @var{file}}}
4998or @w{@code{:data @var{DATA}}}, where @var{type} is a symbol specifying 4998or @w{@code{:data @var{data}}}, where @var{type} is a symbol specifying
4999the image type, e.g., @code{xbm}, @var{file} is the file to load the 4999the image type, e.g., @code{xbm}, @var{file} is the file to load the
5000image from, and @var{data} is a string containing the actual image data. 5000image from, and @var{data} is a string containing the actual image data.
5001The first specification in the list whose @var{type} is supported, and 5001The 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
317than one physical monitor. @code{display-monitor-attributes-list} and 317than 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}
319about each physical monitor on multi-monitor setups. 319to obtain information about such setups.
320 320
321@defun display-monitor-attributes-list &optional display 321@defun display-monitor-attributes-list &optional display
322This function returns a list of physical monitor attributes on 322This 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.
324representing the attributes of each physical monitor. The first 324Each element of the list is an association list, representing the
325element corresponds to the primary monitor. 325attributes of a physical monitor. The first element corresponds to
326 326the primary monitor. The attribute keys and values are:
327Attributes for a physical monitor are:
328 327
329@table @samp 328@table @samp
330@item geometry 329@item geometry
331Position and size in pixels in the form of @samp{(X Y WIDTH HEIGHT)} 330Position and size in pixels as @samp{(@var{x} @var{y}
331@var{width} @var{height})}.
332 332
333@item workarea 333@item workarea
334Position and size of the workarea in pixels in the form of @samp{(X Y 334Position and size of the work area in pixels as
335WIDTH HEIGHT)} 335@samp{(@var{x} @var{y} @var{width} @var{height})}.
336 336
337@item mm-size 337@item mm-size
338Width and height in millimeters in the form of @samp{(WIDTH HEIGHT)} 338Width and height in millimeters as @samp{(@var{width} @var{height})}
339 339
340@item frames 340@item frames
341List of frames dominated by the physical monitor 341List of frames that this physical monitor dominates (see below).
342 342
343@item name 343@item name
344Name of the physical monitor as a string 344Name of the physical monitor as @var{string}.
345@end table 345@end table
346 346
347where 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.
349A frame is dominated by a physical monitor when either the
350largest area of the frame resides in the monitor, or the monitor
351is the closest to the frame if the frame does not intersect any
352physical monitors. Every non-tip frame (including invisible one)
353in a graphical display is dominated by exactly one physical
354monitor at a time, though it can span multiple (or no) physical
355monitors.
356 349
357@var{display} defaults to the selected frame's display. 350A frame is @dfn{dominated} by a physical monitor when either the
351largest area of the frame resides in that monitor, or (if the frame
352does not intersect any physical monitors) that monitor is the closest
353to the frame. Every (non-tooltip) frame (whether visible or not) in a
354graphical display is dominated by exactly one physical monitor at a
355time, 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
361This function returns the attributes of the physical monitor 359This function returns the attributes of the physical monitor
362dominating @var{frame}, which defaults to the selected frame. 360dominating (see above) @var{frame}, which defaults to the selected frame.
363
364A frame is dominated by a physical monitor when either the
365largest area of the frame resides in the monitor, or the monitor
366is the closest to the frame if the frame does not intersect any
367physical 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
1233the variable name, then @var{function} will only be added in the 1233the variable name, then @var{function} will only be added in the
1234current buffer. Finally, if you want to modify a lexical variable, you will 1234current buffer. Finally, if you want to modify a lexical variable, you will
1235have to use @code{(var @var{VARIABLE})}. 1235have to use @code{(var @var{variable})}.
1236 1236
1237Every function added with @code{add-function} can be accompanied by an 1237Every function added with @code{add-function} can be accompanied by an
1238association list of properties @var{props}. Currently only two of those 1238association 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}).
2221It is normally @code{nil}, so that ordinary buffers have no header line. 2221It is normally @code{nil}, so that ordinary buffers have no header line.
2222@end defvar 2222@end defvar
2223 2223
2224The function @code{window-header-line-height} returns the height of
2225the header line:
2226
2227@defun window-header-line-height &optional window 2224@defun window-header-line-height &optional window
2228Return the height of @var{window}'s header line, in pixels. 2225This 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 2226line. @var{window} must be a live window, and defaults to the
2230omitted, it will be the selected window. 2227selected 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
451the selected window. If @var{window} is an internal window, the return 451the selected window. If @var{window} is an internal window, the return
452value is the total height occupied by its descendant windows. 452value 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
455default character height, the number of lines occupied by the window is 455default character height, the number of lines occupied by the window is
456rounded internally. This is done in a way such that, if the window is a 456rounded internally. This is done in a way such that, if the window is a
457parent window, the sum of the total heights of all its child windows 457parent 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
462sibling can be calculated as the sum of this window's topmost row and 462sibling can be calculated as the sum of this window's topmost row and
463total height (@pxref{Coordinates and Windows}) 463total 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
466function returns the smallest integer larger than @var{window}'s pixel 466function returns the smallest integer larger than @var{window}'s pixel
467height divided by the character height of @var{window}'s frame; if it is 467height 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;
469pixel height divided by the character height of @var{window}'s frame. 469with any other @var{round} it returns the internal value of
470Any other value of @var{round} means to return the internal value of the 470@var{windows}'s total height.
471total 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
484the selected window. If @var{window} is internal, the return value is 483the selected window. If @var{window} is internal, the return value is
485the total width occupied by its descendant windows. 484the 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
488character width, the number of lines occupied by the window is rounded 487character width, the number of lines occupied by the window is rounded
489internally. This is done in a way such that, if the window is a parent 488internally. This is done in a way such that, if the window is a parent
490window, the sum of the total widths of all its children internally 489window, 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
493differ by one column. This means also, that if this window is 492differ by one column. This means also, that if this window is
494horizontally combined and has a right sibling, the leftmost column of 493horizontally combined and has a right sibling, the leftmost column of
495that sibling can be calculated as the sum of this window's leftmost 494that sibling can be calculated as the sum of this window's leftmost
496column and total width (@pxref{Coordinates and Windows}). 495column and total width (@pxref{Coordinates and Windows}). The
497 496optional argument @var{round} behaves as it does for
498If the optional argument @var{round} is @code{ceiling}, this function 497@code{window-total-height}.
499will return the smallest integer larger than @var{window}'s pixel width
500divided 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
502pixel width divided by the character width of @var{window}'s frame. Any
503other 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
510omitted or @code{nil}, this is equivalent to calling 503omitted 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
512to calling @code{window-total-width} for @var{window}. The optional 505to calling @code{window-total-width} for @var{window}. The optional
513argument @code{ROUND} is handled as for @code{window-total-height} and 506argument @var{round} behaves as it does for @code{window-total-height}.
514@code{window-total-width}.
515@end defun 507@end defun
516 508
517The following two functions can be used to return the total size of a 509The 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,
754a scroll bar and a right divider (if any), plus a text area two columns 746a scroll bar and a right divider (if any), plus a text area two columns
755wide. 747wide.
756 748
757If the optional argument @code{pixelwise} is non-@code{nil}, 749If 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
779combination limits of the involved windows; in some cases, it may alter 771combination limits of the involved windows; in some cases, it may alter
780both edges. @xref{Recombining Windows}. To resize by moving only the 772both edges. @xref{Recombining Windows}. To resize by moving only the
781bottom or right edge of a window, use the function 773bottom 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
792moves the right edge by @var{delta} columns. If @var{window} is 784moves 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
795If the optional argument @code{pixelwise} is non-@code{nil}, 787If 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
798A positive @var{delta} moves the edge downwards or to the right; a 790A positive @var{delta} moves the edge downwards or to the right; a
799negative @var{delta} moves it upwards or to the left. If the edge 791negative @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
810If the value of this option is non-@code{nil}, windows are resized in 802If the value of this option is non-@code{nil}, Emacs resizes windows in
811units of pixels. This currently affects functions like 803units 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
817Note that when a frame's pixel size is not a multiple of the frame's 809Note that when a frame's pixel size is not a multiple of its character
818character size, at least one window may get resized pixelwise even if 810size, at least one window may get resized pixelwise even if this
819this option is @code{nil}. The default value of this option is 811option 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 @@
12014-10-04 Glenn Morris <rgm@gnu.org>
2
3 * vip.texi (Other Vi Commands): Markup fix.
4
12014-10-03 Bastien Guerry <bzg@gnu.org> 52014-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
1563VIP uses a special local keymap to interpret key strokes you enter in vi 1563VIP uses a special local keymap to interpret key strokes you enter in vi
1564mode. The following keys are bound to @var{nil} in the keymap. Therefore, 1564mode. The following keys are bound to @code{nil} in the keymap. Therefore,
1565these keys are interpreted by the global keymap of Emacs. We give below a 1565these keys are interpreted by the global keymap of Emacs. We give below a
1566short description of the functions bound to these keys in the global 1566short description of the functions bound to these keys in the global
1567keymap. See GNU Emacs Manual for details. 1567keymap. 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 @@
12014-10-04 Glenn Morris <rgm@gnu.org>
2
3 * frame.el (frame-monitor-attributes)
4 (display-monitor-attributes-list): Doc fixes.
5
12014-10-04 Stefan Monnier <monnier@iro.umontreal.ca> 62014-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.
1279If FRAME is omitted, describe the currently selected frame. 1279If FRAME is omitted or nil, describe the currently selected frame.
1280 1280
1281A frame is dominated by a physical monitor when either the 1281A frame is dominated by a physical monitor when either the
1282largest area of the frame resides in the monitor, or the monitor 1282largest 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.
1557Each element of the list represents the attributes of each 1557If DISPLAY is omitted or nil, it defaults to the selected frame's display.
1558physical monitor. The first element corresponds to the primary 1558Each element of the list represents the attributes of a physical
1559monitor. 1559monitor. The first element corresponds to the primary monitor.
1560 1560
1561Attributes for a physical monitor is represented as an alist of 1561The attributes for a physical monitor are represented as an alist
1562attribute keys and values as follows: 1562of 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.
1576A frame is dominated by a physical monitor when either the 1575A frame is dominated by a physical monitor when either the
1577largest area of the frame resides in the monitor, or the monitor 1576largest area of the frame resides in the monitor, or the monitor
1578is the closest to the frame if the frame does not intersect any 1577is the closest to the frame if the frame does not intersect any
1579physical monitors. Every non-tip frame (including invisible one) 1578physical monitors. Every (non-tooltip) frame (including invisible ones)
1580in a graphical display is dominated by exactly one physical 1579in a graphical display is dominated by exactly one physical
1581monitor at a time, though it can span multiple (or no) physical 1580monitor at a time, though it can span multiple (or no) physical
1582monitors. 1581monitors."
1583If 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)