diff options
| author | Vinicius Jose Latorre | 2007-11-11 14:18:17 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2007-11-11 14:18:17 +0000 |
| commit | 3bcc60cfaf19840ad12a496a60aea6f0408c366e (patch) | |
| tree | a0e01d54eadb42437e05845662f652dac9e7ef96 | |
| parent | 37b11c22c17b90111f39c74b14eafbcfeab77594 (diff) | |
| download | emacs-3bcc60cfaf19840ad12a496a60aea6f0408c366e.tar.gz emacs-3bcc60cfaf19840ad12a496a60aea6f0408c366e.zip | |
Error if ps-lpr-switches is not a list.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/ps-print.el | 6 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e7d1daf2096..d1f4f81e835 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,13 +1,19 @@ | |||
| 1 | 2007-11-10 Jason Rumney <jasonr@gnu.org> | 1 | 2007-11-11 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 2 | ||
| 3 | * w32-fns.el: Sync charset names with setup-default-fontset. | 3 | * ps-print.el (ps-do-despool): Do not force ps-lpr-switches to be a |
| 4 | Append "-1" where second part missing. | 4 | list. |
| 5 | (ps-begin-job): Error if ps-lpr-switches is not a list. | ||
| 5 | 6 | ||
| 6 | 2007-11-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 7 | 2007-11-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 7 | 8 | ||
| 8 | * faces.el (face-normalize-spec): Remove function. | 9 | * faces.el (face-normalize-spec): Remove function. |
| 9 | (frame-set-background-mode): Undo last change. | 10 | (frame-set-background-mode): Undo last change. |
| 10 | 11 | ||
| 12 | 2007-11-10 Jason Rumney <jasonr@gnu.org> | ||
| 13 | |||
| 14 | * w32-fns.el: Sync charset names with setup-default-fontset. | ||
| 15 | Append "-1" where second part missing. | ||
| 16 | |||
| 11 | 2007-11-10 Juri Linkov <juri@jurta.org> | 17 | 2007-11-10 Juri Linkov <juri@jurta.org> |
| 12 | 18 | ||
| 13 | * isearch.el (isearch-mode-end-hook, isearch-mode-end-hook-quit): | 19 | * isearch.el (isearch-mode-end-hook, isearch-mode-end-hook-quit): |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index ce92e4781ef..ba8075730d5 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -6002,6 +6002,8 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 6002 | ;; initialize page dimensions | 6002 | ;; initialize page dimensions |
| 6003 | (ps-get-page-dimensions) | 6003 | (ps-get-page-dimensions) |
| 6004 | ;; final check | 6004 | ;; final check |
| 6005 | (unless (listp ps-lpr-switches) | ||
| 6006 | (error "`ps-lpr-switches' value should be a list.")) | ||
| 6005 | (and ps-color-p | 6007 | (and ps-color-p |
| 6006 | (equal ps-default-background ps-default-foreground) | 6008 | (equal ps-default-background ps-default-foreground) |
| 6007 | (error | 6009 | (error |
| @@ -6843,9 +6845,7 @@ If FACE is not a valid face name, use default face." | |||
| 6843 | (and (boundp 'printer-name) | 6845 | (and (boundp 'printer-name) |
| 6844 | (symbol-value 'printer-name)))) | 6846 | (symbol-value 'printer-name)))) |
| 6845 | (ps-lpr-switches | 6847 | (ps-lpr-switches |
| 6846 | (append (if (listp ps-lpr-switches) | 6848 | (append ps-lpr-switches |
| 6847 | ps-lpr-switches | ||
| 6848 | (list ps-lpr-switches)) | ||
| 6849 | (and (stringp ps-printer-name) | 6849 | (and (stringp ps-printer-name) |
| 6850 | (string< "" ps-printer-name) | 6850 | (string< "" ps-printer-name) |
| 6851 | (list (concat | 6851 | (list (concat |