[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: can't do `backward-word' at end of line with certain timestamp confi
From: |
Emanuel Berg |
Subject: |
Re: can't do `backward-word' at end of line with certain timestamp config |
Date: |
Mon, 01 Apr 2024 06:09:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
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
- Re: can't do `backward-word' at end of line with certain timestamp config,
Emanuel Berg <=