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

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

Re: How can I contextually override shift selection functions?


From: ndame
Subject: Re: How can I contextually override shift selection functions?
Date: Sun, 4 Aug 2019 22:04:24 +0200 (CEST)

(Sorry, I accidentally messed up the thread subject in the previous message.)


> Did you already study the handle-shift-selection function?

Thanks, I've taken a look and this seems to solve the issue:

   (let ((this-command-keys-shift-translated t))
     (call-interactively 'next-line)))))


though I'm wondering why simply adding the caret to the interactive spec
doesn't fix the  issue:

  (local-set-key (kbd "S-<down>") (lambda ()
                                    (interactive "^")
                                    (if (my-context)
                                        (do 'something 'else)
                                      
                                      ;; call S-down as usual
                                      (call-interactively 'next-line))))
 


reply via email to

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