aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2014-10-08 21:23:09 -0700
committerGlenn Morris2014-10-08 21:23:09 -0700
commit32ade3f01a0185f2a836c313d9d50564abe4e254 (patch)
tree195ed03adf2f7757d67caf79dd2baff44911748c /lisp
parentfdcb06012a36a8ec800e33554ae94c26e43a7c05 (diff)
parent942a57a2a5c56575a15dd22e1feebd1825f281b0 (diff)
downloademacs-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/ChangeLog22
-rw-r--r--lisp/faces.el4
-rw-r--r--lisp/frame.el26
-rw-r--r--lisp/term.el3
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 @@
12014-10-09 Glenn Morris <rgm@gnu.org>
2
3 * frame.el (display-monitor-attributes-list): Doc tweaks.
4
52014-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
182014-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
12014-10-09 Stefan Monnier <monnier@iro.umontreal.ca> 232014-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.
1829DISPLAY should be either a frame or a display name (a string).
1830If 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.
1376DISPLAY should be either a frame or a display name (a string).
1376If DISPLAY is omitted or nil, it defaults to the selected frame's display." 1377If 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.
1389DISPLAY can be a display name or a frame.
1388If DISPLAY is omitted or nil, it defaults to the selected frame's display. 1390If DISPLAY is omitted or nil, it defaults to the selected frame's display.
1389 1391
1390For character terminals, each character counts as a single pixel. 1392For 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.
1409DISPLAY can be a display name or a frame.
1407If DISPLAY is omitted or nil, it defaults to the selected frame's display. 1410If DISPLAY is omitted or nil, it defaults to the selected frame's display.
1408 1411
1409For character terminals, each character counts as a single pixel. 1412For 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.
1444If the information is unavailable, this function returns nil. 1447If the information is unavailable, this function returns nil.
1448DISPLAY can be a display name or a frame.
1445If DISPLAY is omitted or nil, it defaults to the selected frame's display. 1449If DISPLAY is omitted or nil, it defaults to the selected frame's display.
1446 1450
1447You can override what the system thinks the result should be by 1451You 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.
1464If the information is unavailable, this function returns nil. 1468If the information is unavailable, this function returns nil.
1469DISPLAY can be a display name or a frame.
1465If DISPLAY is omitted or nil, it defaults to the selected frame's display. 1470If DISPLAY is omitted or nil, it defaults to the selected frame's display.
1466 1471
1467You can override what the system thinks the result should be by 1472You 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.
1486The value may be `always', `when-mapped', `not-useful', or nil if 1491The value may be `always', `when-mapped', `not-useful', or nil if
1487the question is inapplicable to a certain kind of display. 1492the question is inapplicable to a certain kind of display.
1493DISPLAY can be a display name or a frame.
1488If DISPLAY is omitted or nil, it defaults to the selected frame's display." 1494If 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.
1506DISPLAY can be a display name or a frame.
1500If DISPLAY is omitted or nil, it defaults to the selected frame's display." 1507If 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.
1519DISPLAY can be a display name or a frame.
1512If DISPLAY is omitted or nil, it defaults to the selected frame's display." 1520If 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.
1534DISPLAY can be a display name or a frame.
1526If DISPLAY is omitted or nil, it defaults to the selected frame's display." 1535If 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.
1540The value is one of the symbols `static-gray', `gray-scale', 1549The 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'.
1551DISPLAY can be a display name or a frame.
1542If DISPLAY is omitted or nil, it defaults to the selected frame's display." 1552If 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.
1572DISPLAY can be a display name, a terminal name, or a frame.
1562If DISPLAY is omitted or nil, it defaults to the selected frame's display. 1573If DISPLAY is omitted or nil, it defaults to the selected frame's display.
1563Each element of the list represents the attributes of a physical 1574Each element of the list represents the attributes of a physical
1564monitor. The first element corresponds to the primary monitor. 1575monitor. 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
1577where X, Y, WIDTH, and HEIGHT are integers. Keys labeled 1589where X, Y, WIDTH, and HEIGHT are integers. X and Y are coordinates
1578with (*) are optional. 1590of the top-left corner, and might be negative for monitors other than
1591the primary one. Keys labeled with (*) are optional.
1592
1593The \"work area\" is a measure of the \"usable\" display space.
1594It may be less than the total screen size, owing to space taken up
1595by window manager features (docks, taskbars, etc.). The precise
1596details depend on the platform and environment.
1597
1598The `source' attribute describes the source from which the information
1599was obtained. On X, this may be one of: \"Gdk\", \"XRandr\", \"Xinerama\",
1600or \"fallback\".
1579 1601
1580A frame is dominated by a physical monitor when either the 1602A frame is dominated by a physical monitor when either the
1581largest area of the frame resides in the monitor, or the monitor 1603largest 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))))