summaryrefslogtreecommitdiff
path: root/lisp/lpr.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-06-23 14:33:32 +0000
committerRichard M. Stallman <rms@gnu.org>1994-06-23 14:33:32 +0000
commit67f25a9e8a028ff1072aadb17593a9a53e8fe5dc (patch)
treedc60aad6bdd655209e424f2d2549c9535b8323ca /lisp/lpr.el
parenteab703ea7e51dfd86c511528ecec4cbab0787c86 (diff)
downloademacs-67f25a9e8a028ff1072aadb17593a9a53e8fe5dc.tar.gz
(print-region-1): Don't include a space in the job name.
Diffstat (limited to 'lisp/lpr.el')
-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.")
(print-region-1 start end lpr-switches t))
(defun print-region-1 (start end switches page-headers)
- (let ((name (concat (buffer-name) " Emacs buffer"))
+ (let ((name (concat (buffer-name) "-Emacs-buffer"))
+ (title (concat (buffer-name) " Emacs buffer"))
(width tab-width))
(save-excursion
(message "Spooling...")
@@ -105,7 +106,7 @@ See definition of `print-region-1' for calling conventions.")
(nconc (list start end lpr-command
nil nil nil)
(nconc (and lpr-add-options
- (list "-J" name "-T" name))
+ (list "-J" name "-T" title))
switches)))
(if (markerp end)
(set-marker end nil))