Community
    • Login

    Bookmark multiple lines.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    25 Posts 5 Posters 16.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dailD
      dail @Claudia Frank
      last edited by

      @Claudia-Frank

      I did some poking around…and installed PythonScript (I haven’t used it in years). When I ran some test code, one of the first things I realized is that it is that Scintilla is being redrawn multiple times when using PythonScript. I verified this by catching the SCN_UPDATEUI event in Lua. The LuaScript call generates 1 event, using PythonScript generates numerous events…not always the same amount (normally about 50% of however many bookmarks were added). It probably also generates numerous SCN_MODIFIED events?

      You might try a similar test with PythonScript which doesn’t generate any type of side effect, something simple like SCI_STYLEGETFORE which should be a very fast and simple call.

      Claudia FrankC 2 Replies Last reply Reply Quote 2
      • Claudia FrankC
        Claudia Frank @dail
        last edited by

        @dail

        thanks for looking into this.
        I will give it a try and let you know.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Claudia FrankC
          Claudia Frank @dail
          last edited by

          @dail

          Good job, I guess that is the area which needs investigation, yes.
          I tested with synchronous and asynchronous callbacks - result was more or less the same.

          If I
          added markers for 30 lines it report one aditional updateui event,
          adding markers to 290 lines it added 3 additional event
          adding markers to 3800 lines it added 40 additional events

          lua reported only 1 event in all cases, the same is true if using Direct_Function call.

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 1
          • guy038G
            guy038
            last edited by

            Hello, @dail,

            Did you see that post :

            https://notepad-plus-plus.org/community/topic/15089/notepad-file-status-auto-detection-not-working/37

            It seems that @vitaliy-dovgan found out a solution, regarding VS2015 and the auto-detection problem, in XP

            So, given that information, may be, after few modifications, we could have the Lua v7.0 and Lua v7.1 plugins working nice on XP platforms ? Just an intuition but I hope so !

            Cheers,

            guy038

            dailD 1 Reply Last reply Reply Quote 0
            • dailD
              dail @guy038
              last edited by

              @guy038

              Unfortunately I’m not sure if that’s the cause of issues with LuaScript running on XP. I know that the plugin itself doesn’t use that type of function call. I’m not sure if the Lua interpreter does underneath…if so it’s probably not something I care to dig into.

              1 Reply Last reply Reply Quote 0
              • Alan KilbornA Alan Kilborn referenced this topic on
              • Alan KilbornA Alan Kilborn referenced this topic on
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors