Re: can't do `backward-word' at end of line with certain timestamp config
Emanuel Berg <[email protected]> Mon, 01 Apr 2024 02:52:49 +0200
| Newsgroups | gmane.emacs.erc.general |
|---|---|
| Message-ID | <[email protected]> |
>> 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))) >> >> (keymap-set erc-mode-map "<remap> <backward-word>" #'my-erc-backward-word) > > There is another problem with timestamps, when you kill text > from IRC to yank someplace else, it is still included even > tho they are made invisible with `erc-toggle-timestamps'. > > So I'm gonna disable them completely, but since you asked, > sure, I'll try what you propose anyway, 1s. When I eval that defun it says Debugger entered--Lisp error: (invalid-function (inhibit-field-text-motion (or (< (point) erc-input-marker) inhibit-field-text-motion))) -- underground experts united https://dataswamp.org/~incal