- Subject: Re: [jed-users] Updating the buffers
- From: Tom Culliton <tom.culliton@xxxxxxxxx>
- Date: Sat, 24 Feb 2018 15:53:23 -0500
Repeating myself here but, bufed mode lets you do this and it's been built
into the stock release forever.
Esc-X bufed, cursor down to select the modified file, hit enter to open the
buffer, when it says "File changed on disk. Read from disk? (yes or no) ",
enter "yes". The dired mode does something similar.
I find bufed and dired incredibly useful when I'm dealing with lots of
files. YMMV, but if you're willing to do a little slang hacking, you can
always copy the bufed_update function into your jedrc file and bind it to
some key combo like Esc-R.
On Sat, Feb 24, 2018 at 5:41 AM, Guenter Milde <milde@xxxxxxxxxxxxxxxxxxxxx>
wrote:
> Dear Martin,
>
> On 23.02.18, Martin Klaiber wrote:
> > Guenter Milde <milde@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> > > I often use two xjed instances on my desktop, sometimes also with the
> > > same file. When I safe to file in one instance, the buffer in the other
> > > instance gets flagged (with -d- in the status bar) after a screen
> update
> > > (cursor move, say). Then I can choose to re-load the file with
> File>Reload
> > > (Alt-F L). For me, this is sufficiently efficent and I stay in control.
> > > (You can also bind the "reload_buffer" function to a key-combo of your
> > > choice.)
>
> > That sounds good and would be sufficient for me too. But <Alt-F><L>
> > doesn't work here and my jed doesn't seem to know a function called
> > "reload_buffer". I use Jed pre0.99.20-62. Is it too old?
>
> I use Jed Version: 0.99.19 on Linux (as xjed and in a console). However,
> I use it with many of the extensions from jedmodes.sf.net (on Debian
> available in the jed-extra package). reload_buffer() is defined in
> bufutils.sl (http://jedmodes.sourceforge.net/mode/bufutils/)
>
> In my local setup file, I define
>
> define gm_load_popup_hook(menubar)
> {
> menu_insert_item("Save &Buffers", "Global.&File", "Re&load",
> "reload_buffer");
> % ...
> }
>
> and this works since years.
> Caveat: reloading deletes the undo/redo buffer.
>
> Günter
>
> _______________________________________________
> For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
>
>
[2018 date index]
[2018 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]