diff options
| author | Vinicius Jose Latorre | 2007-12-27 14:00:42 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2007-12-27 14:00:42 +0000 |
| commit | 1be05f120f5e57732f5f2860d758736f318e516a (patch) | |
| tree | b80046da82e66d47876b9af564b7ba543b7a5307 /lisp | |
| parent | 9b64a7f0cf4d2fb716182d26046f645ec58210b3 (diff) | |
| download | emacs-1be05f120f5e57732f5f2860d758736f318e516a.tar.gz emacs-1be05f120f5e57732f5f2860d758736f318e516a.zip | |
Fix ps-print-preprint-region code
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/ps-print.el | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f9ae2f49158..b1878cef3f5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-12-27 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * ps-print.el (ps-mark-active-p): Fun returned back. | ||
| 4 | (ps-print-preprint-region): Use `ps-mark-active-p' instead of | ||
| 5 | `region-active-p' for error checking. | ||
| 6 | |||
| 1 | 2007-12-27 Eric S. Raymond <esr@snark.thyrsus.com> | 7 | 2007-12-27 Eric S. Raymond <esr@snark.thyrsus.com> |
| 2 | 8 | ||
| 3 | * (vc.el, vc-sccs.el, vc-rcs.el, vc-cs.el, vc-mcvs.el): Put | 9 | * (vc.el, vc-sccs.el, vc-rcs.el, vc-cs.el, vc-mcvs.el): Put |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index 2cdb50e76ef..0e442f3b104 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -1501,6 +1501,12 @@ Please send all bug fixes and enhancements to | |||
| 1501 | (defalias 'ps-frame-parameter | 1501 | (defalias 'ps-frame-parameter |
| 1502 | (if (fboundp 'frame-parameter) 'frame-parameter 'frame-property)) | 1502 | (if (fboundp 'frame-parameter) 'frame-parameter 'frame-property)) |
| 1503 | 1503 | ||
| 1504 | (defalias 'ps-mark-active-p | ||
| 1505 | (if (featurep 'xemacs) | ||
| 1506 | 'region-active-p ; XEmacs | ||
| 1507 | (defvar mark-active) ; To shup up XEmacs's byte compiler. | ||
| 1508 | (lambda () mark-active))) ; Emacs | ||
| 1509 | |||
| 1504 | (defun ps-face-foreground-name (face) | 1510 | (defun ps-face-foreground-name (face) |
| 1505 | (if (featurep 'xemacs) | 1511 | (if (featurep 'xemacs) |
| 1506 | (ps-xemacs-color-name (face-foreground face)) | 1512 | (ps-xemacs-color-name (face-foreground face)) |
| @@ -4695,7 +4701,7 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th | |||
| 4695 | 4701 | ||
| 4696 | 4702 | ||
| 4697 | (defun ps-print-preprint-region (prefix-arg) | 4703 | (defun ps-print-preprint-region (prefix-arg) |
| 4698 | (or (region-active-p) | 4704 | (or (ps-mark-active-p) |
| 4699 | (error "The mark is not set now")) | 4705 | (error "The mark is not set now")) |
| 4700 | (list (point) (mark) (ps-print-preprint prefix-arg))) | 4706 | (list (point) (mark) (ps-print-preprint prefix-arg))) |
| 4701 | 4707 | ||