diff options
| author | Glenn Morris | 2014-10-08 20:47:30 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-10-08 20:47:30 -0400 |
| commit | 01058f734a96e6da949c200fb908f06ab8a74909 (patch) | |
| tree | 86754bde01390f2e4078714e23eee32be7faec64 | |
| parent | 285dc437722044fe106f48d202607e4373d795ee (diff) | |
| download | emacs-01058f734a96e6da949c200fb908f06ab8a74909.tar.gz emacs-01058f734a96e6da949c200fb908f06ab8a74909.zip | |
Doc tweaks
* doc/lispref/frames.texi (Multiple Terminals): Copyedits.
* lisp/frame.el (display-monitor-attributes-list): Doc tweaks.
* nt/README.W32, src/ChangeLog.10, src/w32term.c:
Standardize on "taskbar" rather than "task bar", since that is what
most references seem to use; e.g.
http://en.wikipedia.org/wiki/Taskbar
http://windows.microsoft.com/en-us/windows7/products/features/windows-taskbar
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 28 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/frame.el | 19 | ||||
| -rw-r--r-- | nt/README.W32 | 2 | ||||
| -rw-r--r-- | src/ChangeLog.10 | 2 | ||||
| -rw-r--r-- | src/w32term.c | 2 |
7 files changed, 42 insertions, 19 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 36497470705..2ebd1bc9e52 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-10-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * frames.texi (Multiple Terminals): Copyedits. | ||
| 4 | |||
| 1 | 2014-10-08 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-10-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * frames.texi (Multiple Terminals): Improve the description of X | 7 | * frames.texi (Multiple Terminals): Improve the description of X |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 97c7b4b0505..78679b877e4 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -356,12 +356,14 @@ that, if the monitor is not the primary monitor, some of the | |||
| 356 | coordinates might be negative. | 356 | coordinates might be negative. |
| 357 | 357 | ||
| 358 | @item workarea | 358 | @item workarea |
| 359 | Position of the top-left corner and size of the work area in pixels as | 359 | Position of the top-left corner and size of the work area (``usable'' |
| 360 | @samp{(@var{x} @var{y} @var{width} @var{height})}. This is different | 360 | space) in pixels as @samp{(@var{x} @var{y} @var{width} @var{height})}. |
| 361 | from @samp{geometry} in that the various system windows, such as the | 361 | This may be different from @samp{geometry} in that space occupied by |
| 362 | task bar and side bar, are excluded from the work area. Note that, if | 362 | various window manager features (docks, taskbars, etc.) may be |
| 363 | the monitor is not the primary monitor, some of the coordinates might | 363 | excluded from the work area. Whether or not such features actually |
| 364 | be negative. | 364 | subtract from the work area depends on the platform and environment. |
| 365 | Again, if the monitor is not the primary monitor, some of the | ||
| 366 | coordinates might be negative. | ||
| 365 | 367 | ||
| 366 | @item mm-size | 368 | @item mm-size |
| 367 | Width and height in millimeters as @samp{(@var{width} @var{height})} | 369 | Width and height in millimeters as @samp{(@var{width} @var{height})} |
| @@ -371,10 +373,14 @@ List of frames that this physical monitor dominates (see below). | |||
| 371 | 373 | ||
| 372 | @item name | 374 | @item name |
| 373 | Name of the physical monitor as @var{string}. | 375 | Name of the physical monitor as @var{string}. |
| 376 | |||
| 377 | @item source | ||
| 378 | Source of the multi-monitor information as @var{string}; | ||
| 379 | e.g., @samp{XRandr} or @samp{Xinerama}. | ||
| 374 | @end table | 380 | @end table |
| 375 | 381 | ||
| 376 | @var{x}, @var{y}, @var{width}, and @var{height} are integers. | 382 | @var{x}, @var{y}, @var{width}, and @var{height} are integers. |
| 377 | @samp{name} may not be present. | 383 | @samp{name} and @samp{source} may be absent. |
| 378 | 384 | ||
| 379 | A frame is @dfn{dominated} by a physical monitor when either the | 385 | A frame is @dfn{dominated} by a physical monitor when either the |
| 380 | largest area of the frame resides in that monitor, or (if the frame | 386 | largest area of the frame resides in that monitor, or (if the frame |
| @@ -389,14 +395,14 @@ display: | |||
| 389 | @smalllisp | 395 | @smalllisp |
| 390 | (display-monitor-attributes-list) | 396 | (display-monitor-attributes-list) |
| 391 | @result{} | 397 | @result{} |
| 392 | (((geometry 0 0 1920 1080) ;; Left hand monitor | 398 | (((geometry 0 0 1920 1080) ;; @r{Left-hand, primary monitor} |
| 393 | (workarea 0 0 1920 1050) ;; Bottom of screen used for task bar | 399 | (workarea 0 0 1920 1050) ;; @r{A taskbar occupies some of the height} |
| 394 | (mm-size 677 381) | 400 | (mm-size 677 381) |
| 395 | (name . "\\\\.\\DISPLAY1") | 401 | (name . "\\\\.\\DISPLAY1") |
| 396 | (frames #<frame emacs@@host *foo* 0000000005BBDC48> | 402 | (frames #<frame emacs@@host *foo* 0000000005BBDC48> |
| 397 | #<frame emacs@@host *scratch* 000000008179D370>)) | 403 | #<frame emacs@@host *scratch* 000000008179D370>)) |
| 398 | ((geometry 1920 0 1680 1050) ;; Right hand monitor | 404 | ((geometry 1920 0 1680 1050) ;; @r{Right-hand monitor} |
| 399 | (workarea 1920 0 1680 1050) ;; Whole screen can be used | 405 | (workarea 1920 0 1680 1050) ;; @r{Whole screen can be used} |
| 400 | (mm-size 593 370) | 406 | (mm-size 593 370) |
| 401 | (name . "\\\\.\\DISPLAY2") | 407 | (name . "\\\\.\\DISPLAY2") |
| 402 | (frames))) | 408 | (frames))) |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e8fd37925fa..6831c0efb42 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-10-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * frame.el (display-monitor-attributes-list): Doc tweaks. | ||
| 4 | |||
| 1 | 2014-10-08 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-10-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * faces.el (display-grayscale-p): Mention in the doc string that | 7 | * faces.el (display-grayscale-p): Mention in the doc string that |
diff --git a/lisp/frame.el b/lisp/frame.el index 55e5899ca4c..08d4a136e1c 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1587,16 +1587,25 @@ of attribute keys and values as follows: | |||
| 1587 | 1587 | ||
| 1588 | geometry -- Position and size in pixels in the form of (X Y WIDTH HEIGHT) | 1588 | geometry -- Position and size in pixels in the form of (X Y WIDTH HEIGHT) |
| 1589 | workarea -- Position and size of the work area in pixels in the | 1589 | workarea -- Position and size of the work area in pixels in the |
| 1590 | form of (X Y WIDTH HEIGHT); this excludes task bar etc. | 1590 | form of (X Y WIDTH HEIGHT) |
| 1591 | mm-size -- Width and height in millimeters in the form of | 1591 | mm-size -- Width and height in millimeters in the form of |
| 1592 | (WIDTH HEIGHT) | 1592 | (WIDTH HEIGHT) |
| 1593 | frames -- List of frames dominated by the physical monitor | 1593 | frames -- List of frames dominated by the physical monitor |
| 1594 | name (*) -- Name of the physical monitor as a string | 1594 | name (*) -- Name of the physical monitor as a string |
| 1595 | source (*) -- Source of multi-monitor information as a string | ||
| 1595 | 1596 | ||
| 1596 | where X, Y, WIDTH, and HEIGHT are integers, which might be negative | 1597 | where X, Y, WIDTH, and HEIGHT are integers. X and Y are coordinates |
| 1597 | for monitors other than the primary one. X and Y are coordinates | 1598 | of the top-left corner, and might be negative for monitors other than |
| 1598 | of the top-left corner of the rectangle. Keys labeled with (*) are | 1599 | the primary one. Keys labeled with (*) are optional. |
| 1599 | optional. | 1600 | |
| 1601 | The \"work area\" is a measure of the \"usable\" display space. | ||
| 1602 | It may be less than the total screen size, owing to space taken up | ||
| 1603 | by window manager features (docks, taskbars, etc.). The precise | ||
| 1604 | details depend on the platform and environment. | ||
| 1605 | |||
| 1606 | The `source' attribute describes the source from which the information | ||
| 1607 | was obtained. On X, this may be one of: \"Gdk\", \"XRandr\", \"Xinerama\", | ||
| 1608 | or \"fallback\". | ||
| 1600 | 1609 | ||
| 1601 | A frame is dominated by a physical monitor when either the | 1610 | A frame is dominated by a physical monitor when either the |
| 1602 | largest area of the frame resides in the monitor, or the monitor | 1611 | largest area of the frame resides in the monitor, or the monitor |
diff --git a/nt/README.W32 b/nt/README.W32 index c4e4cf351d4..c73b3b3ad09 100644 --- a/nt/README.W32 +++ b/nt/README.W32 | |||
| @@ -220,7 +220,7 @@ See the end of the file for license conditions. | |||
| 220 | key in HKEY_CURRENT_USER. Just delete the whole Software\GNU\Emacs | 220 | key in HKEY_CURRENT_USER. Just delete the whole Software\GNU\Emacs |
| 221 | key. | 221 | key. |
| 222 | 222 | ||
| 223 | The Start menu entry can be removed by right-clicking on the Task bar | 223 | The Start menu entry can be removed by right-clicking on the Taskbar |
| 224 | and selecting Properties, then using the Remove option on the Start | 224 | and selecting Properties, then using the Remove option on the Start |
| 225 | Menu Programs page. (If you installed under an account with | 225 | Menu Programs page. (If you installed under an account with |
| 226 | administrator privileges, then you need to click the Advanced button | 226 | administrator privileges, then you need to click the Advanced button |
diff --git a/src/ChangeLog.10 b/src/ChangeLog.10 index 19adb22b869..1b77eaf5803 100644 --- a/src/ChangeLog.10 +++ b/src/ChangeLog.10 | |||
| @@ -3264,7 +3264,7 @@ | |||
| 3264 | * w32term.c (x_make_frame_visible): Use SystemParametersInfo with | 3264 | * w32term.c (x_make_frame_visible): Use SystemParametersInfo with |
| 3265 | SPI_GETWORKAREA to find the dimensions of the screen work area, | 3265 | SPI_GETWORKAREA to find the dimensions of the screen work area, |
| 3266 | and adjust vertical position of the frame in order to avoid being | 3266 | and adjust vertical position of the frame in order to avoid being |
| 3267 | covered by the task bar. | 3267 | covered by the taskbar. |
| 3268 | 3268 | ||
| 3269 | * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of | 3269 | * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of |
| 3270 | f->left_pos and SH_SHOW instead of f->top_pos in the call to | 3270 | f->left_pos and SH_SHOW instead of f->top_pos in the call to |
diff --git a/src/w32term.c b/src/w32term.c index 5a053b4fc0d..66cdbfaecb0 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -5959,7 +5959,7 @@ x_make_frame_visible (struct frame *f) | |||
| 5959 | RECT window_rect; | 5959 | RECT window_rect; |
| 5960 | 5960 | ||
| 5961 | /* Adjust vertical window position in order to avoid being | 5961 | /* Adjust vertical window position in order to avoid being |
| 5962 | covered by a task bar placed at the bottom of the desktop. */ | 5962 | covered by a taskbar placed at the bottom of the desktop. */ |
| 5963 | SystemParametersInfo (SPI_GETWORKAREA, 0, &workarea_rect, 0); | 5963 | SystemParametersInfo (SPI_GETWORKAREA, 0, &workarea_rect, 0); |
| 5964 | GetWindowRect (FRAME_W32_WINDOW (f), &window_rect); | 5964 | GetWindowRect (FRAME_W32_WINDOW (f), &window_rect); |
| 5965 | if (window_rect.bottom > workarea_rect.bottom | 5965 | if (window_rect.bottom > workarea_rect.bottom |