hey! It's about the bug <br><br><a href="http://sourceforge.net/tracker/?func=detail&aid=3587465&group_id=153444&atid=787791">http://sourceforge.net/tracker/?func=detail&aid=3587465&group_id=153444&atid=787791</a><br>

<br>i tried to debug it by changing the buttons to YES No buttons, I figured out that the document.c is the file associated with this bug.<br><br>original code<br><br><div>static void monitor_reload_file(GeanyDocument *doc)</div>

<div>{</div><div><span class="" style="white-space:pre">    </span>gchar *base_name = g_path_get_basename(doc->file_name);</div><div><span class="" style="white-space:pre"> </span>gint ret;</div><div><br></div><div><span class="" style="white-space:pre"> </span>ret = dialogs_show_prompt(NULL,</div>

<div><span class="" style="white-space:pre">            </span>GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,</div><div><span class="" style="white-space:pre">               </span>GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,</div><div><span class="" style="white-space:pre">             </span>_("_Reload"), GTK_RESPONSE_ACCEPT,</div>

<div><span class="" style="white-space:pre">            </span>_("Do you want to reload it?"),</div><div><span class="" style="white-space:pre">          </span>_("The file '%s' on the disk is more recent than\nthe current buffer."),</div>

<div><span class="" style="white-space:pre">            </span>base_name);</div><div><span class="" style="white-space:pre">        </span>g_free(base_name);</div><div><br></div><div><span class="" style="white-space:pre">        </span>if (ret == GTK_RESPONSE_ACCEPT)</div>

<div><span class="" style="white-space:pre">            </span>document_reload_file(doc, doc->encoding);</div><div><span class="" style="white-space:pre">       </span>else if (ret == GTK_RESPONSE_CLOSE)</div><div><span class="" style="white-space:pre">                </span>document_close(doc);</div>

<div>}</div><br><br><br><br>Modified code<br><div>static void monitor_reload_file(GeanyDocument *doc)</div><div>{</div><div><span class="" style="white-space:pre">   </span>gchar *base_name = g_path_get_basename(doc->file_name);</div>

<div><span class="" style="white-space:pre">    </span>gint ret;</div><div><br></div><div><span class="" style="white-space:pre"> </span>ret = dialogs_show_prompt(NULL,</div><div><span class="" style="white-space:pre">            </span>GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,</div>

<div><span class="" style="white-space:pre">            </span>GTK_STOCK_NO, GTK_RESPONSE_NO,</div><div><span class="" style="white-space:pre">             </span>GTK_STOCK_YES, GTK_RESPONSE_YES,</div><div><span class="" style="white-space:pre">           </span>_("Do you want to reload it?"),</div>

<div><span class="" style="white-space:pre">            </span>_("The file '%s' on the disk is more recent than\nthe current buffer."),</div><div><span class="" style="white-space:pre">         </span>base_name);</div><div>

<span class="" style="white-space:pre">       </span>g_free(base_name);</div><div><br></div><div><span class="" style="white-space:pre">        </span>if (ret == GTK_RESPONSE_YES)</div><div><span class="" style="white-space:pre">               </span>document_reload_file(doc, doc->encoding);</div>

<div><span class="" style="white-space:pre">    </span>else if (ret == GTK_RESPONSE_CLOSE)</div><div><span class="" style="white-space:pre">                </span>document_close(doc);</div><div>}<br><br><br>How to test this code locally<br>

when I try<br>make install<br><br>I get this output<br><br><div>[amit@localhost geany-1.22]$ make install</div><div>Making install in tagmanager</div><div>make[1]: Entering directory `/home/amit/Programming/Geany/geany-1.22/tagmanager'</div>

<div>Making install in mio</div><div>make[2]: Entering directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/mio'</div><div>make[3]: Entering directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/mio'</div>

<div>make[3]: Nothing to be done for `install-exec-am'.</div><div>make[3]: Nothing to be done for `install-data-am'.</div><div>make[3]: Leaving directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/mio'</div>

<div>make[2]: Leaving directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/mio'</div><div>Making install in include</div><div>make[2]: Entering directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/include'</div>

<div>make[3]: Entering directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/include'</div><div>make[3]: Nothing to be done for `install-exec-am'.</div><div> /usr/bin/mkdir -p '/usr/local/include/geany/tagmanager'</div>

<div>/usr/bin/mkdir: cannot create directory `/usr/local/include/geany': Permission denied</div><div>make[3]: *** [install-tagmanager_includeHEADERS] Error 1</div><div>make[3]: Leaving directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/include'</div>

<div>make[2]: *** [install-am] Error 2</div><div>make[2]: Leaving directory `/home/amit/Programming/Geany/geany-1.22/tagmanager/include'</div><div>make[1]: *** [install-recursive] Error 1</div><div>make[1]: Leaving directory `/home/amit/Programming/Geany/geany-1.22/tagmanager'</div>

<div>make: *** [install-recursive] Error 1</div></div><div><br><br><br>Can anyone please help me with this so that I can test this, also how to submit the code (ie if I get it right) <br><br>ps: attaching the modified document.c.<br>

<br>Thanks<br><br>Regards<br>Amit</div>