RESOLVED: option: reload current document

Ask how to do things or if a certain feature is available in the program.
Post Reply
User avatar
DerellLicht1
Posts: 136
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

RESOLVED: option: reload current document

Post by DerellLicht1 »

Is there an option somewhere, to make 'reload current document' automatic??
There are certain files, such as output from running PcLint, that get updated repeatedly;
while clicking 'reload current document' works fine, it would be nice if it would just automatically do it...

If that is already in options somewhere, please just point me to it!!
I've been reading through the options dialogs repeatedly, and every time I do, I find something else that I was previously looking for!!
Last edited by DerellLicht1 on 08 Aug 2021 20:49, edited 1 time in total.
User avatar
DerellLicht1
Posts: 136
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: option: reload current document

Post by DerellLicht1 »

Well, I *thought* I had found it, but not quite...

I enabled:
Log File Monitoring: Monitor current file

It underlined the 'close' box for the file in Red, and it detected *one* change in the file, but the next change was not detected.

I tried this with 'Follow tail' both selected and not selected, no change in these results...

===============================
Later note:
Well, it's more complex than that...
RJTE seems to recognize *additions* to the file, but it does not recognize removal from the file...

So, in this case:
When I add an erroneous line to my source file, the log file changes are recognized, and I see this:

Code: Select all

--- Module:   prime32.cpp (C++)
         _
         }  /* IF nbrleft%nextodd    */
prime32.cpp  105  Warning 529: Symbol 'unused_var' (line 98) not subsequently referenced
prime32.cpp  106  Warning 529: Symbol 'unused_var2' (line 99) not subsequently referenced
However, when I correct the errors and re-run lint, the log file changes to the following...
but RJTE does not recognized the changes, until I manually reload

Code: Select all

--- Module:   prime32.cpp (C++)

Actually, this looks like a bug to me; should I log it as such??
User avatar
pjj
Posts: 2109
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: option: reload current document

Post by pjj »

Do you have "Warn if document has been changed by external program" option checked (Options > File > Miscellaneous)? If so, then when RJ TE regains focus, modal window appears, asking if you want to reload the document. You can click on "Always" and then theoretically you would always have "fresh" version of said file (upon editor re-focus, I presume).
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
DerellLicht1
Posts: 136
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: option: reload current document

Post by DerellLicht1 »

(nevermind)
Last edited by DerellLicht1 on 08 Aug 2021 20:53, edited 1 time in total.
User avatar
DerellLicht1
Posts: 136
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: option: reload current document

Post by DerellLicht1 »

AHA!!! What I needed to do was turn 'reload current document' *OFF* !!!
Then, with your option enabled, this now updates fine in both cases!!!

Thank ye again, pjj !!!
Post Reply