1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
emacs/lisp/erc
F. Jason Park f99a0dae7c Align date stamps to whole days in ERC
* lisp/erc/erc-stamp.el (erc-stamp--current-time): Ditch overriding
precedence of the `erc--ts' property in `:around' method because the
variable `erc-stamp--current-time' fills that role well enough.
(erc-stamp--current-datestamp-left): Remove unused variable.
(erc-stamp--insert-date-stamp-as-phony-message): Assume
`erc-timestamp-last-inserted-left' has already been assigned the
updated rendered stamp for the current time.
(erc-stamp--lr-date-on-pre-modify): Use the variable
`erc-stamp--current-time' instead of the `erc-ts' property to convey
an overriding time value for `erc-add-timestamp'.  Set
`erc-timestamp-last-inserted-left' instead of fiddling with another
temporary variable to hack around these ill-fitting interfaces.  Use
day-aligned time value for the `erc-ts' property assigned to date
stamps.
(erc-stamp--date-mode): New internal minor mode.
(erc-insert-timestamp-left-and-right): Defer to `erc-stamp--date-mode'
for setting up date-stamp specific hooks.
(erc-stamp--time-as-day): New function to "round" a date stamp to
start of local day.
(erc-stamp--setup): Defer to `erc-stamp--date-mode' for date-stamp
specific teardown.  (Bug#60936)
* test/lisp/erc/erc-fill-tests.el
(erc-fill-tests--current-time-value): Change default value to nil.
(erc-stamp--current-time): New method for test cases.
(erc-fill-tests--insert-privmsg): Use realistic value for `unparsed'
slot.
(erc-fill-tests--wrap-populate): Bind
`erc-fill-tests--current-time-value' to 0.  Don't mock the function
`erc-stamp--current-time' because doing so inhibits normal polymorphic
dispatch, which test cases rely on for delivering correct timestamp
values in varied contexts.
; * test/lisp/erc/resources/fill/snapshots/merge-01-start.eld: Update.
; * test/lisp/erc/resources/fill/snapshots/merge-02-right.eld: Update.
; * test/lisp/erc/resources/fill/snapshots/merge-wrap-01.eld: Update.
2023-11-04 15:41:55 -07:00
..
ChangeLog.1
ChangeLog.2
erc-autoaway.el
erc-backend.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-button.el Spoof channel users in erc-button--phantom-users-mode 2023-09-17 16:17:59 -07:00
erc-capab.el
erc-common.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-compat.el Prefer ticks/hz pairs for some ERC timestamps on 29+ 2023-10-02 17:31:28 -07:00
erc-dcc.el Fix command-line parsing regression in erc-cmd-DCC 2023-07-13 18:45:31 -07:00
erc-desktop-notifications.el
erc-ezbounce.el
erc-fill.el Tidy up ERC's internal text-property API 2023-10-27 13:09:29 -07:00
erc-goodies.el Be slightly more aggressive with erc-scrolltobottom-all 2023-10-27 13:08:44 -07:00
erc-ibuffer.el Fix wrong "User" column count in erc-ibuffer 2023-10-02 17:23:29 -07:00
erc-identd.el
erc-imenu.el
erc-join.el Allow custom display-buffer actions in ERC 2023-07-13 18:45:31 -07:00
erc-lang.el
erc-list.el
erc-log.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-match.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-menu.el
erc-netsplit.el
erc-networks.el Prefer erc-target to erc-default-target 2023-10-20 15:24:06 -07:00
erc-nicks.el ; Prefer HTTPS to HTTP in more links 2023-08-02 23:32:28 +02:00
erc-notify.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-page.el
erc-pcomplete.el
erc-replace.el
erc-ring.el
erc-sasl.el
erc-services.el
erc-sound.el
erc-speedbar.el Rename erc-server-buffer-p 2023-10-20 15:22:56 -07:00
erc-spelling.el
erc-stamp.el Align date stamps to whole days in ERC 2023-11-04 15:41:55 -07:00
erc-status-sidebar.el Simplify multi-frame behavior in erc-bufbar-mode 2023-07-28 16:39:04 -07:00
erc-track.el Ignore date stamps completely in erc-track 2023-10-27 13:08:44 -07:00
erc-truncate.el Manage some text props for ERC insertion-hook members 2023-10-13 07:47:01 -07:00
erc-xdcc.el
erc.el Preserve user markers when inserting ERC date stamps 2023-11-04 15:36:24 -07:00