summaryrefslogtreecommitdiff
path: root/lisp/ps-print.el
diff options
context:
space:
mode:
authorVinicius Jose Latorre <viniciusjl@ig.com.br>2007-11-11 14:14:30 +0000
committerVinicius Jose Latorre <viniciusjl@ig.com.br>2007-11-11 14:14:30 +0000
commit805c9704702518c40295a5b5fc5f4ef874a0da3d (patch)
tree33174c1ad1484af7c3a31a12383a56484e644bc8 /lisp/ps-print.el
parent8b390b6123db2683e38f17d77208fbe0a858cbe1 (diff)
downloademacs-805c9704702518c40295a5b5fc5f4ef874a0da3d.tar.gz
Error if ps-lpr-switches is not a list.
Diffstat (limited to 'lisp/ps-print.el')
-rw-r--r--lisp/ps-print.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index f66416de667..c327c25bf6c 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -1480,10 +1480,6 @@ Please send all bug fixes and enhancements to
;; Load XEmacs/Emacs definitions
(eval-and-compile (require 'ps-def))
-(defun ps-face-background-name (face)
- (if (featurep 'xemacs)
- (ps-xemacs-color-name (face-background face))
- (face-background face nil t)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; User Variables:
@@ -5831,6 +5827,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
;; initialize page dimensions
(ps-get-page-dimensions)
;; final check
+ (unless (listp ps-lpr-switches)
+ (error "`ps-lpr-switches' value should be a list."))
(and ps-color-p
(equal ps-default-background ps-default-foreground)
(error
@@ -6514,9 +6512,7 @@ If FACE is not a valid face name, use default face."
(and (boundp 'printer-name)
(symbol-value 'printer-name))))
(ps-lpr-switches
- (append (if (listp ps-lpr-switches)
- ps-lpr-switches
- (list ps-lpr-switches))
+ (append ps-lpr-switches
(and (stringp ps-printer-name)
(string< "" ps-printer-name)
(list (concat