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

More fixes for Java.

Expand Messages
  • Jon Green
    Follows are some more fixes for the Java template. * Few keywords missing. * Java doc lines commencing with @ are not wrapped. Need to disable the fill
    Message 1 of 1 , Apr 27 6:05 AM
    • 0 Attachment
      Follows are some more fixes for the Java template.

      * Few keywords missing.
      * Java doc lines commencing with '@'
      are not wrapped. Need to disable
      the fill ignore modes for this
      character.

      Template fixes follow.

      Jon.

      cd C:/Program Files/JASSPA/MicroEmacs/macros/
      diff --context --minimal --ignore-space-change --report-identical-files --recursive "C:/microemacs/000414/macros/hkjava.emf" "C:/Program Files/JASSPA/MicroEmacs/macros/hkjava.emf"

      *** C:/microemacs/000414/macros/hkjava.emf Fri Jan 28 11:48:00 2000
      --- C:/Program Files/JASSPA/MicroEmacs/macros/hkjava.emf Thu Apr 27 13:57:58 2000
      ***************
      *** 10,16 ****
      ; High-light Java Mode
      ;
      0 hilight .hilight.java 2 50 $global-scheme
      - hilight .hilight.java 0x12 "import" .scheme.prepro
      hilight .hilight.java 2 "//" .scheme.comment
      hilight .hilight.java 20 "/\\*" "*/" "" .scheme.comment
      hilight .hilight.java 4 "\"" "\"" "\\" .scheme.string
      --- 10,15 ----
      ***************
      *** 19,24 ****
      --- 18,26 ----
      hilight .hilight.java 0 "'\\\\'" .scheme.error
      hilight .hilight.java 0 "'\\\\''" .scheme.quote
      ;
      + hilight .hilight.java 0x12 "import" .scheme.prepro
      + hilight .hilight.java 0x12 "package" .scheme.prepro
      + ;
      hilight .hilight.java 1 "break" .scheme.keyword
      hilight .hilight.java 1 "case" .scheme.keyword
      hilight .hilight.java 1 "continue" .scheme.keyword
      ***************
      *** 31,36 ****
      --- 33,42 ----
      hilight .hilight.java 1 "return" .scheme.keyword
      hilight .hilight.java 1 "switch" .scheme.keyword
      hilight .hilight.java 1 "while" .scheme.keyword
      + hilight .hilight.java 1 "throw" .scheme.keyword
      + hilight .hilight.java 1 "super" .scheme.keyword
      + hilight .hilight.java 1 "try" .scheme.keyword
      + hilight .hilight.java 1 "catch" .scheme.keyword
      ;
      hilight .hilight.java 1 "asm" .scheme.type
      hilight .hilight.java 1 "char" .scheme.type
      ***************
      *** 54,59 ****
      --- 60,66 ----
      hilight .hilight.java 1 "unsigned" .scheme.type
      hilight .hilight.java 1 "void" .scheme.type
      hilight .hilight.java 1 "volatile" .scheme.type
      + hilight .hilight.java 1 "throws" .scheme.type
      ; Add some system types
      hilight .hilight.java 1 "FILE" .scheme.type
      ; Pre-processor directives
      ***************
      *** 62,73 ****
      hilight .hilight.java 0 "__LINE__" .scheme.prepro
      hilight .hilight.java 0 "__STDC__" .scheme.prepro
      hilight .hilight.java 0 "__TIME__" .scheme.prepro
      hilight .hilight.java 1 "String" .scheme.prepro
      hilight .hilight.java 1 "Color" .scheme.prepro
      hilight .hilight.java 1 "Object" .scheme.prepro
      hilight .hilight.java 1 "delete" .scheme.keyword
      hilight .hilight.java 1 "new" .scheme.keyword
      ! hilight .hilight.java 1 "this" .scheme.keyword
      hilight .hilight.java 1 "auto" .scheme.type
      hilight .hilight.java 1 "class" .scheme.type
      hilight .hilight.java 1 "friend" .scheme.type
      --- 69,87 ----
      hilight .hilight.java 0 "__LINE__" .scheme.prepro
      hilight .hilight.java 0 "__STDC__" .scheme.prepro
      hilight .hilight.java 0 "__TIME__" .scheme.prepro
      +
      + hilight .hilight.java 1 "Character" .scheme.prepro
      + hilight .hilight.java 1 "Integer" .scheme.prepro
      hilight .hilight.java 1 "String" .scheme.prepro
      hilight .hilight.java 1 "Color" .scheme.prepro
      hilight .hilight.java 1 "Object" .scheme.prepro
      +
      hilight .hilight.java 1 "delete" .scheme.keyword
      hilight .hilight.java 1 "new" .scheme.keyword
      !
      ! hilight .hilight.java 1 "this" .scheme.variable
      ! hilight .hilight.java 1 "null" .scheme.variable
      !
      hilight .hilight.java 1 "auto" .scheme.type
      hilight .hilight.java 1 "class" .scheme.type
      hilight .hilight.java 1 "friend" .scheme.type
      ***************
      *** 89,94 ****
      --- 103,124 ----
      ;
      set-variable $c-contcomm " * "

      + ; Begin hook - entering the buffer - save the current fill-ignore characters
      + define-macro bhook-java
      + set-variable :ofill-ignore $fill-ignore
      + !if &exi :fill-ignore
      + set-variable $fill-ignore :fill-ignore
      + !endif
      + !emacro
      +
      + ; End hook - leaving the buffer - restore the fill-ignore characters
      + define-macro ehook-java
      + set-variable :fill-ignore $fill-ignore
      + !if &exi :ofill-ignore
      + set-variable $fill-ignore :ofill-ignore
      + !endif
      + !emacro
      +
      define-macro fhook-java
      ; if arg is 0 this is a new file so add template
      !if ¬ @#
      ***************
      *** 101,106 ****
      --- 131,144 ----
      !if &band .hilight.flags 0x02
      set-variable $buffer-hilight .hilight.java
      !endif
      + ; Fix up the $fill-mode so that we wrap java
      + ; doc parameters. Do this by removing the "@"
      + ; from the $fill-ignore variable.
      + set-variable #l0 &sin "@" $fill-ignore
      + !if #l0
      + set-variable :fill-ignore &cat &lef $fill-ignore &sub #l0 1 &rig $fill-ignore #l0
      + !endif
      +
      buffer-bind-key c-start-comment "esc C-c"
      buffer-bind-unbound-key c-comment-line "C-c C-c"
      buffer-bind-unbound-key c-uncomment-line "C-c C-d"
      [EXIT]
    Your message has been successfully submitted and would be delivered to recipients shortly.