

                            SET's editor v@@v@@
                                  by SET

  That's the official distribution of SET's editor v@@v@@
  The editor is Copyrighted by Salvador Eduardo Tropea. (c) 1996-1999 and
distributed under the GPL license.
  The editor is free and you don't need to pay for it. Any kind of donations
are accepted ;-). One good way of cooperation is buying one of my djgpp CDs,
they have more than 400Mb of fresh djgpp stuff and costs less than the
Walnut Creek CD.

*Important* There are a beta of RHIDE (1.4.7) that includes the editor v0.4.17.
*Important* The editor is available for Linux!! is under test but works very
            well.
*Important* The help file is now called "setedit.inf" or "setedit.info.gz"
            and not "editor.*".

IMPORTANT:

  Like the old releases I'm testing new features and bug fixes, some of them
will be part of RHIDE so I need them tested.

  Changes in v@@v@@ (for more details read the change.log file):

New:
* Syntax highlight for Phyton. Contributed by David.
* Enhanced the syntax highlight support for .BTM files. Additions by Robin
Y. Millette.
* History to the "Goto line" dialog. Suggested by Fojtik Jaroslav.
* The name of the editor's help is setedit.* now and not editor.*.
* The "Set Global Options" is now available even if no editors are opened.
Is funny that I already designed all to support it (static class members) but
never implemented it until a couple of users pointed it as a bug.
* A key mapping for cmcSmartUnIndent, I lost it when I did the new keyboard
handling. Additionally I fixed some wrong explanations about this command
found in the docs. Reported by Endlisnis.
[DOS Only]:
* A micro FAQ for the DOS version.
* A key to stop the DOS version, that's Right Shift+Control+Delete.
That's just a test, don't know if that's definitive.
* Now you can enter a VESA mode in the "Screen Options" to use something like
132x60 (mode 0x10C). The fonts doesn't work (at least in my board). I added
it because Grzegorz Adam Hankiewicz asked about it.
[Linux Only]:
* Linux: Now the executable is called setedit and the installer creates a
symlink called e. That's more similar to DOS where I use e.bat.
* The installation is to /usr by default now. (Ivan).
* Now the docs are compressed with -9. (Ivan).
* Search for files in /usr and not only /usr/local tree. (Ivan).
* Debian packaging scripts in the sources.
* Compressed the program with UPX.

Fixed:
* Various memory leaks thanks to YAMD by Nate Eldredge.
* Bug when undoing an operation that involved a large insertion (random).
* When a file had 0 bytes it was reported as read error.
* When the editor failed to load a file it wasn't inserted in the
desktop but was inserted in the ALT+0 list producing a GPF/SIGSEGV when
asking for the list of windows. Reported by Dean Limbaugh (a Linux user).
* Now Optimal Fill doesn't use a tab when only one space can be used.
* Now if you save the undo behaves taking in count that the "unmodified" copy
is now the one on disk. Reported by Thiago F.G. Albuquerque.
* Now if no editor windows are opened the "Set Local Options" command is
disabled. This and previous were reported/suggested by: Robin Y. Millette
and Endlisnis.
* GetDefaultScreenSaver() was returning a pointer to a static string and
then in the Tool&Ops|Options|Editor General I was deleting this string. This
bug was reported by different persons under different situations: Joerg
Jungermann, Ivan Baldo and Adam Schrotenboer.
* A bug in Tool&Ops|HTML Accents, I forgot to reload the base pointer
of the buffer and it can be changed while inserting text.
* A bug that made the editor crash while loading desktop files older
than v0.4.20. Introduced by the 1999/02/07 12:55:02 change. From reports of
Robin Y. Millette, Luis Pistoia and Martijn Versteegh.
* The check for files modified after running an external program was wrong,
I don't know why I was checking the creation time instead of the modification
time. It also affected the Save with same time. I discovered it while
processing some code pages with Perl scripts from inside the editor (using
the run external program feature).
* Now if a syntax highlight indicates that the "escape" character is also a
symbol it isn't displayed in red. That's the case of Perl where the \ can be
used outside strings.
[DOS Only]:
* Character 0xD0 in "IBM PC 850" code page.
* Character 0xD8 in "IBM PC 852" code page.
* A problem with the manifest file, it contained distrib/ as prefix for all
the files and made impossible the uninstall making "rm @manifest/..."
Reported by Endlisnis.
* A bug that prevented the use of Linux desktop files under DOS. It was very
silly but is in all the older versions. The editor was saving a random
palette and when used in DOS the result was unpredictable (normally a black
palette). Now the Linux version saves the BIOS default palette.
[Linux Only]:
* The message about wrong installation now displays ok. (Ivan).
* ALT+F5 now waits for ENTER.
[Windows 9x only]
* Was not possible to load files with []=+, or ; from the open dialog even
when LFNs where available. The problem was in TV. Reported by Endlisnis.
* A problem when copying N*32 bytes to the W9x clipboard. I think that's a
bug in W9x, but perhaps crashing an application when you paste is a feature
that Microsoft added ;-)

  Changes in v0.4.23 (against v0.4.17)

