+2007-12-27 Vinicius Jose Latorre <viniciusjl@ig.com.br>
+
+ * ps-print.el (ps-mark-active-p): Fun returned back.
+ (ps-print-preprint-region): Use `ps-mark-active-p' instead of
+ `region-active-p' for error checking.
+
2007-12-27 Eric S. Raymond <esr@snark.thyrsus.com>
* (vc.el, vc-sccs.el, vc-rcs.el, vc-cs.el, vc-mcvs.el): Put
(defalias 'ps-frame-parameter
(if (fboundp 'frame-parameter) 'frame-parameter 'frame-property))
+(defalias 'ps-mark-active-p
+ (if (featurep 'xemacs)
+ 'region-active-p ; XEmacs
+ (defvar mark-active) ; To shup up XEmacs's byte compiler.
+ (lambda () mark-active))) ; Emacs
+
(defun ps-face-foreground-name (face)
(if (featurep 'xemacs)
(ps-xemacs-color-name (face-foreground face))
(defun ps-print-preprint-region (prefix-arg)
- (or (region-active-p)
+ (or (ps-mark-active-p)
(error "The mark is not set now"))
(list (point) (mark) (ps-print-preprint prefix-arg)))