From 785eee34151b0e18e6e2c83839c686dd675d9cdf Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 21 Jun 2020 23:36:49 -0400 Subject: process: Ensure output is inserted at end of buffer A previous process should leave point at the end of the buffer, but the user is of course free to reposition it afterwards, so move to the end of the buffer before staring a new process. --- piem.el | 1 + 1 file changed, 1 insertion(+) diff --git a/piem.el b/piem.el index 4451c2e..695a37b 100644 --- a/piem.el +++ b/piem.el @@ -184,6 +184,7 @@ Functions should accept one argument, the message ID given to (unless (derived-mode-p 'piem-process-mode) (piem-process-mode)) (setq default-directory (file-name-as-directory dir)) + (goto-char (point-max)) (display-buffer buffer) (let ((inhibit-read-only t)) (insert (format "\n%s\n;;; process: %S\n;;; directory: %s\n" -- cgit v1.2.3