Skip to content
  • Stefan's avatar
    Various fixes and cleanups · 971d6cfe
    Stefan authored and Jay Kamat's avatar Jay Kamat committed
    - Don't require `subr-x` at run-time, since it's designed to be unneeded.
    - accept non-ASCII alphabetic letters
    - drop unused `mode` field in rmsbolt-lang struct
    - replace `starter-file-name` field with a `rmsbolt-starter-files` var.
      I think this should be changed further and basically auto-generated
      from the contents of the `starters` subdir.  But in any case this is
      not needed for "normal" operation and getting rid of it removes the
      need for rmsbolt-languages.
    - Introduce buffer-local rmsbolt-language-descriptor to replace
      rmsbolt-languages: the idea is that rmsbolt should (in the long run)
      only provide the infrastructure and then each major mode would set
      rmsbolt-language-descriptor as appropriate.  Just as we do for
      font-lock, imenu, outline-minor-mode, etc...
      There's a FIXME in there, because it's not really satisfactory yet.
    - rmsbolt--get-lang remove `language` argument since it's not used any
      more.  Also `major-mode` is now only used for backward compatibility
      with rmsbolt-languages (using `major-mode` is almost always a bad
      idea, since it interacts poorly with derived-modes).
    - Initialize rmsbolt-mode-map in the traditional way.
    - Make rmsbolt-starter interactive (with completion for the various
      available starter files) and make it replace the various
      rmsbolt-<lang> commands.
    - Remove `rmsbolt-defstarter` and calls to it.
    - Change two weird `unless` which I think should be `when` in rmsbolt-mode.
    971d6cfe