some temporary logging to catch a bug

[?]
Jun 1, 2023, 7:20 PM
QJISOCHJGOGK4PTD4IGOBKBU2KMEXJZJCTBL6Y2ZNDVQ2WNR7N4AC

Dependencies

  • [2] GFXWHTE6 mouse wheel support
  • [3] 4EGQRXDA bugfix: naming points
  • [4] K6DTOGOQ flip return value of button handlers
  • [5] LF7BWEG4 group all editor globals
  • [6] UHB4GARJ left/right margin -> left/right coordinates
  • [7] FKNXK2OA switch to line index in a function
  • [8] PK5U572C drop some extra args
  • [9] KYNGDE2C consistent names in a few more places
  • [10] 2CK5QI7W make love event names consistent
  • [11] QCPXQ2E3 add state arg to a few functions
  • [12] 52ZZ5TIE switch to line index in a function
  • [13] LNUHQOGH start passing in Editor_state explicitly
  • [14] 6D5MOJS4 allow buttons to interrupt events
  • [15] 2L5MEZV3 experiment: new edit namespace
  • [*] LXTTOB33 extract a couple of files
  • [*] S2MISTTM add state arg to a few functions
  • [*] MXA3RZYK deduce left/right from state where possible
  • [*] KKMFQDR4 editing source code from within the app

Change contents

  • edit in select.lua at line 11
    [18.655]
    [18.655]
    print_and_log('text.clip_selection')
  • edit in select.lua at line 14
    [18.772]
    [17.44653]
    print_and_log(('text.clip_selection: one end from selection: %d,%d'):format(minl,minp))
  • edit in select.lua at line 18
    [19.4046]
    [17.44737]
    print_and_log(('text.clip_selection: other end from mouse: %d,%d'):format(maxl,maxp))
  • edit in select.lua at line 21
    [18.878]
    [17.44785]
    print_and_log(('text.clip_selection: other end from cursor: %d,%d'):format(maxl,maxp))
  • edit in run.lua at line 51
    [20.179346]
    [20.179346]
    function print_and_log(s)
    print(s)
    log(3, s)
    end
  • replacement in edit.lua at line 226
    [4.4581][3.84:125]()
    --? print('press', State.cursor1.line)
    [4.4581]
    [4.15]
    print_and_log(('edit.mouse_press: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos))
  • edit in edit.lua at line 244
    [4.5449]
    [4.4792]
    print_and_log(('edit.mouse_press: in line %d').format(line_index))
  • replacement in edit.lua at line 252
    [4.7962][4.5068:5144]()
    --? print('selection', State.selection1.line, State.selection1.pos)
    [4.7962]
    [4.8026]
    print_and_log(('edit.mouse_press: selection now %d,%d').format(State.selection1.line, State.selection1.pos))
  • replacement in edit.lua at line 270
    [4.5338][3.126:169]()
    --? print('release', State.cursor1.line)
    [4.5338]
    [4.5339]
    print_and_log(('edit.mouse_release: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos))
  • edit in edit.lua at line 279
    [4.8804]
    [4.5479]
    print_and_log('edit.mouse_release: no current drawing')
  • replacement in edit.lua at line 283
    [4.165][4.8966:9005](),[4.258][4.8966:9005](),[4.5626][4.8966:9005](),[4.6573][4.8966:9005](),[4.22831][4.8966:9005](),[4.101439][4.8966:9005](),[4.8966][4.8966:9005]()
    --? print('reset selection')
    [4.258]
    [4.5627]
    print_and_log(('edit.mouse_release: in line %d').format(line_index))
  • replacement in edit.lua at line 288
    [4.9165][4.5764:5833]()
    --? print('cursor', State.cursor1.line, State.cursor1.pos)
    [4.9165]
    [4.5833]
    print_and_log(('edit.mouse_release: cursor now %d,%d').format(State.cursor1.line, State.cursor1.pos))
  • replacement in edit.lua at line 304
    [4.9624][4.6203:6276]()
    --? print('selection:', State.selection1.line, State.selection1.pos)
    [4.9624]
    [2.1864]
    print_and_log(('edit.mouse_release: finally selection %s,%s cursor %d,%d').format(tostring(State.selection1.line), tostring(State.selection1.pos), State.cursor1.line, State.cursor1.pos))