[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I contextually override shift selection functions?
From: |
Eli Zaretskii |
Subject: |
Re: How can I contextually override shift selection functions? |
Date: |
Sun, 04 Aug 2019 21:28:39 +0300 |
> From: ndame <emacsuser@freemail.hu>
> Date: Sun, 4 Aug 2019 20:07:20 +0200 (CEST)
>
> (local-set-key (kbd "S-<down>") (lambda ()
> (interactive)
> (if (my-context)
> (do 'something 'else)
>
> ;; call S-down as usual
> (call-interactively 'next-line))))
>
>
> Only the thing is call-interactively does not work here, that is
> it does not extend the selection when I press S-down.
>
> How can I invoke then the original shift selection feature from a
> program if I want to invoke the default behavior?
Did you already study the handle-shift-selection function?