EDIT: Maybe (in the original post) I misused the term "transitional" (I'm not familiar with jargon yet). I really want to say that the selected region will disappear immediately when the user presses the navigation keys, for example. arrow keys ... (2nd EDIT: I deleted the word "transient")
It’s a particular problem of choosing a region, so that the user receives the movement of the "cursor-key, disappears if the highlight disappears" - this is the last test of my existence. I get different results depending on how I run the following script.
Why does it give different results, or rather, a way to make it create “cursor keys so that the backlight disappears” , regardless of which mode is launched or is it executed during testing? .. CUA mode has this behavior, but I really need to non-CUA mode also did (and, if possible, eval) ...
Here are the results followed by the code. (GNU Emacs 23.1.1)
;test (trans-hi) EOL (defun trans-hi () "transient highlight" (beginning-of-line) (push-mark (point)) (end-of-line) (activate-mark)) ;test (call-trans-hi) EOL (defun call-trans-hi () "call transient highlight" (interactive) (trans-hi)) (global-set-key [C-f1] 'call-trans-hi)
source share