New:
* A mode to see the tabs.
* A mode to "skip" the tabs when moving the cursor.
* Syntax help pressing Ctrl+F1 like in RHIDE but with different routines and
  a little bit more of functionallities.
* Syntax highlight for Perl. Contributed by Daniel Mizyrycki.
* Syntax highlight for 8x51. Contributed by Alex.
* Syntax highlight for Java. Contributed by Louis Santillan.
* Support for HP laser printers (contributions by Roger H. and Mariano
  Alvarez Fernandez).
* expression,x (,o ,d or ,b) in the calculator (by Laszlo).
* A primitive conditional support in the menu files to define menu options
  dependent of the OS. It means: no more DOS options under Linux ;-)
* More shortcuts and menu entries to make easier the use. (suggested by Brett
  Porter and Ivan Baldo).
* Save As DOS in the Linux version.
* A tool to convert accents to HTML tags (works with all the supported code
  pages).
* Added support for two variants of the ISO-1 code page to match the
  lat1-16.psf and lat1u-16.psf Linux fonts.
* Two screen savers: Inferno 1 and Smoker 1 (for DOS).
* Code page remapping under Linux.
* A mechanism to open more than one editor for the same file. The first
  opened is read/write the rest are read-only and shows an snapshot of the
  file at the time you opened it. Read-only editors can't be modified (at
  least I did my best to avoid it ;-) and can't be saved. The number of
  copies is 1 by default to emulate the old behavior, but can be modified
  from the general options menu.
* Command line option --project to load an specific project file.
  (Suggested by Brett Porter).
* Command line option --help to show the available options.
* Command line option --no-mouse-hook command line to avoid crashing NT.
* Command line option --use-rh-52-keys for the new keyboard mapping found in
  Red Hat 5.2.
* Abreviated command line options.
* Support for macros from the menu so you can add menu items for different
  type of compilations. (Suggested by Tomas Kouba).
* A new command cmcMouseToggle, that's specially designed for Linux, it just
  enable/disable the mouse, making that the user can switch between TVision
  behavior and default gpm behavior. So disabling the mouse and pressing the
  right button you can paste text from gpm or copy text from the screen to
  the gpm buffer; then pressing the same key sequence the mouse is controled
  by TVision again. Lamentably I didn't found any clipboard like routine in
  the gpm.info documentation. You must asign it to some key, I want
  suggestions from Linux users.
* Under Linux when holding Alt or AltGr the mouse control is left to GPM.
* sLisp command (WichEditor [n]). It just returns the name of the current
  editor. The parameter is currently limited to 0,1,2,3,4 and 5 see the docs.
  (Suggested by Tomas Kouba).
* A sLisp command to get the currently selected text. Suggested by Martijn
  Versteegh <versteegh@kvi.nl>.
* Now Find&Replace can be recorded in macros. Reported by Burton Radons
  <loth@gec.net>.
* More documentation and things fixed.
* Context sensitive help in the menu and dialogs.
* Internationalization support under Linux.
* Now the editor restores the file attributes after saving and follows
symlinks. The attributes of the backup are modified to be the same used for
the file. Examples: a hidden DOS file stills hidden after editing and the
backup is a hidden file, a 700 UNIX file will be saved as 700 and the backup
will be 700.
* Better support for Emacs' like mode and tab-width comments.
* Transparent support for GZip compressed files. You can edit them without
  uncompressing.
* An option to redraw the screen after running an external program.
* Progress indication while InfView searchs to avoid the "hanged" sensation.
* Better Alt+F7/F8 (jumps to next match not next line).
* The copyright for the editor is now clearly stated as GPL/LGPL.
* Try button in the colors menu to use as preview.
* Support for Windows clipboard in the help windows.
* An example of menu configuration called redmond.smn (guess what it does ;-)

Fixed:
* A bug in InfView that produced some hangs (introduced in 0.4.17).
* A small bug in the ISO-1 fonts (&reg; v.s. &copy;).
* TListViewer TVision's class to support code page remaping. That's used in
  the project window for example. Same for TMenuBox, TIndicator and
  TRadioButtons.
* The project window now supports code page remapping.
* Now the default screen saver in W95 isn't graphical to avoid hangs in
  systems with buggy video drivers. I hate breaking my code because bugs in
  the shit produced by big enterprises.
* An annoying 'flash' when selecting in a line under edition and the old
  selection was hided.
* Autoindent didn't take in count the first line of the file. (Reported by
  Brett Porter).
