<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Before read : Keep in mind that i am
      *not* C/C++ "native" developer, and all message below can be just
      rant.<br>
      <br>
      After little testing and debugging, i found that :<br>
      In on_editor_notify() function, user_data is not a valid pointer :<br>
      on_editor_notify(GObject *obj, gint scn, SCNotification *nt,
      gpointer user_data)<br>
      {<br>
          AutocloseUserData *data = user_data;<br>
          ...<br>
      }<br>
      <br>
      After I playing for a while with this and reading demoplugin.c
      source, i found that in the autoclose.c, PluginCallback[]
      (line:829) is missing the definition for "editor-notify" event,so
      i added it, recompile plugin and now all seems to work correctly.<br>
      <br>
      P.S.: I add the patch file as attachment to this mail, becouse for
      now i do not have any expiriance in commiting patches on GitHub,
      but tonight i will fix this big mistake :)<br>
      <br>
      On 23/10/13 13:00, Lex Trotman wrote:<br>
    </div>
    <blockquote
cite="mid:CAKhWKDOeWDfe-=BOME+suZ11TVbZ=o0-BdHnYeCW2Kh1Wr-p9Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        Looking at the line that failed, first guess would be failure to
        check doc is valid before using it.
        <div><br>
        </div>
        <div>Cheers</div>
        <div>Lex<br>
          <div class="gmail_extra"><br>
            <br>
            <div class="gmail_quote">
              On 23 October 2013 20:20, n@sk0 <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:arrtedone@gmail.com" target="_blank">arrtedone@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                There is strange behaviour when Auto-close plug-in is
                enabled.<br>
                <br>
                Steps to reproduce :<br>
                1. open Geany<br>
                2. Enable auto-close plug-in<br>
                3. open several files for edit<br>
                4. Click Ctrl+W (close document)<br>
                --<br>
                <br>
                Expected result :<br>
                Currently opened document is closed.<br>
                --<br>
                <br>
                Actual result :<br>
                Segmentation fault<br>
                --<br>
                <br>
                See attached gdb backtrace for more info.<br>
                <br>
                Debug info :<br>
                Geany-INFO: Geany 1.24 (git >= ef33175), en_US.UTF-8<br>
                Geany-INFO: GTK 2.24.22, GLib 2.36.3<br>
                Geany-INFO: System data dir: /usr/local/share/geany<br>
                Geany-INFO: User config dir: /home/nask0/.config/geany<br>
                Geany-INFO: System plugin path: /usr/local/lib/geany<br>
                Geany-INFO: Added filetype CUDA (57).<br>
                Geany-INFO: Added filetype Rust (58).<br>
                Geany-INFO: Added filetype Scala (59).<br>
                Geany-INFO: Added filetype Graphviz (60).<br>
                Geany-INFO: Added filetype Cython (61).<br>
                Geany-INFO: Added filetype Genie (62).<br>
                Geany-INFO: Added filetype Clojure (63).<br>
                Geany-INFO: Added filetype Go (64).<br>
                Geany-INFO: Disabling terminal support<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/addons.so
                (Addons)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/autoclose.so
                (Auto-close)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/geanylipsum.so
                (GeanyLipsum)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/geanyvc.so
                (GeanyVC)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/htmlchars.so
                (HTML Characters)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/geanyprj.so
                (Project)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/splitwindow.so
                (Split Window)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/treebrowser.so
                (TreeBrowser)<br>
                Geany-INFO: Loaded:   /usr/local/lib/geany/xmlsnippets.so
                (XML Snippets)<br>
                <br>
                <br>
                _______________________________________________<br>
                Devel mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
                <a moz-do-not-send="true"
                  href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel"
                  target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
                <br>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a>
<a class="moz-txt-link-freetext" href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>