bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18093: 24.4.50; `delsel.el' fixes for use with `completion.el'


From: Lars Ingebrigtsen
Subject: bug#18093: 24.4.50; `delsel.el' fixes for use with `completion.el'
Date: Sat, 23 Jan 2021 22:55:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

> `delsel.el' should be updated to play well with library `completion.el'.
> The following should be done (or equivalent):
>
> 1.
> (put 'completion-separator-self-insert-command 'delete-selection t)
> (put 'completion-separator-self-insert-autofilling 'delete-selection t)
>
> 2. If `last-command' is `complete' and `this-command' has
> `delete-selection' property `supersede' or `kill', replace the last
> inserted completion with the string that was completed.
>
> (defun delete-active-region (&optional killp)
>   (cond ((and (eq last-command 'complete) ; See `completion.el'.
>               (boundp 'cmpl-last-insert-location))

(I'm going through old bug reports that unfortunately got no response at
the time.)

As far as I can tell, 1) doesn't exist any more, and I'm not quite sure
I understand 2) (I've never used delsel mode).

Is this something that still needs work, or has what this bug report is
about been fixed in the years since it was filed?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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