diff options
| author | Glenn Morris | 2014-10-08 21:23:09 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-10-08 21:23:09 -0700 |
| commit | 32ade3f01a0185f2a836c313d9d50564abe4e254 (patch) | |
| tree | 195ed03adf2f7757d67caf79dd2baff44911748c /lisp | |
| parent | fdcb06012a36a8ec800e33554ae94c26e43a7c05 (diff) | |
| parent | 942a57a2a5c56575a15dd22e1feebd1825f281b0 (diff) | |
| download | emacs-32ade3f01a0185f2a836c313d9d50564abe4e254.tar.gz emacs-32ade3f01a0185f2a836c313d9d50564abe4e254.zip | |
Merge from emacs-24; up to 2014-07-22T06:37:31Z!yamaoka@jpl.org
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/faces.el | 4 | ||||
| -rw-r--r-- | lisp/frame.el | 26 | ||||
| -rw-r--r-- | lisp/term.el | 3 |
4 files changed, 52 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c8c6f61cdcf..ef31fc2ead0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2014-10-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * frame.el (display-monitor-attributes-list): Doc tweaks. | ||
| 4 | |||
| 5 | 2014-10-09 Eli Zaretskii <eliz@gnu.org> | ||
| 6 | |||
| 7 | * faces.el (display-grayscale-p): Mention in the doc string that | ||
| 8 | the argument can be either a display name or a frame. | ||
| 9 | |||
| 10 | * frame.el (display-pixel-height, display-pixel-width) | ||
| 11 | (display-mm-height, display-mm-width, display-backing-store) | ||
| 12 | (display-save-under, display-planes, display-color-cells) | ||
| 13 | (display-visual-class, display-monitor-attributes-list) | ||
| 14 | (display-screens): Mention in the doc string that the argument can | ||
| 15 | be either a display name or a frame. Improve the docs of the | ||
| 16 | monitor attributes. (Bug#18636) | ||
| 17 | |||
| 18 | 2014-10-09 Martin Rudalics <rudalics@gmx.at> | ||
| 19 | |||
| 20 | * term.el (term-window-width): Subtract 1 from the width when | ||
| 21 | any fringe has zero width, not just the right fringe. (Bug#18601) | ||
| 22 | |||
| 1 | 2014-10-09 Stefan Monnier <monnier@iro.umontreal.ca> | 23 | 2014-10-09 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 24 | ||
| 3 | * frame.el (make-frame): Use t rather than nil for `w' (bug#18653). | 25 | * frame.el (make-frame): Use t rather than nil for `w' (bug#18653). |
diff --git a/lisp/faces.el b/lisp/faces.el index aedd5db72f1..d7b330ee64c 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1825,7 +1825,9 @@ If omitted or nil, that stands for the selected frame's display." | |||
| 1825 | (declare-function x-display-grayscale-p "xfns.c" (&optional terminal)) | 1825 | (declare-function x-display-grayscale-p "xfns.c" (&optional terminal)) |
| 1826 | 1826 | ||
| 1827 | (defun display-grayscale-p (&optional display) | 1827 | (defun display-grayscale-p (&optional display) |
| 1828 | "Return non-nil if frames on DISPLAY can display shades of gray." | 1828 | "Return non-nil if frames on DISPLAY can display shades of gray. |
| 1829 | DISPLAY should be either a frame or a display name (a string). | ||
| 1830 | If omitted or nil, that stands for the selected frame's display." | ||
| 1829 | (let ((frame-type (framep-on-display display))) | 1831 | (let ((frame-type (framep-on-display display))) |
| 1830 | (cond | 1832 | (cond |
| 1831 | ((memq frame-type '(x w32 ns)) | 1833 | ((memq frame-type '(x w32 ns)) |
diff --git a/lisp/frame.el b/lisp/frame.el index 34f35db34b7..952a3568156 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -1373,6 +1373,7 @@ frame's display)." | |||
| 1373 | 1373 | ||
| 1374 | (defun display-screens (&optional display) | 1374 | (defun display-screens (&optional display) |
| 1375 | "Return the number of screens associated with DISPLAY. | 1375 | "Return the number of screens associated with DISPLAY. |
| 1376 | DISPLAY should be either a frame or a display name (a string). | ||
| 1376 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." | 1377 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." |
| 1377 | (let ((frame-type (framep-on-display display))) | 1378 | (let ((frame-type (framep-on-display display))) |
| 1378 | (cond | 1379 | (cond |
| @@ -1385,6 +1386,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display." | |||
| 1385 | 1386 | ||
| 1386 | (defun display-pixel-height (&optional display) | 1387 | (defun display-pixel-height (&optional display) |
| 1387 | "Return the height of DISPLAY's screen in pixels. | 1388 | "Return the height of DISPLAY's screen in pixels. |
| 1389 | DISPLAY can be a display name or a frame. | ||
| 1388 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. | 1390 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. |
| 1389 | 1391 | ||
| 1390 | For character terminals, each character counts as a single pixel. | 1392 | For character terminals, each character counts as a single pixel. |
| @@ -1404,6 +1406,7 @@ with DISPLAY. To get information for each physical monitor, use | |||
| 1404 | 1406 | ||
| 1405 | (defun display-pixel-width (&optional display) | 1407 | (defun display-pixel-width (&optional display) |
| 1406 | "Return the width of DISPLAY's screen in pixels. | 1408 | "Return the width of DISPLAY's screen in pixels. |
| 1409 | DISPLAY can be a display name or a frame. | ||
| 1407 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. | 1410 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. |
| 1408 | 1411 | ||
| 1409 | For character terminals, each character counts as a single pixel. | 1412 | For character terminals, each character counts as a single pixel. |
| @@ -1442,6 +1445,7 @@ not explicitly specified." | |||
| 1442 | (defun display-mm-height (&optional display) | 1445 | (defun display-mm-height (&optional display) |
| 1443 | "Return the height of DISPLAY's screen in millimeters. | 1446 | "Return the height of DISPLAY's screen in millimeters. |
| 1444 | If the information is unavailable, this function returns nil. | 1447 | If the information is unavailable, this function returns nil. |
| 1448 | DISPLAY can be a display name or a frame. | ||
| 1445 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. | 1449 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. |
| 1446 | 1450 | ||
| 1447 | You can override what the system thinks the result should be by | 1451 | You can override what the system thinks the result should be by |
| @@ -1462,6 +1466,7 @@ monitor, use `display-monitor-attributes-list'." | |||
| 1462 | (defun display-mm-width (&optional display) | 1466 | (defun display-mm-width (&optional display) |
| 1463 | "Return the width of DISPLAY's screen in millimeters. | 1467 | "Return the width of DISPLAY's screen in millimeters. |
| 1464 | If the information is unavailable, this function returns nil. | 1468 | If the information is unavailable, this function returns nil. |
| 1469 | DISPLAY can be a display name or a frame. | ||
| 1465 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. | 1470 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. |
| 1466 | 1471 | ||
| 1467 | You can override what the system thinks the result should be by | 1472 | You can override what the system thinks the result should be by |
| @@ -1485,6 +1490,7 @@ monitor, use `display-monitor-attributes-list'." | |||
| 1485 | "Return the backing store capability of DISPLAY's screen. | 1490 | "Return the backing store capability of DISPLAY's screen. |
| 1486 | The value may be `always', `when-mapped', `not-useful', or nil if | 1491 | The value may be `always', `when-mapped', `not-useful', or nil if |
| 1487 | the question is inapplicable to a certain kind of display. | 1492 | the question is inapplicable to a certain kind of display. |
| 1493 | DISPLAY can be a display name or a frame. | ||
| 1488 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." | 1494 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." |
| 1489 | (let ((frame-type (framep-on-display display))) | 1495 | (let ((frame-type (framep-on-display display))) |
| 1490 | (cond | 1496 | (cond |
| @@ -1497,6 +1503,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display." | |||
| 1497 | 1503 | ||
| 1498 | (defun display-save-under (&optional display) | 1504 | (defun display-save-under (&optional display) |
| 1499 | "Return non-nil if DISPLAY's screen supports the SaveUnder feature. | 1505 | "Return non-nil if DISPLAY's screen supports the SaveUnder feature. |
| 1506 | DISPLAY can be a display name or a frame. | ||
| 1500 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." | 1507 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." |
| 1501 | (let ((frame-type (framep-on-display display))) | 1508 | (let ((frame-type (framep-on-display display))) |
| 1502 | (cond | 1509 | (cond |
| @@ -1509,6 +1516,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display." | |||
| 1509 | 1516 | ||
| 1510 | (defun display-planes (&optional display) | 1517 | (defun display-planes (&optional display) |
| 1511 | "Return the number of planes supported by DISPLAY. | 1518 | "Return the number of planes supported by DISPLAY. |
| 1519 | DISPLAY can be a display name or a frame. | ||
| 1512 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." | 1520 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." |
| 1513 | (let ((frame-type (framep-on-display display))) | 1521 | (let ((frame-type (framep-on-display display))) |
| 1514 | (cond | 1522 | (cond |
| @@ -1523,6 +1531,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display." | |||
| 1523 | 1531 | ||
| 1524 | (defun display-color-cells (&optional display) | 1532 | (defun display-color-cells (&optional display) |
| 1525 | "Return the number of color cells supported by DISPLAY. | 1533 | "Return the number of color cells supported by DISPLAY. |
| 1534 | DISPLAY can be a display name or a frame. | ||
| 1526 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." | 1535 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." |
| 1527 | (let ((frame-type (framep-on-display display))) | 1536 | (let ((frame-type (framep-on-display display))) |
| 1528 | (cond | 1537 | (cond |
| @@ -1539,6 +1548,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display." | |||
| 1539 | "Return the visual class of DISPLAY. | 1548 | "Return the visual class of DISPLAY. |
| 1540 | The value is one of the symbols `static-gray', `gray-scale', | 1549 | The value is one of the symbols `static-gray', `gray-scale', |
| 1541 | `static-color', `pseudo-color', `true-color', or `direct-color'. | 1550 | `static-color', `pseudo-color', `true-color', or `direct-color'. |
| 1551 | DISPLAY can be a display name or a frame. | ||
| 1542 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." | 1552 | If DISPLAY is omitted or nil, it defaults to the selected frame's display." |
| 1543 | (let ((frame-type (framep-on-display display))) | 1553 | (let ((frame-type (framep-on-display display))) |
| 1544 | (cond | 1554 | (cond |
| @@ -1559,6 +1569,7 @@ If DISPLAY is omitted or nil, it defaults to the selected frame's display." | |||
| 1559 | 1569 | ||
| 1560 | (defun display-monitor-attributes-list (&optional display) | 1570 | (defun display-monitor-attributes-list (&optional display) |
| 1561 | "Return a list of physical monitor attributes on DISPLAY. | 1571 | "Return a list of physical monitor attributes on DISPLAY. |
| 1572 | DISPLAY can be a display name, a terminal name, or a frame. | ||
| 1562 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. | 1573 | If DISPLAY is omitted or nil, it defaults to the selected frame's display. |
| 1563 | Each element of the list represents the attributes of a physical | 1574 | Each element of the list represents the attributes of a physical |
| 1564 | monitor. The first element corresponds to the primary monitor. | 1575 | monitor. The first element corresponds to the primary monitor. |
| @@ -1573,9 +1584,20 @@ of attribute keys and values as follows: | |||
| 1573 | (WIDTH HEIGHT) | 1584 | (WIDTH HEIGHT) |
| 1574 | frames -- List of frames dominated by the physical monitor | 1585 | frames -- List of frames dominated by the physical monitor |
| 1575 | name (*) -- Name of the physical monitor as a string | 1586 | name (*) -- Name of the physical monitor as a string |
| 1587 | source (*) -- Source of multi-monitor information as a string | ||
| 1576 | 1588 | ||
| 1577 | where X, Y, WIDTH, and HEIGHT are integers. Keys labeled | 1589 | where X, Y, WIDTH, and HEIGHT are integers. X and Y are coordinates |
| 1578 | with (*) are optional. | 1590 | of the top-left corner, and might be negative for monitors other than |
| 1591 | the primary one. Keys labeled with (*) are optional. | ||
| 1592 | |||
| 1593 | The \"work area\" is a measure of the \"usable\" display space. | ||
| 1594 | It may be less than the total screen size, owing to space taken up | ||
| 1595 | by window manager features (docks, taskbars, etc.). The precise | ||
| 1596 | details depend on the platform and environment. | ||
| 1597 | |||
| 1598 | The `source' attribute describes the source from which the information | ||
| 1599 | was obtained. On X, this may be one of: \"Gdk\", \"XRandr\", \"Xinerama\", | ||
| 1600 | or \"fallback\". | ||
| 1579 | 1601 | ||
| 1580 | A frame is dominated by a physical monitor when either the | 1602 | A frame is dominated by a physical monitor when either the |
| 1581 | largest area of the frame resides in the monitor, or the monitor | 1603 | largest area of the frame resides in the monitor, or the monitor |
diff --git a/lisp/term.el b/lisp/term.el index 611a0c660e1..282dfe2ea80 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -972,6 +972,9 @@ is buffer-local." | |||
| 972 | (if (and (not (featurep 'xemacs)) | 972 | (if (and (not (featurep 'xemacs)) |
| 973 | (display-graphic-p) | 973 | (display-graphic-p) |
| 974 | overflow-newline-into-fringe | 974 | overflow-newline-into-fringe |
| 975 | ;; Subtract 1 from the width when any fringe has zero width, | ||
| 976 | ;; not just the right fringe. Bug#18601. | ||
| 977 | (/= (frame-parameter nil 'left-fringe) 0) | ||
| 975 | (/= (frame-parameter nil 'right-fringe) 0)) | 978 | (/= (frame-parameter nil 'right-fringe) 0)) |
| 976 | (window-body-width) | 979 | (window-body-width) |
| 977 | (1- (window-body-width)))) | 980 | (1- (window-body-width)))) |