diff options
| author | Vinicius Jose Latorre | 2007-12-26 16:28:30 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2007-12-26 16:28:30 +0000 |
| commit | 53a124003ed4fba04eb9bbee897e0548747b0c31 (patch) | |
| tree | 08c03d8e52fd4551e0f6e7b54266181a6f732bee | |
| parent | 8c1bb9603fa68212014b54ab058777da8bf65f05 (diff) | |
| download | emacs-53a124003ed4fba04eb9bbee897e0548747b0c31.tar.gz emacs-53a124003ed4fba04eb9bbee897e0548747b0c31.zip | |
Fix ps-print-preprint-region code
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ps-print.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7dde34cb55d..e98c4bf2fce 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-12-26 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * ps-print.el (ps-print-preprint-region): Use `region-active-p' instead | ||
| 4 | `mark' for error checking. | ||
| 5 | |||
| 1 | 2007-12-26 Tassilo Horn <tassilo@member.fsf.org> | 6 | 2007-12-26 Tassilo Horn <tassilo@member.fsf.org> |
| 2 | 7 | ||
| 3 | * image-mode.el (image-bookmark-make-cell, image-bookmark-jump): | 8 | * image-mode.el (image-bookmark-make-cell, image-bookmark-jump): |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index fd5d94334cb..2cdb50e76ef 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -4695,7 +4695,7 @@ page-height == ((floor print-height ((th + ls) * zh)) * ((th + ls) * zh)) - th | |||
| 4695 | 4695 | ||
| 4696 | 4696 | ||
| 4697 | (defun ps-print-preprint-region (prefix-arg) | 4697 | (defun ps-print-preprint-region (prefix-arg) |
| 4698 | (or (mark) | 4698 | (or (region-active-p) |
| 4699 | (error "The mark is not set now")) | 4699 | (error "The mark is not set now")) |
| 4700 | (list (point) (mark) (ps-print-preprint prefix-arg))) | 4700 | (list (point) (mark) (ps-print-preprint prefix-arg))) |
| 4701 | 4701 | ||