{
    "content": [
        {
            "type": "text",
            "text": "# jed-script(1) (man)\n\n**Summary:** Jed - programmers editor\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 3 subsections\n  - jed --version (1 lines)\n  - jed-script --version (1 lines)\n  - xjed --version (4 lines)\n- **DESCRIPTION** (1 lines) — 1 subsections\n  - Jed - programmers editor (8 lines)\n- **OPTIONS** (1 lines) — 3 subsections\n  - major options (14 lines)\n  - minor options (24 lines)\n  - X options (21 lines)\n- **CONFIGURATION** (33 lines)\n- **RUN TIME** (117 lines)\n- **FILES** (12 lines)\n- **AUTHOR** (8 lines)\n\n## Full Content\n\n### NAME\n\nJed - programmers editor\n\n### SYNOPSIS\n\n#### jed --version\n\n#### jed-script --version\n\n#### xjed --version\n\njed [--secure] [--batch|--script|--help] [options] file ...\njed-script [--secure] script file [script options] ...\nxjed [--secure] [X options] [--batch|--script|--help] [options] file ...\n\n### DESCRIPTION\n\n#### Jed - programmers editor\n\nFeatures:\n\nColor syntax highlighting.  Emulation of Emacs, EDT, Wordstar, and Brief editors.  Extensible\nin a language resembling C. Completely customizable.  Editing TeX files  with  AUC-TeX  style\nediting (BiBTeX support too).  Folding support, and much more...\n\nFor complete documentation, see GNU info files, this manual only provides brief tutorial.\n\n### OPTIONS\n\n#### major options\n\n--version\nprints the version and compiletime variables.\n--help\nprints usage information.\n--secure\nruns  Jed  in  secure  mode, e.g. you can't run any external commands with system() or\nrunshellcmd().\n--batch\nrun Jed in batch mode.  This is a non-interactive mode.\n--script\nthis is a mode like --batch but jed does not eval the startup files. It  behaves  like\nslsh.   You  must  give the file that should be evaluated as second argument. It's the\nsame as calling jed-script.\n\n#### minor options\n\n-n\ndo not load .jedrc file.\n-a 'file'\nload file as user configuration file instead of .jedrc.\n-e\nSet emulation mode. The default in Debian is 'emacs'. Other valid  options  are  'vi',\n'cua', 'ide'.\n+ 'n'\ngoto line n in buffer (notice that in order to this option to take effect, if must ap‐\npear before the file name in the command line, like 'jed +3 file')\n-g 'n'\ngoto line n in buffer (notice that in order to this option to take effect, if must ap‐\npear after the file name in the command line, like 'jed file -g 3')\n-l 'file'\nload file as S-Lang code.\n-f 'function'\nexecute S-Lang function named function\n-s 'string'\nsearch forward for string\n-2\nsplit window\n-i 'file'\ninsert file into current buffer.\n\n#### X options\n\nxjed accepts the common options like -display, -name, -fn and -geometry.  Additionally it ac‐\ncepts\n\n-facesize SIZE, -fs SIZE\nif build with XRENDERFONT support, selects the font size SIZE.  Use it with the option\n-fn to select a scalable font.\n-foreground COLOR, -fg COLOR\nsets the foreground color.\n-background COLOR, -bg COLOR\nsets the background color.\n-fgMouse COLOR, -mfg COLOR\nsets the foreground color of the mouse pointer.\n-bgMouse COLOR, -mbg COLOR\nsets the background color of the mouse pointer.\n-Iconic, -ic\nstart iconified.\n-title NAME\nsets the window title to NAME.\n\nFor more options look at xterm.c.\n\n### CONFIGURATION\n\nEmulating Other Editors\n\nJED's ability to create new functions using the S-Lang programming language as well as allow‐\ning the user to choose key bindings, makes the emulation  of  other  editors  possible.  Cur‐\nrently, JED provides reasonable emulation of the Emacs, EDT, and Wordstar editors.\n\nEmacs Emulation\n\nEmacs Emulation is provided by the S-Lang code in emacs.sl.  The basic functionality of Emacs\nis emulated; most Emacs users should have no problem with JED.  To enable Emacs emulation  in\nJED, make sure that the line:\n\n() = evalfile (\"emacs\");\n\nis  in  your jed.rc (.jedrc) startup file.  JED is distributed with this line already present\nin the default jed.rc file.\n\nEDT Emulation\n\nFor EDT emulation, edt.sl must be loaded.  This is accomplished by ensuring that the line:\n\n() = evalfile (\"edt\");\n\nis in present in the jed.rc (.jedrc) Startup File.\n\nWordstar Emulation\n\nwordstar.sl contains the S-Lang code for JED's Wordstar emulation. Adding the line\n\n() = evalfile (\"wordstar\");\n\nto your jed.rc (.jedrc) startup file will enable JED's Wordstar emulation.\n\n### RUN TIME\n\nStatus line and Windows\n\nJED supports multiple windows.  Each window may contain the same buffer or different buffers.\nA  status line is displayed immediately below each window.  The status line contains informa‐\ntion such as the JED version number, the buffer name, mode, etc.  Please beware of  the  fol‐\nlowing indicators:\n\n\nbuffer has been modified since last save.\n%%\nbuffer is read only.\nm\nMark set indicator.  This means a region is being defined.\nd\nFile changed on disk indicator.  This indicates that the file associated with the buf‐\nfer is newer than the buffer itself.\ns\nspot pushed indicator.\n+\nUndo is enabled for the buffer.\n[Narrow]\nBuffer is narrowed to a region of LINES.\n[Macro]\nA macro is being defined.\n\nMini-Buffer.\n\nThe Mini-Buffer consists of a single line located at the bottom of the screen.  Much  of  the\ndialog between the user and JED takes place in this buffer.  For example, when you search for\na string, JED will prompt you for the string in the Mini-Buffer.\n\nThe Mini-Buffer also provides a direct link to the S-Lang interpreter.  To access the  inter‐\npreter,  press  Ctrl-X  Esc and the S-Lang> prompt will appear in the Mini-Buffer.  Enter any\nvalid S-Lang expression for evaluation by the interpreter.\n\nIt is possible to recall data previously entered into the Mini-Buffer by  using  the  up  and\ndown arrow keys.  This makes it possible to use and edit previous expressions in a convenient\nand efficient manner.\n\nBasic Editing\n\nEditing with JED is pretty easy - most keys simply insert themselves.   Movement  around  the\nbuffer  is  usually  done  using  the arrow keys or page up and page down keys.  If edt.sl is\nloaded, the keypads on VTxxx terminals function as  well.   Here,  only  the  highlights  are\ntouched  upon  (cut/paste operations are not considered `highlights').  In the following, any\ncharacter prefixed by the ^ character denotes a Control character. On  keyboards  without  an\nexplicit Escape key, Ctrl-[ will most likely generate and Escape character.\n\nA  prefix  argument to a command may be generated by first hitting the Esc key, then entering\nthe number followed by pressing the desired key.  Normally, the prefix argument is used  sim‐\nply for repetition.  For example, to move to the right 40 characters, one would press Esc 4 0\nfollowed immediately by the right arrow key.  This illustrates the use of the repeat argument\nfor  repetition.   However, the prefix argument may be used in other ways as well.  For exam‐\nple, to begin defining a region, one would press the Ctrl-@ key.  This sets the mark and  be‐\ngins  highlighting.   Pressing  the  Ctrl-@  key with a prefix argument will abort the act of\ndefining the region and to pop the mark.\n\nThe following list of useful keybindings assumes that emacs.sl has been loaded.\n\nCtrl-L\nRedraw screen.\nCtrl-\nUndo  (Control-underscore, also Ctrl-X u').\nEsc q\nReformat paragraph (wrap mode).  Used with a prefix argument. will justify  the  para‐\ngraph as well.\nEsc n\nnarrow  paragraph (wrap mode).  Used with a prefix argument will justify the paragraph\nas well.\nEsc ;\nMake Language comment (Fortran and C)\nEsc \\\nTrim whitespace around point\nEsc !\nExecute shell command\nEsc $\nIspell word\nCtrl-X ?\nShow line/column information.\n`\nquotedinsert --- insert next char as is (backquote key)\nEsc s\nCenter line.\nEsc u\nUpcase word.\nEsc d\nDowncase word.\nEsc c\nCapitalize word.\nEsc x\nGet M-x minibuffer prompt with command completion\nCtrl-X Ctrl-B\npop up a list of buffers\nCtrl-X Ctrl-C\nexit JED\nCtrl-X 0\nDelete Current Window\nCtrl-X 1\nOne Window.\nCtrl-X 2\nSplit Window.\nCtrl-X o\nOther window.\nCtrl-X b\nswitch to buffer\nCtrl-X k\nkill buffer\nCtrl-X s\nsave some buffers\nCtrl-X Esc\nGet \"S-Lang>\" prompt for interface to the S-Lang interpreter.\nEsc .\nFind tag\nCtrl-@\nSet Mark (Begin defining a region).  Used with a prefix argument  aborts  the  act  of\ndefining the region and pops the Mark.\n\n### FILES\n\nJEDROOT/lib/*.sl\nthese  are the default runtime jed slang files (packages like jed-extra can define ad‐\nditional slang library directories)\nJEDROOT/lib/site.sl\nThis is the default startup file.\n/etc/jed.d/*.sl\nThe system wide configuration files (this is a special Debian feature).\n~/.jedrc\nPer user configuration file, or\n~/.jed/jed.rc\nper user configuration file if the JedHomeDirectory ~/.jed/ exists.\n\n### AUTHOR\n\nJohn E. Davis <jed@jedsoft.org>\nJed's Author\n\n--- This document was translated to nroff by \"Boris D. Beletsky\" <borik@isracom.co.il>\n\n\n\nDebian                                        OCT 1996                                        JED(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "jed-script",
        "section": "1",
        "mode": "man",
        "summary": "Jed - programmers editor",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "jed --version",
                        "lines": 1
                    },
                    {
                        "name": "jed-script --version",
                        "lines": 1
                    },
                    {
                        "name": "xjed --version",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Jed - programmers editor",
                        "lines": 8
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "major options",
                        "lines": 14
                    },
                    {
                        "name": "minor options",
                        "lines": 24
                    },
                    {
                        "name": "X options",
                        "lines": 21
                    }
                ]
            },
            {
                "name": "CONFIGURATION",
                "lines": 33,
                "subsections": []
            },
            {
                "name": "RUN TIME",
                "lines": 117,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 8,
                "subsections": []
            }
        ]
    }
}