aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-06-21 23:36:49 -0400
committerKyle Meyer <kyle@kyleam.com>2020-06-21 23:37:56 -0400
commit785eee34151b0e18e6e2c83839c686dd675d9cdf (patch)
treea5e95c7578c89358b9ebf620fe1676216288b5fc
parent69955d8d75d3a7ab647d3e883f9c64522ebc3dea (diff)
downloadpiem-785eee34151b0e18e6e2c83839c686dd675d9cdf.tar.gz
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.
-rw-r--r--piem.el1
1 files changed, 1 insertions, 0 deletions
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"