aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-04 03:41:03 +0000
committerRichard M. Stallman1993-08-04 03:41:03 +0000
commit2adf4f6165a904bd5a3306ee129a258bd3050450 (patch)
treec52da02d4054e1cbd0405229964c8f6ac167204c
parentd6bd8dca5d45ed3afdf1b172f1af559a85e7d750 (diff)
downloademacs-2adf4f6165a904bd5a3306ee129a258bd3050450.tar.gz
emacs-2adf4f6165a904bd5a3306ee129a258bd3050450.zip
(print-region-1): Make END a marker so untabify relocates it.
-rw-r--r--lisp/lpr.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/lpr.el b/lisp/lpr.el
index 3bd12335068..8ffb7f37e9b 100644
--- a/lisp/lpr.el
+++ b/lisp/lpr.el
@@ -80,6 +80,9 @@ See definition of `print-region-1' for calling conventions.")
80 (progn 80 (progn
81 (print-region-new-buffer start end) 81 (print-region-new-buffer start end)
82 (setq tab-width width) 82 (setq tab-width width)
83 (save-excursion
84 (goto-char end)
85 (setq end (point-marker)))
83 (untabify (point-min) (point-max)))) 86 (untabify (point-min) (point-max))))
84 (if page-headers 87 (if page-headers
85 (if (eq system-type 'usg-unix-v) 88 (if (eq system-type 'usg-unix-v)
@@ -94,6 +97,8 @@ See definition of `print-region-1' for calling conventions.")
94 (nconc (and (eq system-type 'berkeley-unix) 97 (nconc (and (eq system-type 'berkeley-unix)
95 (list "-J" name "-T" name)) 98 (list "-J" name "-T" name))
96 switches))) 99 switches)))
100 (if (markerp end)
101 (set-marker end nil))
97 (message "Spooling...done")))) 102 (message "Spooling...done"))))
98 103
99;; This function copies the text between start and end 104;; This function copies the text between start and end