[Top][All Lists]

[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...


underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]