jed-users mailing list

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

Re: [jed-users] Updating the buffers


I run into this occasionally while working in multiple terminal windows.
What I usually do is use bufed mode which lets you update buffers modified
on disk, assuming that you don't have conflicting local changes.

In the rare case of conflicting changes you may need external help, say
writing the buffer with a new name and using meld, or using your revision
control tools to generate a patch.

On Fri, Feb 23, 2018 at 8:30 AM, Roland Hughes <roland@xxxxxxxxxxxxxxxxxxxx>
wrote:

> Automatic buffer update would be really really really bad. While I
> wouldn't be offended at some kind of pop-up querying "document has changed
> on disk, would you like to reload?" with ok/ignore buttons, auto-loading
> would be horrible.
>
> What happens if someone deletes a file on disk and auto-load is in place?
> Buffer gone. Your last version of the document on how to build mankind's
> first warp drive engine was in the buffer and got wiped because auto-load
> saw the file was gone. Mankind will never leave the solar system to explore
> brave new worlds.
>
> What happens when you fat finger the document from the other machine? By
> fat finger I mean you save a zero byte file. That instruction manual on how
> to build a universal healing machine which will extend human life beyond
> 200 hears is lost forever.
>
> On 02/23/2018 07:05 AM, Martin Klaiber wrote:
>
> Hello list,
>
> sometimes I want to work with jed on one document but on two different
> computers in two different rooms. The computers are synchronized by a
> program called unison which is based on rsync (AFAIK).
>
> When I leave one computer to go to the other one, I normally stop jed
> and start it again on the other computer. But it would be nicer if I
> could keep both instances (do you say so?) of jed open.
>
> I tried that out and jed shows me in the status-line with the "d" that
> the file has changed on disk. When I start typing jed tells me so and
> asks me if I really want to edit this buffer. If I answer no, nothing
> else happens.
>
> How can I tell jed to update the buffer? The only way I know, is to
> reopen the file, which is not very comfortable.
>
> The best would be if I could tell jed to automatically update the
> buffers when the files change on disk. Is there a way to do so?
>
> Thank you for your help
> Martin
> _______________________________________________
> For list information, visit <http://jedsoft.org/jed/mailinglists.html> <http://jedsoft.org/jed/mailinglists.html>.
>
>
>
> --
> Roland Hughes, President
> Logikal Solutions
> (630)-205-1593
> http://www.theminimumyouneedtoknow.comhttp://www.infiniteexposure.nethttp://www.johnsmith-book.comhttp://www.logikalblog.comhttp://www.interestingauthors.com/bloghttp://lesedi.us/http://onedollarcontentstore.com
>
>

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