jed-users mailing list

[2025 Date Index] [2025 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] Re: wrong default when using ctrl-X ctrl-B


John E. Davis <jed@xxxxxxxxxxx> wrote:

> I recommend that you use the bookmark functions:
> 
>    bkmrk_set_mark
>    bkmrk_goto_mark
> 
> that are "described" in bookmark.sl.  You will need to bind these
> functions yourself.  For example, I have them bound to `Ctrl-K m` and
> `Ctrk-K RET`, respectively.  The idea is that you set a bookmark using
> the bkmrk_set_mark function.  You will be prompted for a digit (0-9)
> to specify one of the 10 bookmarks.  Then you can return to that
> bookmark from any buffer by using the bkmrk_goto_mark function, which
> will also prompt for a digit, or a space. The space will cause you to
> return to the previous position allowing you to quickly toggle between
> two positions.  You may have to play with this to see what I mean.

Why not just also have the Bkmrk_Last_Position set in the bkmrk_set_mark()
function, like this?

  define bkmrk_set_mark ()
  {
     bkmrk_get_or_set_mark (0);
     Bkmrk_Last_Position = create_user_mark ();
  }

As it is now, you have to visit a bookmark with the bkmrk_goto_mark()
function before you may use the space. With the change above, you can set a
bookmark, jump to another buffer and then immediately jump to and fro with
the <key-combo> + <space>

Would there be any adverse effects to this?

Regards,
Morten

PS: I am constantly getting these messages from the mailing list manager:


    Hi, this is the Mlmmj program managing the <jed-users@xxxxxxxxxxx> mailing
    list.

    Some messages to you could not be delivered. If you're seeing this
    message it means things are back to normal, and it's merely for your
    information.

    Here is the list of the bounced messages:
    - 620

With what I know, there are no problems at my mail provider. If it is
something at my end, is there some log file from the Mlmmj program,
detailing the problem, that I might see?

_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2025 date index] [2025 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]