changeset 87415:6528ad32693a

Fix ps-print-preprint-region code
author Vinicius Jose Latorre <viniciusjl@ig.com.br>
date Wed, 26 Dec 2007 16:28:30 +0000
parents c35602a6afac
children 87a6da15351c
files lisp/ChangeLog lisp/ps-print.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Dec 26 16:04:51 2007 +0000
+++ b/lisp/ChangeLog	Wed Dec 26 16:28:30 2007 +0000
@@ -1,3 +1,8 @@
+2007-12-26  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
+
+	* ps-print.el (ps-print-preprint-region): Use `region-active-p' instead
+	`mark' for error checking.
+
 2007-12-26  Tassilo Horn  <tassilo@member.fsf.org>
 
 	* image-mode.el (image-bookmark-make-cell, image-bookmark-jump):
--- a/lisp/ps-print.el	Wed Dec 26 16:04:51 2007 +0000
+++ b/lisp/ps-print.el	Wed Dec 26 16:28:30 2007 +0000
@@ -4695,7 +4695,7 @@
 
 
 (defun ps-print-preprint-region (prefix-arg)
-  (or (mark)
+  (or (region-active-p)
       (error "The mark is not set now"))
   (list (point) (mark) (ps-print-preprint prefix-arg)))