diff options
| author | Vinicius Jose Latorre | 2007-11-11 14:14:30 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2007-11-11 14:14:30 +0000 |
| commit | da13a4be890638aa05bde5dae9f956206af2af5a (patch) | |
| tree | 0e0fe7faaf1e3dad09b16bb33e1c281fbdec1d62 | |
| parent | f23d76bdefbd4c06e14d69e99e50d35ce91c8226 (diff) | |
| download | emacs-da13a4be890638aa05bde5dae9f956206af2af5a.tar.gz emacs-da13a4be890638aa05bde5dae9f956206af2af5a.zip | |
Error if ps-lpr-switches is not a list.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/ChangeLog.unicode | 8 | ||||
| -rw-r--r-- | lisp/ps-print.el | 10 |
3 files changed, 16 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e77106f06da..1f9ee4b748e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | 2007-11-10 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * w32-fns.el: Sync charset names with setup-default-fontset. | ||
| 4 | Append "-1" where second part missing. | ||
| 5 | |||
| 6 | 2007-11-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 1 | 2007-11-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 7 | 2 | ||
| 8 | * faces.el (face-normalize-spec): Remove function. | 3 | * faces.el (face-normalize-spec): Remove function. |
| 9 | (frame-set-background-mode): Undo last change. | 4 | (frame-set-background-mode): Undo last change. |
| 10 | 5 | ||
| 6 | 2007-11-10 Jason Rumney <jasonr@gnu.org> | ||
| 7 | |||
| 8 | * w32-fns.el: Sync charset names with setup-default-fontset. | ||
| 9 | Append "-1" where second part missing. | ||
| 10 | |||
| 11 | 2007-11-10 Juri Linkov <juri@jurta.org> | 11 | 2007-11-10 Juri Linkov <juri@jurta.org> |
| 12 | 12 | ||
| 13 | * isearch.el (isearch-mode-end-hook, isearch-mode-end-hook-quit): | 13 | * isearch.el (isearch-mode-end-hook, isearch-mode-end-hook-quit): |
diff --git a/lisp/ChangeLog.unicode b/lisp/ChangeLog.unicode index 6cc1677634b..aff9dd57c8f 100644 --- a/lisp/ChangeLog.unicode +++ b/lisp/ChangeLog.unicode | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-11-11 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * ps-print.el (ps-do-despool): Do not force ps-lpr-switches to be a | ||
| 4 | list. | ||
| 5 | (ps-begin-job): Error if ps-lpr-switches is not a list. | ||
| 6 | (ps-face-background-name): Remove this function. It's already defined | ||
| 7 | in ps-def.el file. | ||
| 8 | |||
| 1 | 2007-11-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 9 | 2007-11-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 10 | ||
| 3 | * ps-print.el (ps-do-despool): If ps-lpr-switches is not a list, force | 11 | * ps-print.el (ps-do-despool): If ps-lpr-switches is not a list, force |
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 | |||
| 1480 | ;; Load XEmacs/Emacs definitions | 1480 | ;; Load XEmacs/Emacs definitions |
| 1481 | (eval-and-compile (require 'ps-def)) | 1481 | (eval-and-compile (require 'ps-def)) |
| 1482 | 1482 | ||
| 1483 | (defun ps-face-background-name (face) | ||
| 1484 | (if (featurep 'xemacs) | ||
| 1485 | (ps-xemacs-color-name (face-background face)) | ||
| 1486 | (face-background face nil t))) | ||
| 1487 | 1483 | ||
| 1488 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1484 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1489 | ;; User Variables: | 1485 | ;; User Variables: |
| @@ -5831,6 +5827,8 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 5831 | ;; initialize page dimensions | 5827 | ;; initialize page dimensions |
| 5832 | (ps-get-page-dimensions) | 5828 | (ps-get-page-dimensions) |
| 5833 | ;; final check | 5829 | ;; final check |
| 5830 | (unless (listp ps-lpr-switches) | ||
| 5831 | (error "`ps-lpr-switches' value should be a list.")) | ||
| 5834 | (and ps-color-p | 5832 | (and ps-color-p |
| 5835 | (equal ps-default-background ps-default-foreground) | 5833 | (equal ps-default-background ps-default-foreground) |
| 5836 | (error | 5834 | (error |
| @@ -6514,9 +6512,7 @@ If FACE is not a valid face name, use default face." | |||
| 6514 | (and (boundp 'printer-name) | 6512 | (and (boundp 'printer-name) |
| 6515 | (symbol-value 'printer-name)))) | 6513 | (symbol-value 'printer-name)))) |
| 6516 | (ps-lpr-switches | 6514 | (ps-lpr-switches |
| 6517 | (append (if (listp ps-lpr-switches) | 6515 | (append ps-lpr-switches |
| 6518 | ps-lpr-switches | ||
| 6519 | (list ps-lpr-switches)) | ||
| 6520 | (and (stringp ps-printer-name) | 6516 | (and (stringp ps-printer-name) |
| 6521 | (string< "" ps-printer-name) | 6517 | (string< "" ps-printer-name) |
| 6522 | (list (concat | 6518 | (list (concat |