Re: can't do `backward-word' at end of line with certain timestamp config

Emanuel Berg <[email protected]> Mon, 01 Apr 2024 06:09:11 +0200
Newsgroups gmane.emacs.erc.general
Message-ID <[email protected]>
J.P. wrote:

>> (setq erc-timestamp-format      "[%s]")
>> (setq erc-timestamp-format-left "[%F]\n")
>>
>> (let ((insert-fun #'erc-insert-timestamp-right))
>>   (setq erc-insert-timestamp-function      insert-fun)
>>   (setq erc-insert-away-timestamp-function insert-fun) )
>
> Perhaps you can do something like
>
>   (defun my-erc-backward-word (&optional arg)
>     (interactive "^p")
>     (let ((inhibit-field-text-motion
>            (or (< (point) erc-input-marker) inhibit-field-text-motion)))
>       (backward-word arg)))

OK, after setting up timestamps like that `backward-word'
doesn't work.

But your theory why it happens is correct and your
function works!

Perhaps there is now no reason for me to test further on
testnet.ergo.chat.

-- 
underground experts united
https://dataswamp.org/~incal