./editors/joe, Joes own editor

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 4.6, Package name: joe-4.6, Maintainer: adam

JOE is the professional freeware ASCII text screen editor for UNIX.
It makes full use of the power and versatility of UNIX, but lacks the steep
learning curve and basic nonsense you have to deal with in every other UNIX
editor. JOE has the feel of most IBM PC text editors: The key-sequences are
reminiscent of WordStar and Turbo-C. JOE is much more powerful than those
editors, however. JOE has all of the features a UNIX user should expect:
full use of termcap/terminfo, excellent screen update optimizations (JOE is
fully useable at 2400 baud), simple installation, and all of the
UNIX-integration features of VI.

Required to build:

Master sites:

SHA1: da7712333f676cfb5ae9f3565fd2225c5a2185ca
RMD160: cd5a8eff82b7e8043f1a5fdbc875ec37b4de5f5a
Filesize: 1850.631 KB

Version history: (Expand)

CVS history: (Expand)

   2020-01-26 06:26:29 by Roland Illig | Files touched by this commit (189)
Log message:
all: migrate some SourceForge homepage URLs back from https to http

https://mail-index.netbsd.org/pkgsrc-ch … 05146.html

In the above commit, the homepage URLs were migrated from http to https,
assuming that SourceForge would use the same host names for both http and
https connections. This assumption was wrong. Their documentation at
https://sourceforge.net/p/forge/documen … %20VHOSTs/ states
that the https URLs use the domain sourceforge.io instead.

To make the homepages from the above commit reachable again, pkglint has
been extended to check for reachable homepages. This check is only
enabled when the --network command line option is given.

Each of the homepages that referred to https://$project.sourceforge.net
before was migrated to https://$project.sourceforge.io (27), and if that
was not reachable, to the fallback URL http://$project.sourceforge.net
   2020-01-19 00:36:14 by Roland Illig | Files touched by this commit (3046)
Log message:
all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
   2018-05-08 10:31:29 by Wen Heping | Files touched by this commit (3) | Package updated
Log message:
Update to 4.6

Upstream changes:
JOE 4.6

Upgrade to Unicode 10.0.0. Add configure environment variable that allows you \ 
select Unicode 8.0.0, 9.0.0 or 10.0.0.

Install Gnome .desktop files for JOE. This allows you to use JOE in GUI \ 
"Open With" mouse actions.

Support strikeout and double-underline attributes for the few terminal emulators \ 
that support them. Use "stricken" and "dunderline" in the \ 
syntax files, or \s and \z in help screens and status line.

Bugs fixed

Fix bug where JOE would sometimes crash when editing shell scripts. This was due \ 
to an obscure bug in the syntax highlighter: 'reset' command (used for default \ 
state) was incorrectly messing with stack.

-highlighter_context was missing from many file types, which negated some \ 
improvements from the previous version.

Fixed signed char overflow with old style mouse events in large windows

