gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] cobol.el for emacs - for OpenCOBOL


From: Ulf Dambacher
Subject: Re: [open-cobol-list] cobol.el for emacs - for OpenCOBOL
Date: Sun, 15 Feb 2009 10:03:34 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

Bill Klein schrieb:
I would have sworn that I had read somewhere about a (relatively new)
"cobol.el" file for OpenCOBOL and emacs.  I have searched the OpenCOBOL
website and done google and can't find one.

I can find:

[...]

I found another one that says it supports ANSI'85 COBOL pointed to by
  http://www.emacswiki.org/emacs/CobolMode
and the cobol.el is at:
 http://www.emacswiki.org/cgi-bin/emacs/cobol-mode.el

but that doesn't include support for any of the OpenCOBOL features that
aren't in ANSI'85.

So my question is, is there an OpenCOBOL "cobol.el" anywhere?  If not, is
the one listed above the best around - or don't any of the people in this
list use "emacs" for COBOL editing?


I use the one from emacs-wicki because I could not find any better.

I modified it to have some more keywords. the patch enclosed so you can learn how to add what you're missing.

/Ulf
--- cobol-mode.el       2007-12-25 20:52:30.000000000 +0100
+++ /home/ulf/.emacs.d/cobol-mode.el    2009-02-07 22:14:00.000000000 +0100
@@ -208,6 +208,7 @@
      "DIVIDE"                "DIVIDE INTO"           "DIVIDE GIVING"
      "DIVIDE GIVING REMAINDER"                       "ENTER"
      "ENTER COBOL"           "EVALUATE"              "EXIT"
+     "GO"
      "GO TO"                 "IF"                    "INITIALIZE"
      "INSPECT"               "INSPECT TALLYING"      "INSPECT REPLACING"
      "INSPECT TALLYING REPLACING"                    "INSPECT CONVERTING"
@@ -222,7 +223,8 @@
      "SET DOWN"              "SORT"                  "START"
      "STARTBACKUP"           "STOP"                  "STRING"
      "SUBTRACT"              "SUBTRACT FROM"         "SUBTRACT GIVING"
-     "SUBTRACT CORRESPONDING"                        "UNLOCKFILE"
+     "SUBTRACT CORRESPONDING" "UNLOCK"
+     "UNLOCKFILE"
      "UNLOCKRECORD"          "UNSTRING"              "USE"
      "USE DEBUGGING"         "USE AFTER EXCEPTION"   "WRITE"
    )

reply via email to

[Prev in Thread] Current Thread [Next in Thread]