all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Did you already study the handle-shift-selection function?
@ 2019-08-04 19:53 ndame
  0 siblings, 0 replies; only message in thread
From: ndame @ 2019-08-04 19:53 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

> 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))))

 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-04 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-04 19:53 Did you already study the handle-shift-selection function? ndame

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.