[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another Emacs incompatibilty
From: |
Emanuel Berg |
Subject: |
Re: Another Emacs incompatibilty |
Date: |
Tue, 25 Aug 2020 07:51:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
> Anyway, I don't get it to work:
>
> (delete-selection-mode) ; t
> (put 'insert-char 'delete-selection 'kill) ; kill
> I type this
> set-mark-command
> beginning-of-line
> set-mark-command
> s ("I type this" disappears, the letter s appears)
> yank
> "I type this" does NOT appear
>
> ?
To be fair, this should indeed work, the reason why
I didn't get it to work is hitting a key is
`self-insert-command', not `insert-char'...
To make a little list
(put 'insert-char 'delete-selection 'kill)
(put ' ... 'delete-selection 'kill)
...
(or even better, do a loop with all commands in
a list) is probably more sound than what I did
in [1], especially if the property is used by other
functions. But it should amount to the same...
[1] https://lists.gnu.org/archive/html/help-gnu-emacs/2020-08/msg00146.html
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
- Re: Another Emacs incompatibilty, (continued)
- Re: Another Emacs incompatibilty, Emanuel Berg, 2020/08/24
- RE: Another Emacs incompatibilty, Drew Adams, 2020/08/24
- Re: Another Emacs incompatibilty, Emanuel Berg, 2020/08/24
- Re: Another Emacs incompatibilty, Alan Davis, 2020/08/24
- RE: Another Emacs incompatibilty, Drew Adams, 2020/08/25
- RE: Another Emacs incompatibilty, Drew Adams, 2020/08/25
- Re: Another Emacs incompatibilty, Emanuel Berg, 2020/08/25
- Re: Another Emacs incompatibilty, Emanuel Berg, 2020/08/25
- RE: Another Emacs incompatibilty, Drew Adams, 2020/08/25
- Re: Another Emacs incompatibilty, Emanuel Berg, 2020/08/25
- Re: Another Emacs incompatibilty,
Emanuel Berg <=
- Re: Another Emacs incompatibilty, Stefan Monnier, 2020/08/24
- Re: Another Emacs incompatibilty, Emanuel Berg, 2020/08/24
- RE: Another Emacs incompatibilty, Drew Adams, 2020/08/18
- Re: Another Emacs incompatibilty, Eric Abrahamsen, 2020/08/18
- RE: Another Emacs incompatibilty, Drew Adams, 2020/08/18
- Re: Another Emacs incompatibilty, Eric Abrahamsen, 2020/08/18
- Re: Another Emacs incompatibilty, Emanuel Berg, 2020/08/18
Re: Another Emacs incompatibilty, Gregory Heytings, 2020/08/17