README 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. RPL-TOOLS
  2. =========
  3. Useful Emacs tools for working with RPL source code, the native
  4. language of HP48/49/50-series calculators.
  5. In its present state really only provides `sysrpl-mode' for editing
  6. SysRPL source files. This mode implements syntax highlighting and
  7. documentation lookup, using data extracted from Carsten Dominik's
  8. ``entries.db'' system RPL entries database[1].
  9. To install rpl-tools, clone the Mercurial repository to somewhere in
  10. your Emacs `load-path' with
  11. hg clone http://bitbucket.org/pdo/rpl-tools
  12. then add the following to your ~/.emacs file
  13. (require 'rpl-tools)
  14. (add-to-list 'sysrpl-mode-hook 'eldoc-mode)
  15. where the latter command activates the minor eldoc-mode in
  16. sysrpl-mode. This causes a stack-effect diagram to be displayed in
  17. the minibuffer whenever the cursor is on a SysRPL word.
  18. More info can be displayed with the `sysrpl-apropos-thing-at-point'
  19. command, bound to C-c C-a by default, which pops up another window
  20. with any extra information available for the supplied word (by default
  21. the one under the cursor).
  22. Note: sysrpl-mode is not bound to any particular file extension by
  23. default, so to enable it for any particular buffer you will have to
  24. issue the command
  25. M-x sysrpl-mode
  26. to place the current buffer into sysrpl-mode. Alternatively you can
  27. use the standard Emacs file local variable feature to embed the mode
  28. name into the first line of a file. See the included example in
  29. examples/timedone.s for details.
  30. Also, be aware that this code was written with Gnu Emacs 24.3 so I may
  31. have used features not found in earlier versions. If you see strange
  32. errors when you try to use it, check your Emacs version with
  33. M-x emacs-version
  34. and be prepared to upgrade your Emacs if necessary.
  35. REFERENCES
  36. ==========
  37. [1] Carsten Dominik's SysRPL entries database
  38. http://staff.science.uva.nl/~dominik/hpcalc/entries/index.html
  39. --
  40. Paul Onions
  41. 3 May 2015
  42. paul.onions@acm.org