- Subject: Re: highlighting regions in script
 
- From: Paul Boekholt <p.boekholt@xxxxxxxxx>
 
- Date: Sun, 11 Dec 2005 14:33:22 +0100
 
On Sun, 11 Dec 2005 02:04:47 +0100 (CET), Juergen Lemke <lemke_juergen@xxxxxxxx> said:
>  define highlightreg()
>  {
>    HIGHLIGHT=1; % just in case: also set in jed.rc
>    bol(); push_mark(); eol(); 
>    message(%question);
>  }
>  But this does not work: the line is not highlighted when the question is
>  asked, although the mark has really been set (for example pressing
>  Ctrl-W deletes the region which we just deifned). The weird thing is
>  that I have HIGHLIGHT=1; why can't I reproduce in this simple function
>  the behavior I get when I do this manually (Ctrl-A, Ctrl-[space] and
>  Ctrl-E)?
Because Ctrl-[space] is not bound to push_mark() - if you type C-h k
Ctrl-[space] you'll probably see that it's bound to smart_set_mark_cmd().
In this case, you should use push_visible_mark().
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
  [2005 date index]
  [2005 thread index]
  
  [Thread Prev] [Thread Next]
      
  [Date Prev] [Date Next]