mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Don't insert erc logs at the end
* erc-log.el (erc-log-setup-logging): Insert the previous log at the start of the buffer, not at the end (bug#20496).
This commit is contained in:
parent
03dbfb948c
commit
5caa4dea5a
1 changed files with 6 additions and 3 deletions
|
|
@ -270,9 +270,12 @@ The current buffer is given by BUFFER."
|
|||
(setq buffer-file-name nil)
|
||||
(erc-set-write-file-functions '(erc-save-buffer-in-logs))
|
||||
(when erc-log-insert-log-on-open
|
||||
(ignore-errors (insert-file-contents (erc-current-logfile))
|
||||
(move-marker erc-last-saved-position
|
||||
(1- (point-max))))))))
|
||||
(ignore-errors
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(insert-file-contents (erc-current-logfile)))
|
||||
(move-marker erc-last-saved-position
|
||||
(1- (point-max))))))))
|
||||
|
||||
(defun erc-log-disable-logging (buffer)
|
||||
"Disable logging in BUFFER."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue