Loading ...
Sorry, an error occurred while loading the content.

22[jasspa] Super Delete Fix

Expand Messages
  • Jon Green
    Jul 31, 1999
    • 0 Attachment
      Somebody posted a question that the example macro
      super-delete did not function correctly. This had been
      fixed a while ago but one of the documentation pages
      carried the old version of the macro (see
      CurrentBufferVariables(4)). The correct version is:-

      ;
      ;--- Macro to delete the whitespace, or if on a word all of the
      ; word until the next word is reached.
      define-macro super-delete
      !while ¬ &sin @wc " \t\n"
      forward-delete-char
      !done
      !repeat
      forward-delete-char
      !until &or &seq @wc "" ¬ &sin @wc " \t\n"
      !return
      !emacro

      I typically bind this to "C-delete"

      global-bind-key super-delete "C-delete"

      Problem being that a deletion from the end of the buffer
      locked up. Sorry !!

      Regards
      Jon.