GNU bug report logs -
#60936
30.0.50; ERC >5.5: Add erc-fill style based on visual-line-mode
Previous Next
Reported by: "J.P." <jp <at> neverwas.me>
Date: Wed, 18 Jan 2023 14:55:02 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Fixed in version 30.1
Done: "J.P." <jp <at> neverwas.me>
Bug is archived. No further changes may be made.
Full log
Message #153 received at 60936 <at> debbugs.gnu.org (full text, mbox):
"J.P." <jp <at> neverwas.me> writes:
> v2. Fix date-stamp regression in erc-track. Optionally reinstate old
> "prepended" date-stamp behavior gated by new compat var.
>
> [...]
>
> @@ -665,19 +666,17 @@ erc-stamp--insert-date-stamp-as-phony-message
> (cl-assert string)
> (let ((erc-stamp--skip t)
> (erc--msg-props (map-into `((erc-msg . datestamp)
> - (erc-ts . ,erc-stamp--current-time))
> + (erc-ts . ,(erc-stamp--current-time)))
> 'hash-table))
> - (erc-send-modify-hook `(,@erc-send-modify-hook
> - erc-stamp--propertize-left-date-stamp
> - ,@erc-stamp--insert-date-hook))
> (erc-insert-modify-hook `(,@erc-insert-modify-hook
> - erc-stamp--propertize-left-date-stamp
> - ,@erc-stamp--insert-date-hook)))
> + erc-stamp--propertize-left-date-stamp))
> + ;; Don't run hooks that aren't expecting a narrowed buffer.
This also needs
(erc-insert-pre-hook nil)
> + (erc-insert-done-hook nil))
> (erc-display-message nil nil (current-buffer) string)
> (setq erc-timestamp-last-inserted-left string)))
because any hook member that can't operate in a narrowed buffer will
fail, especially on init, when the narrowed region is empty.
This bug report was last modified 1 year and 28 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.