aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-23 14:33:32 +0000
committerRichard M. Stallman1994-06-23 14:33:32 +0000
commita803745514e7179db1d83236fa243c744365b787 (patch)
treec076e0fad9f7af9e994f32924707ac799a99151e
parenta060984a9ad7034561c7751f816541d84b30a045 (diff)
downloademacs-a803745514e7179db1d83236fa243c744365b787.tar.gz
emacs-a803745514e7179db1d83236fa243c744365b787.zip
(print-region-1): Don't include a space in the job name.
-rw-r--r--lisp/lpr.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/lpr.el b/lisp/lpr.el
index cd68c41b615..37b98d91fec 100644
--- a/lisp/lpr.el
+++ b/lisp/lpr.el
@@ -79,7 +79,8 @@ See definition of `print-region-1' for calling conventions.")
79 (print-region-1 start end lpr-switches t)) 79 (print-region-1 start end lpr-switches t))
80 80
81(defun print-region-1 (start end switches page-headers) 81(defun print-region-1 (start end switches page-headers)
82 (let ((name (concat (buffer-name) " Emacs buffer")) 82 (let ((name (concat (buffer-name) "-Emacs-buffer"))
83 (title (concat (buffer-name) " Emacs buffer"))
83 (width tab-width)) 84 (width tab-width))
84 (save-excursion 85 (save-excursion
85 (message "Spooling...") 86 (message "Spooling...")
@@ -105,7 +106,7 @@ See definition of `print-region-1' for calling conventions.")
105 (nconc (list start end lpr-command 106 (nconc (list start end lpr-command
106 nil nil nil) 107 nil nil nil)
107 (nconc (and lpr-add-options 108 (nconc (and lpr-add-options
108 (list "-J" name "-T" name)) 109 (list "-J" name "-T" title))
109 switches))) 110 switches)))
110 (if (markerp end) 111 (if (markerp end)
111 (set-marker end nil)) 112 (set-marker end nil))