comparison lisp/frame.el @ 4586:732e3243f2e4

Correct a bug in #'display-graphic-p. 2009-01-31 Aidan Kehoe <kehoea@parhasard.net> * frame.el (display-graphic-p): Call #'display-device on the DISPLAY argument, ensuring that the argument to #'device-on-window-system-p is correct.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 31 Jan 2009 13:21:32 +0000
parents 44129f301385
children 0636c6ccb430
comparison
equal deleted inserted replaced
4582:00ed9903a988 4586:732e3243f2e4
1209 Graphical displays are those which are capable of displaying several 1209 Graphical displays are those which are capable of displaying several
1210 frames and several different fonts at once. This is true for displays 1210 frames and several different fonts at once. This is true for displays
1211 that use a window system such as X, and false for text-only terminals. 1211 that use a window system such as X, and false for text-only terminals.
1212 DISPLAY can be a frame, a device, a console, or nil (meaning the selected 1212 DISPLAY can be a frame, a device, a console, or nil (meaning the selected
1213 frame)." 1213 frame)."
1214 (device-on-window-system-p display)) 1214 (device-on-window-system-p (display-device display)))
1215 1215
1216 (defun display-images-p (&optional display) 1216 (defun display-images-p (&optional display)
1217 "Return non-nil if DISPLAY can display images. 1217 "Return non-nil if DISPLAY can display images.
1218 DISPLAY can be a frame, a device, a console, or nil (meaning the selected 1218 DISPLAY can be a frame, a device, a console, or nil (meaning the selected
1219 frame)." 1219 frame)."