* The way the editor copy text to the Windows clipboard. Reported by
  Endlisnis ideas for solutions by Michael Mauch and Eli Zaretskii.
* Now using localtime instead of gmtime for the editor's clock. (Reported by
  Laszlo Molnar).
* InfView didn't take in count the last entry of the dir files created by
  Debian Linux. Reported by Daniel Mizyrycki.
* A problem in Save As UNIX that produced a crash if you pasted a big line.
  Reported by Brett Porter.
* Now the Linux version generates and uses the same desktop files that the
  DOS. The Linux version can load desktop files created with previous Linux
  versions but not with previous DOS versions.
* A problem in the keyboard assigment routines.
* The editor was saving the keybind.dat in the share directory instead of
  the home directory [Linux specific].
* Another bug in the keyboard assigment routines.
* A bug that produced crashes when trying to load files with paths greater
  than 132 characters. (thanks to Andris).
* A silly question like that: "The disk copy of  is newer, reload it?"
  triggered because the file didn't exist on disk (new file). RHIDE have
  the same stupid bug.
* When saving a new file (untitled) if the new name already existed and
  you answered NO to overwrite the name was set anyways. So exiting and
  entering again you get 2 copies of the same file. I saw it while patching
  other stuff.
* Under the same situation if you choosing as new name the name of the
  file already opened was posible, it created two copies of the same
  memory and unsynchronized. Now isn't allowed. The same bug exist in RHIDE.
* Now the parser that looks for "errors" reported by external programs is
  more strict about the line number, it must be :nnnn: or will be rejected.
  I did it because "ls -la drive:/file" generates a fake error pattern.
* (?) A couple of bugs in the undo related to the fact that the editor purges
  the extra spaces in the lines. (Reported by Alex).
* Key pad 4 not well mapped. Reported by Gili <sl@psycode.com>
* Fails in SDG if a project file was opened in the desktop.
* Fails in recorded macros, the recorded keystrokes failed randomly.
* Random SIGSEGVs when opening a " under Linux.
* Crashes when sLisp command had errors.
* Tip of the day not advancing is it was showed in the message window.
  Reported by Alex.
* The 9Xx34 video modes. The vertical display end was 480 instead of 476
  (14*34). Reported by Ivan Baldo <lubaldo@adinet.com.uy>.
* The editor now checks if SDG modified an opened file.
* Parsing of comments in macros.slp.
* Ctrl+RightArrow under Linux when editing a DOS file. Reported by Andris
  Pavenis <pavenis@lanet.lv>.
* SIGSEGVs when using incremental search in InfView under Linux.
* Some DOS specific options aren't showed under Linux. Reported by Ivan Baldo.
* An unitialized flag produced a black first character in new files (random).
* Error while repainting pair match HL. Reported by Endlisnis <s257m@unb.ca>.
* SIGSEGVs when using "Open Info" under Linux.
* A memory corruption in InfView when using locale messages. Patch by Robert.
* Recursive directory scans with symlinks under Linux.
* The message window is updated when only one line is informed.
* Now strings inside preprocessor lines are parsed by the syntax highlight.
  Reported by SpaZe/ST <stealth.tech@usa.net>.
* Fixed the "Compact text" option. Now it doesn't replaces tabs by spaces
  when only one space will be replaced. Reported by Andy <andygoth@juno.com>.
* "CPU memory hog" when looking the "user screen" (ALT+F5). Reported by
  Gili <sl@psycode.com>.

  I removed the stuff before v0.4.17 from this file, for this information
and more read the change.log.

Note: %DJDIR% == The content of the enviroment variable %DJDIR%, that's the
      place where you installed djgpp. You don't need to set this variable,
      setting DJGPP is enough.
      But you must add the SET_FILES variable to your autoexec.bat, look in
      INSTALL.



REQUIREMENTS:

* PC 386 compatible or superior computer.
* 2 Mb of memory or more.
* 1 Mb of free disk or more.
* DOS version 5.0 or posterior or any compatible OS (Win '95, Win 3.1, OS/2,
MS-DOS, etc.). The NT platform isn't supported, I don't have NT, if you
need support for NT send me a licensed copy of NT ;-) You can try using NT,
but "your mileage may vary".
* Linux with ELF support for the Linux version.
* A VGA card.
* Well ... if you have djgpp you have it.



INSTALL:


1) For DOS: Uncompress the file over your djgpp installation in the same
   way you did with the rest of packages. If you don't have djgpp do it in
   some directory.
   For Linux: uncompress the files in /tmp and run ./INSTALL_LINUX. If you
   want to setup the destination directory read the INSTALL_LINUX script.
   Also: the script contains usefull information about access rights needed
   to run the editor.
2) Optional but recommended:
Add the following to your autoexec.bat:

SET SET_FILES=c:/djgpp/share/setedit

