jed-users mailing list

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

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


Bernhard Seckinger <bernhard.seckinger@xxxxxxxxxx> wrote:
> That Ctrl-X Ctrl-B discussion reminds me on something odd which sometimes
> happens: A typical use case is to use it to switch to an other buffer (to look
> something up) and than switch back to the original buffer using Ctrl-X Ctrl-B
> Return. Most of the time this works, but sometimes jed catches the wrong
> buffer when I want to switch back.
>
> I never wrote here something, because I tried to find a reproducable example,
> which I unfortunately never managed. But I've got collected some observations:
>
> a) It only happens when there are a lot of buffers.
>
> b) It seems to happen more often, when you switch between buffers with
> different modes. E.g. from a java buffer to a postscript buffer and than
> back. In that case, jed seems to prefere an other postscript buffer instead of
> the java buffer.
>
> c) Whenever this happens, the desired buffer seems to be the last in the list.
> That is, when I switch to the wrong buffer and kill it another wrong buffer is
> suggested next until I killed all wrong buffers.
>
> d) Whenever it happens, best one can do is to close jed and restart. It seems,
> once jed has started this strange behaviour, it's burned in somehow - if you
> know, what I mean. (I'm not 100% sure of this, maybe killing all buffers and
> loading new might also work; it's normally just faster to restart.)
>
> Did anyone of you encounter this too? Are there any ideas what I could do?

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.

I hope this helps.
Thanks,
--John
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


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