]> code.delx.au - gnu-emacs/blobdiff - lisp/lpr.el
(mouse-drag-secondary): Make sure to return nil
[gnu-emacs] / lisp / lpr.el
index 7027439033c076785b08056b6f364fa98dbf3af4..349561936427eee449bea88b473c86e6bca633b9 100644 (file)
@@ -18,8 +18,9 @@
 ;; GNU General Public License for more details.
 
 ;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING.  If not, write to
-;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;; along with GNU Emacs; see the file COPYING.  If not, write to the
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; Boston, MA 02111-1307, USA.
 
 ;;; Commentary:
 
@@ -49,7 +50,7 @@ this variable should be nil.")
 ;; Default is nil, because that enables us to use pr -f
 ;; which is more reliable than pr with no args, which is what lpr -p does.
 (defvar lpr-headers-switches nil
-  "*List of strings to use as options for `lpr' to request page headings.
+  "*List of strings of options to request page headings in the printer program.
 If nil, we run `lpr-page-header-program' to make page headings
 and print the result.")
 
@@ -61,7 +62,8 @@ See definition of `print-region-1' for calling conventions.")
   "*Name of program for adding page headers to a file.")
 
 (defvar lpr-page-header-switches '("-f")
-  "*List of strings to use as options for `lpr-page-header-program'.")
+  "*List of strings to use as options for the page-header-generating program.
+The variable `lpr-page-header-program' specifies the program to use.")
 
 ;;;###autoload
 (defun lpr-buffer ()
@@ -97,6 +99,10 @@ See definition of `print-region-1' for calling conventions.")
   ;; and it seems to annoying to do for that MIPS system.
   (let ((name (concat (buffer-name) " Emacs buffer"))
        (title (concat (buffer-name) " Emacs buffer"))
+       ;; On MS-DOS systems, make pipes use binary mode if the
+       ;; original file is binary.
+       (binary-process-input buffer-file-type)
+       (binary-process-output buffer-file-type)
        (width tab-width)
        switch-string)
     (save-excursion