Replacing c:/djgpp with the place where you installed djgpp.
If you don't have djgpp replace c:/djgpp by the name of the directory where
you uncompressed the editor.
In Linux the editor is installed in /usr/bin directory by default, then the
environment variable should be defined as (bash):

export SET_FILES="/usr/share/setedit"

Currently the editor tries to guess if you don't define it. The editor will
try with /usr/share/setedit and /usr/local/share/setedit, so if you installed
to one of these directories the variable is optional.


MORE INFO:

  From v0.4.0 the editor doesn't need external files to configure the
keyboard so forget about the old xxx.txt files used in RHIDE 1.4.
  You will need to customize the colors from Various|Options|Colors.
  To save the default colors and settings go to the %SET_FILES% directory,
start the editor and set all the options (colors and settings with Alt-G).
Just exit and the editor will save a file called tcedit.dst. Each time you
start the editor in a directory where there isn't any *.dst file the editor
will load this default.
  If you are annoyed with the back-up files and .dst files created by the
editor in all the places just exit with Alt+Q and the editor will delete
these files.


MP3: [Only in the DOS version]

  Currently the editor used a patched version of Allegro to play MP3 files.
I modified Allegro to mix the samples with 16 bits of resolution. If you
want to enable it create a file called allegro.cfg with the following
contents:

-------- cut here --------
[sound]
sb_freq = 45454
quality = 1
-------- cut here --------

  Put the file in the same directory where the editor is located.
  It will enable the 16 bits routines and mix with the maximun mixing
frequency.
  Enable it only if you are a fanatic because it will eat your CPU ;-).



EXAMPLE:

  To test the SDG tool you can uncompress the example.zip file in an empty
directory. Then call the editor with e and folloe these steps:

1) Select the menu Project|Open and type test and enter. You'll get a new
project.
2) Press Insert and select the three .cc files pressing enter in each one,
the press ESC. Now you have the project filled.
3) Select Various|Options|SDG Options, and take a look to the selected
options, if you have SET_FILES right all must be Ok, so just press ENTER.
4) Press F9. The message window will appear with some messages.
5) Open the file out.html, it was generated when you pressed F9 (look the
syntax highlight).

  Load the file with any web browser and look the results. If you like it
for your code read the sdg.inf file (from the editor, if you don't know how
press F1 and then Ctrl-H to learn more about the help system).



LEGAL ISSUE:

  The editor is free software.  It may be used or distributed in any manner
you wish, as long as you do not try to sell it.  You can't remove any
copyrigth included in the editor and you can't distribute it without any
of the original files.

  The editor comes with ABSOLUTELY NO WARRANTY; excluding any and all implied
warranties, including warranties of merchantability and fitness for a
particular purpose.  There is no warranty or representation, either express
or implied, with respect to this program, its quality, performance,
merchantability, or fitness for a particular purpose.  The entire risk
of using this program is with you.  There will be no liability for special,
incidental, or consequential damages arising out of or resulting from the use
or modification of this program.


KEYBOARD PREFERENCES

  The keyboard is fully configurable from the Tool&Ops|Options|Keyboard|Key
assignment menu option. But this configures the keys used only by the editor
windows. The menu keys are defined in a text file with the .smn extension.
The file loaded by the editor for this purpose is called menubind.smn. An
example of how you can alter it to change some stuff is provided and called
redmond.smn, I think you can guess what's the effect of this menu
configuration ;-).


KEYBOARD EXTENDER [DOS version only]

  In the contrib/setedit directory you'll find a small program called kextend
that's a very simple TSR (only needs 432 bytes of memory in my system) to
extend the BIOS functionallity.


DONATIONS:

  If you really like the editor and/or the SET's Documentation Generator
included on it you can send me anything as feedback.
  If you want to send money I'll be happy, but if you don't have it and
want to show your gratitude you can send me a postal card from your city
or some of the things I collect (train tickets, cigarette envelopes and
boxes, stamps, old money and coins).
  For more information about how to contact me press F1 in the editor, select
"Introduction" and then select "About the author".



THANKS TO:
  Molnar Laszlo: He reported almost all the fixed bugs and sugested a lot of
things that I added in the first releases of the 0.4.x serie.
  Alexander Bokovoy: For the information on the russian code pages.
  Marek Habersack & Martijn Versteegh: For sugestions about the mode that
doesn't create .dst files in all the dirs.
  Shawn Hargreaves: For Allegro, the best gaming library. I use the sound
engine from Allegro.
  Tomislav Uzelac: For AMP the MP3 engine.
  Ove Kaaven: For LibAmp, an adaptation of AMP to Allegro.
  The University of Cambridge: For the Perl Regular expressions package.
  The University of California, Berkeley and its contributors: after all I
used your malloc upto v0.4.23.

SET
