X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fdevice.el;h=8468f335407247603113b2b8090fe69afabb9fcd;hb=6abf61674bea356678ec8727a0e7f14e97c822de;hp=06bac1c81b2dd37ff0fd9383042584f714ec8b5d;hpb=976b002b16336930724ae22476014583ad022e7d;p=chise%2Fxemacs-chise.git- diff --git a/lisp/device.el b/lisp/device.el index 06bac1c..8468f33 100644 --- a/lisp/device.el +++ b/lisp/device.el @@ -31,6 +31,18 @@ ;;; Code: +;;; Initialization + +; Specifier tag 'printer which matches printers +(define-specifier-tag 'printer (function device-printer-p)) + +; Specifier tag 'display which matches displays +(define-specifier-tag 'display (function + (lambda (device) + (not (device-printer-p device))))) + +;;; Functions + (defun device-list () "Return a list of all devices." (apply 'nconc (mapcar 'console-device-list (console-list)))) @@ -41,8 +53,8 @@ This is equivalent to the type of the device's console. Value is `tty' for a tty device (a character-only terminal), `x' for a device that is a screen on an X display, `ns' for a device that is a NeXTstep connection (not yet implemented), -`mswindows' for a device that is a Windows or Windows NT connection, -`pc' for a device that is a direct-write MS-DOS screen (not yet implemented), +`mswindows' for a device that is a MS Windows workstation, +`msprinter' for a device that is a MS Windows printer connection, `stream' for a stream device (which acts like a stdio stream), and `dead' for a deleted device." (or device (setq device (selected-device))) @@ -108,7 +120,7 @@ the toolbar, glyphs, etc." (defun call-device-method (name device &rest args) "Call a DEVICE-specific function with the generic name NAME. -If DEVICE is not provide the selected device is used." +If DEVICE is not provided then the selected device is used." (or device (setq device (selected-device))) (or (symbolp name) (error "function name must be a symbol")) (let ((devmeth (intern (concat (symbol-name