From 2adf4f6165a904bd5a3306ee129a258bd3050450 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 4 Aug 1993 03:41:03 +0000 Subject: [PATCH] (print-region-1): Make END a marker so untabify relocates it. --- lisp/lpr.el | 5 +++++ 1 file changed, 5 insertions(+) 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.") (progn (print-region-new-buffer start end) (setq tab-width width) + (save-excursion + (goto-char end) + (setq end (point-marker))) (untabify (point-min) (point-max)))) (if page-headers (if (eq system-type 'usg-unix-v) @@ -94,6 +97,8 @@ See definition of `print-region-1' for calling conventions.") (nconc (and (eq system-type 'berkeley-unix) (list "-J" name "-T" name)) switches))) + (if (markerp end) + (set-marker end nil)) (message "Spooling...done")))) ;; This function copies the text between start and end -- 2.39.5