Subject: Re: bug#32470: rcirc-debug: ignore read-only; do not move point if mid-buffer; use %F

From: Noam Postavsky <[email-masked]>
Date: Fri, 14 Sep 2018 08:22:23 -0400

Ivan Shmakov <[email-masked]> writes:

> 	I’m somewhat unsure if this change is NEWS-worthy; if so,
> 	I suggest the following entry.

The behaviour of debug tracing functions is somewhat in the gray area
between user visible and internal details, but I'd say there's no need
to update NEWS for this.

> -      (goto-char (point-max))
> -      (insert (concat
> -	       "["
> -	       (format-time-string "%Y-%m-%dT%T ") (process-name process)
> -	       "] "
> -	       text)))))
> +      (let ((old (set-marker (make-marker) (point))))

You could use (point-marker) instead.

> +        (set-marker-insertion-type old t)
> +        (goto-char (point-max))
> +        (let ((inhibit-read-only t))
> +          (terpri (current-buffer) t)

This looks like you're adding an extra newline, or was there a lack of
newlines before?