[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32470: rcirc-debug: ignore read-only; do not move point if mid-buffe
bug#32470: rcirc-debug: ignore read-only; do not move point if mid-buffer; use %F
Fri, 14 Sep 2018 08:22:23 -0400
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Ivan Shmakov <address@hidden> 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
- bug#32470: rcirc-debug: ignore read-only; do not move point if mid-buffer; use %F,
Noam Postavsky <=