# HG changeset patch # User Richard M. Stallman # Date 766708909 0 # Node ID a517c80bbe8d3631df6ce5790eaacd960db386fd # Parent 8924bd75c2639993f63682bfb2d36d909cd7bc6f (shell-command-filter): If point was at end, leave it at end. diff -r 8924bd75c263 -r a517c80bbe8d lisp/simple.el --- a/lisp/simple.el Mon Apr 18 22:40:07 1994 +0000 +++ b/lisp/simple.el Mon Apr 18 22:41:49 1994 +0000 @@ -732,13 +732,15 @@ (unwind-protect (progn (set-buffer buffer) - (setq opoint (point)) + (or (= (point) (point-max)) + (setq opoint (point))) (goto-char (point-max)) (insert-before-markers string)) ;; insert-before-markers moved this marker: set it back. (set-window-start window pos) ;; Finish our save-excursion. - (goto-char opoint) + (if opoint + (goto-char opoint)) (set-buffer obuf)))) (defun shell-command-on-region (start end command &optional flag interactive)