This is already in the windows branch, I suspect when stephen sync's it
will appear in the mainline also.
andy
At 03:05 PM 4/25/02 +0200, Mike Fabian wrote:
Old patch which seems to have been lost. Still applies unchanged to
XEmacs 21.4.6:
2002-04-25 Mike Fabian <mfabian(a)suse.de>
* printer.el: make printing from the "Print <buffer-name>"
menu entry in the "File" menu work on Linux like systems
To: xemacs-beta(a)xemacs.org
Subject: Bug fix for printer.el (Printing doesn't work on non-Windows systems)
From: FABIAN Mike <mfabian(a)suse.de>
Date: 18 Oct 2001 23:43:31 +0200
Message-ID: <s3t1yk07hfg.fsf(a)gregory.suse.de>
The function 'generic-print-region' in printer.el contains a small bug
which prevents printing on non-MS-Windows systems. Because of this
printing from the "Print <buffer-name>" menu entry in the "File"
menu
doesn't work on non-MS-Windows systems. The following patch fixes it:
--- xemacs-21.4.4/lisp/printer.el.orig Thu Oct 18 21:32:21 2001
+++ xemacs-21.4.4/lisp/printer.el Thu Oct 18 21:33:10 2001
@@ -443,5 +443,5 @@
(setq copies (1- copies)))))
((and (not (eq system-type 'windows-nt))
(fboundp 'lpr-region))
- (lpr-region buffer))
+ (lpr-region (point-min) (point-max)))
(t (error "No print support available"))))
--
Mike Fabian <mfabian(a)suse.de>
http://www.suse.de/~mfabian
$B?gL2ITB-$O$$$$;E;v$NE($@!#(B