Greg Onufer <gco(a)pkg.Eng.Sun.COM> writes:
Clicking on File->Print "buffer" from the menubar
results in a
run-time error about lpr-region being called with the wrong number
of arguments.
Thanks for the report. Here's the patch.
2000-10-30 Yoshiki Hayashi <yoshiki(a)xemacs.org>
* printer.el (generic-print-region): Fix arguments to lpr-region.
Handle optional argument buf.
Index: printer.el
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/lisp/Attic/printer.el,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 printer.el
--- printer.el 2000/07/20 03:11:26 1.1.2.3
+++ printer.el 2000/10/30 07:45:17
@@ -207,5 +207,7 @@
)))
((and (not (eq system-type 'windows-nt))
(fboundp 'lpr-buffer))
- (lpr-region buf))
+ (save-excursion
+ (set-buffer (or buf (current-buffer)))
+ (lpr-region b e)))
(t (error "No print support available"))))
--
Yoshiki Hayashi