Fix bug where path restart (//) was being applied to block filter command \ 
prompt. Strange things would happen if you had adjacent slashes in command \ 

Allow ~ expansion but suppress path restart (//) in compiler error parsing.

Restore default handling of SIGPIPE and SIGINT for shell commands. This fixes an \ 
issue where SIGPIPE doesn't terminate a process as expected, for example by the \ 
head -n 10 in: ^K R !sh -c 'while :; do echo y; done' | head -n 10. This issue \ 
only occurred in read/write to !, JOE already did the right thing for shell \ 
windows and the filter region through shell command.

Improve screen update algorithm so that spaces at the ends of lines are always \ 
emitted. This allows them to be preserved when cutting text with the mouse from \ 
a terminal emulator window.

Improve efficiency of screen update algorithm: JOE had been resetting attributes \ 
such as background color before performing cursor motions (probably as work \ 
around for bugs in old terminal emulators). This made screen update slow when \ 
there were many attributes, as with syntax highlighting and color schemes. It \ 
was also repeatedly emitting ESC [ K.

Switch JOE to issue scrolling commands, even at high baud rates (before this, \ 
JOE issued scrolling commands only at 19200 and below because it used to be that \ 
simple screen refresh was faster than scrolling in terminal emulators. But this \ 
is no longer true with complex screens involving color schemes, unicode and \ 

Windows version

Fix file access checks. Inaccessible files due to ACL's weren't correctly \ 
detected. This was a regression in 4.5.

Check the correct (Windows) path in the home directory for color schemes. This \ 
was not re-implemented properly in 4.5.

JOE 4.5


New color scheme feature, which can be accessed with ^T S or by setting the \ 
-colors option.

24-bit color support can be enabled by setting the COLORTERM environment \ 
variable to truecolor or 24bit.

Several schemes included in-the-box:

gruvbox by Pavel Pertsev

ir_black by Todd Werth

molokai by Tomas Restrepo

solarized by Ethan Schoonover

wombat by Lars H. Nielsen

xoria by Dmitriy Y. Zotikov

zenburn by Jani Nurminen

The current line can be highlighted by pressing ^T U or by enabling the -hiline \ 

The gutter containing line numbers has a dynamic size based on the length of the \ 
file, rather than a fixed size of 10.

Updated all language syntax files to use comment_todo and string/comment \ 
contexts where appropriate.

Now pass character which invoked a macro to each macro step and call. If a macro \ 
step happens to be the 'type' command, the character which invoked the macro \ 
will be typed in. For example, this macro will type three 'X's. Before this \ 
change you got three NULs.

type,type,type X

Bugs fixed

Fix exsave: (^K ^X) should close file when a block is present in the window, and \ 
the file is unmodified (regression from ^C change in 4.2).

Fix regex assertions: they were not working because the character before the \ 
search position was not being loaded.

For jmacs: ^Q^J now again inserts \n in the string replace prompt. This broke \ 
beginning with JOE 4.0.

Don't try to open files for writing to check file access. This behaves better on \ 
unionfs mounts.

Fix stray blocks created after find/replace.

Windows version

Fix inability to set indent step to 1 from menu.

Add support for math functions, fix engineering display.

Fix backslash escapes in find/replace.

Support italicized text.

JOE 4.4

Bugs fixed

Fix segfault due to buffer overrun. This happens if a line with many backslashes \ 
appears in the status line context display.

Fix jmacs: ^X ^F and ^X ^B were not working

Build fixes for Solaris

Improve php highlighter: allow numbers in substitution variable names

Unicode tweak: treat private use characters (Co) as printable

Dockerfile highlighter: Add Docker new commands from 1.12, mark bad strings in arrays

Fix loading external charmaps

Windows version

Fix crashing bug when using incremental search
JOE for Windows 4.3

Bugs fixed

Fixed a missed merge that prevented some options menu items from being changed \ 
(tab width, tab char, etc).

Fixed bugs updating the title bar.

Minor memory leak/performance fix in subprocess communication.

(from newer version) Fix segfault due to buffer overrun. This happens if you a \ 
line with many backslashes appears in the status line context display.

JOE 4.3

Improve memory usage by shrinking buffer header size and highlighter state size.

Improve performance of status line context display (which shows the first line \ 
of the function that the cursor is currently in). This feature was making JOE \ 
very slow on extremely large files with auto indent enabled (typically JSON or \ 
XML data files). Now the syntax highlighter computes the context display (using \ 
a new syntax named context.jsf).

Add a mode 'title' to enable or disable the status line context display \ 
(previously autoindent mode was overloaded to do this).

Disable syntax highlighting and context display in very large files

Force more appropriate modes when we enter hex dump display: enable overtype, \ 
disable autoindent, wordwrap, ansi, picture.

Handle middle mouse button in "joe -mouse" mode (before it did \ 
nothing). It's treated as paste (copy region to mouse) as expected. (patch from \ 
Petr Olsak).

Bugs fixed

Do not kill region highlighting during incremental search (patch from Petr Olsak).

Negative numbers were not being recognized in blocks

PgUp/PgDn would try to scroll menu if the window above is a menu (it should do \ 
this only for completion menus associated with prompts)

Use 'LC_ALL=C sed' to get JOE to compile in OS X.

Forward direction delimiter matching where the delimiters do not begin with \ 
special characters (for example in Verilog "begin" / "end") \ 
was not working.

Get mouse to work in menus: this broke in 4.1

Character classes with ranges were not working for UTF-8 (as in \[a-z])

Apply spec highlighting to .spec files

Gracefully handle short terminals: fix segfaults which occur when trying to \ 
shrink terminal while many windows are on the screen or while turning on help \ 
with a short terminal. Fix similar bugs involving the skiptop option. JOE now \ 
works even if the terminal height is only one line.

JOE 4.2
New or improved syntax files for the following languages:

Usability Enhancements

The top Google help searches for JOE include:

How do I save and exit? The startup copyright notice has been replaced with \ 
basic help for beginners: ^K Q to exit and ^K H for help.

How do I dismiss the region highlighting? The traditional way is to hit ^K B ^K \ 
K, but this is slightly non-obvious and has always been awkward. Now Ctrl-C will \ 
do it.

How do I close all files and exit? Now Ctrl-K Q does this. Previously ^K Q was \ 
the same as ^C: abort a single file.

Restyle the help screens:

Make it more obvious that there is more than one screen: put the help for help \ 
inline with the text instead of in the (seemingly invisible) header.

Mention Ctrl-Arrow region selection, status and goto matching delimiter commands \ 
on the first screen.

Remove time and "Ctrl-K H for help" message from status bar. Beginners \ 
often don't notice this help message, and it takes up valuable status bar space \ 
that power users want for the context display.

Add ^KH for help to search and replace prompts. Many JOE users do not know about \ 
this context sensitive help.

Provide aborthint and helphint options so that the ^C and ^K H hints can be \ 
customized depending on the rc file (so say ^G for abort in jmacs, for example).

Enable -noxon by default (disable ^S/^Q flow control). This allows us to bind ^Q \ 
to quote and ^S / ^R to incremental search.

Document ESC X (command prompt) in the help screens.

"joe --help" now prints all command line options.

Other Enhancements

Tags search now tries to find the tags file in parent directories if it does not \ 
exist in the current directory and if the TAGS environment variable was not set.

Built-in calculator can now print and accept numbers in binary, octal and \ 
engineering formats: dec 12_345 eng 12.345_0e3 bin 0b11_0000_0011_1001 oct \ 
0o3_0071 hex 0x3039

Built-in calculator now prints and accepts separating underscores for clarity. \ 
For example, 4_294_967_296 instead of 4294967296.

Enhanced calculator statistics functions:

dev computes standard deviation with full population
samp computes standard deviation with sample of population
Linear regression analysis. Select a region of x and y values, then:
lr(x) provide estimate of y given x
rlr(y) provide estimate of x given y
Lr, lR, LR: log, exponential, power regression
Calculator region functions now assume the entire buffer if no region is set.

Tab completion now works at the calculator prompt (and in all prompts which \ 
allow numeric input, such as ^KL- go to line).

Make new regex engine (from JOE 4.1) more compatible with the classic engine. \y \ 
is now shorthand for \(\.\*\), so that it does what \* did in the old engine. \ 

\. no longer matches newline.
\* matches shortest match, not longest match.
Add -left and -right options to control the amount scrolling when the cursor \ 
moves past the left or right edge of the screen. When the baud rate is low these \ 
are automatically set to a large amount. Also, these now control the manual \ 
horizontal scrolling commands. When these are positive, they indicate number of \ 
columns. When they are negative, they indicate a fraction of the screen width \ 
(-2 is 1/2 the width).

Bugs fixed

Fix use after free bug which shows up as a crash in OpenBSD

Fix bug where indent step value was not shown on ^T menu

Fix bug where setting margin doesn't work on big-endian systems

Fix issue where highest valued Unicode character equivalent was not translating \ 
to its corresponding 8-bit character. Effect of this was that Delete key was not \ 
working in shell windows in ASCII character set.

Standard deviation calculator function was not producing correct results.

Allow koi8r and koi8-r for KOI8-R in joe_getcodeset (which is only used if there \ 
is no setlocale).

Guess_crlf forced UNIX line endings for new files even though crlf was set. Now \ 
crlf is left alone if guess_crlf can not determine the line ending.

If cursor was at end of a long line and you switched to hex dump display mode, \ 
then hex dump was scrolled. Now scroll offset is reset when you switch to hex \ 
display mode.
   2015-11-04 18:41:21 by Alistair G. Crooks | Files touched by this commit (78)
Log message:
Remove duplicate SHA512 digests that crept in.
   2015-11-03 04:32:24 by Alistair G. Crooks | Files touched by this commit (138)
Log message:
Add SHA512 digests for distfiles for editors category

Problems found with existing distfiles:
No changes made to the javascript-mode or yEd distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-10-19 11:15:54 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
Changes 4.1:
* New or improved syntax files for the following languages:
        * Groovy, R, Clojure, Rust, Coffeescript, Java, Scala, Swift, D,
          AVR, Ruby, Perl
* New translations
        * Chinese (zh_TW)
* UTF-16 support
        * JOE can now edit UTF-16BE and UTF-16LE files.  It does this
          by converting them to UTF-8 during load and back to UTF-16 during
        * Within JOE, native byte order is called UTF-16 and reversed order
          is called UTF-16R.
        * If you change the encoding (with ^T E) between UTF-8, UTF-16 and UTF-16R,
          JOE will convert the file to the desired encoding on save.
* New regular expression engine
* Unicode improvements
* Code clean up
* Bugs fixed
* Minor enhancements
* jmacs fixes:
* ESC g (grep/find) and ESC c (compile) improvements
   2015-05-03 03:45:33 by Wen Heping | Files touched by this commit (6) | Package updated
Log message:
Update to 4.0

Upstream changes:
JOE 4.0
JOE now has pop-up shell windows with full terminal emulation and shell commands
that can control the editor. Hit F1 - F4 to bring up a shell window.
See Pop-up shell feature for a full description.
The status command (^K SPACE) can now be customized using the same syntax
as the status bar. Look for smsg and zmsg in joerc to see how to do this.
parserr (the error parser) will parse only the highlighted block if it's set. \ 
Before it always parsed the entire buffer.
Now there is a per-buffer concept of current directory. This was added to
make the pop-up shell windows work better, but it's useful in general.
At file prompts you can begin a new anchored path without having to delete
the old one. It means that ~jhallen/foo//etc/passwd is translated to /etc/passwd.
Prompt windows are now highighted to indicate which parts of the path are
being dropped. There is a syntax file for this: filename.jsf
The error parser now ignores ANSI sequences (some versions of grep
color their results, now JOE can still parse it).
Temporary messages are now dismissed by keyboard input only. Before, they
could also be dismissed by shell input.
Tags search now supports multiple matches. ^K ; can be configured to
either provide a menu of the matches or to cycle through them.
Tags search will now match on the member name part of member functions
('fred' will match 'myclass::fred').
Tags search will prepend the path to the tags file file name in the tags
file. This is important when JOE finds the tags file via the TAGS
environment variable.
Remove ` as quote character from incremental search.
Clean up documentation, convert much of it to Markdown.

JOE 3.8
Search JOE image for :include files referenced by the joerc file.
Include ftyperc file in the JOE image.
Change default indent from 2 to 4. Add quick menu to change to common
indent values: ^T = (1, 2, 4, or 8). Switch to + and - for definitively
setting or clearing options so that 0 and 1 can be use for quick select.
Added option to suppress DEADJOE file
Jump to matching delimiter (Ctrl-G) has been improved. It can now use the
syntax files to parse the document in order to identify strings and
comments which should be skipped during the matching delimiter search.
(patch by Charles Tabony).
When 'notite' mode is enabled, JOE now emits linefeeds to preserve the
screen contents in the terminal emulator's scrollback buffer. This can be
suppressed with a new flag: nolinefeeds.
JOE now starts up quiet (prints no extra messages when starting).
Messages are collected in a startup log (view with ESC x showlog).
There is a new flag 'noexmsg' which, when set, makes JOE quiet when it shuts
down (suppresses "File not changed so no update needed" message).
Use 80th column if terminal has xn capability (patch by pts and Egmont
Support italic text (on some terminal emulators) with "\l" (patch by
Egmont Koblinger)
Support bracketed paste (patch by Egmont Koblinger)
Fix line number in syntax highlighter error output
Prevent infinite loops caused by buggy syntax definitions.
New and improved syntax definitions for:
Ant: contributed by Christian Nicolai
Batch files: contributed by John Jordan
C#: contributed by John Jordan
Debian apt sources.list: contributed by Christian Nicolai
Elixir: contributed by Andrew Lisin
Erlang: contributed by Christian Nicolai, Jonas Rosling, Andrew Lisin
git-commit messages: contributed by Christian Nicolai
Go: contributed by Matthias S. Benkmann
HAML: contributed by Christian Nicolai
INI: contributed by Christian Nicolai
iptables: contributed by Christian Nicolai
Javascript: contributed by Rebecca Turner, Christian Nicolai
json: contributed by Rebecca Turner
Markdown: contributed by Christian Nicolai, Jonas Rosling
Powershell: contributed by Oskar Liljeblad
Prolog: contributed by Christian Nicolai
Puppet: contributed by Christian Nicolai, Eric Eisenhart
Sieve: contributed by Christian Nicolai
YAML: contributed by Christian Nicolai
(from github.com/cmur2/joe-syntax)
Syntax definition fixes for: C, Python, Java, Lua, sh, Ruby, PHP, TeX,
CSS, and XML
Save/restore utf-8 and crlf modes when changing in/out of hex edit for
better display
Fix autocomplete for paths containing spaces
Accept mouse events beyond column 208 (patch by Egmont Kobligner)
Adjust guess_indent behavior based on user feedback
Fix infinite loop in search and replace
Add a new command 'timer' which executes a macro every n seconds. I use
this for periodically injecting a command into a shell window for
overnight testing of some device.
Convert double to long long (if we have it) when printing hexadecimal.
Fix bug where undo was acting strangly in shell windows.
Fix crash when hitting -----------.. wordwrap bug.
Check for math functions
Use joerc if fancyjoerc not there.
fix segfault from -orphan
fix window size detection bug: can't take out types.h
from tty.c
update status line immediately on resize.
va_copy fix.
don't smartbackspace when smartbacks is off.
   2012-10-03 13:43:48 by Aleksej Saushev | Files touched by this commit (150)
Log message:
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.