[Snek] [keith-packard/snek] ce3a4e: snekde: Fix some open device command issues

Keith Packard noreply at github.com
Wed Feb 13 12:07:56 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: ce3a4e4a8c2e5b05aa9df99deecbd586ca3b59a1
      https://github.com/keith-packard/snek/commit/ce3a4e4a8c2e5b05aa9df99deecbd586ca3b59a1
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-13 (Wed, 13 Feb 2019)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Fix some open device command issues

Mark snek_device as global in open_device function to actually
reference the global.

Check to see if it has been set before deleting it

Repaint the screen to update the shown device name

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 785c2d380a0e27d48c327510beca28c8c9bc9dd9
      https://github.com/keith-packard/snek/commit/785c2d380a0e27d48c327510beca28c8c9bc9dd9
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-13 (Wed, 13 Feb 2019)

  Changed paths:
    M snek-code.c

  Log Message:
  -----------
  Re-order a few more op codes in snek-code to match enum order

These changes were missed in the previous change to make sure all
op-codes are implemented.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 31a39e7477b5618945693b7141bbcea56369e3f0
      https://github.com/keith-packard/snek/commit/31a39e7477b5618945693b7141bbcea56369e3f0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-13 (Wed, 13 Feb 2019)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Clean up code, add emacs bindings

Make sure all global variables are declared 'global' in functions
where they are used.

Create get_selection helper function to compute range of current
selection and use that everywhere.

Delete current selection in 'backspace' function

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 8a5ad7a9fdeb561ae547ca3161a8478d78bf1286
      https://github.com/keith-packard/snek/commit/8a5ad7a9fdeb561ae547ca3161a8478d78bf1286
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-02-13 (Wed, 13 Feb 2019)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Add undo to editor

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/b693975ba914...8a5ad7a9fdeb


More information about the Snek mailing list