Added preference to disable modifying selection on Undo.
[nedit.git] / README
blob3e38cb4a18adb75a8fc55398df45cb780219a1ef
1                     NEdit Version 5.3RC1,  March 2002
3 $Id: README,v 1.29 2002/06/08 13:56:49 tringali Exp $
4              
6 NEdit is a multi-purpose text editor for the X Window System, which combines a
7 standard, easy to use, graphical user interface with the thorough functionality
8 and stability required by users who edit text eight hours a day.  It provides
9 intensive support for development in a wide variety of languages, text
10 processors, and other tools, but at the same time can be used productively by
11 just about anyone who needs to edit text.
13 This program is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 PARTICULAR PURPOSE.
16 As of version 5.1, NEdit may be freely distributed under the terms of the GNU
17 General Public License (see the file COPYRIGHT which is also part of this
18 distribution).
20 NEdit sources, executables, additional documentation, and contributed software
21 are available from the NEdit web site at http://nedit.org.
24 AUTHORS
26 NEdit was written by Mark Edel, Joy Kyriakopulos, Christopher Conrad,
27 Jim Clark, Arnulfo Zepeda-Navratil, Suresh Ravoor, Tony Balinski, Max
28 Vohlken, Yunliang Yu, Donna Reid, Arne Førlie, Eddy De Greef, Steve
29 LoBasso, Alexander Mai, Scott Tringali, Thorsten Haude, and Steve Haehn.
31 The regular expression matching routines used in NEdit are adapted (with
32 permission) from original code written by Henry Spencer at the University of
33 Toronto.
35 Syntax highlighting patterns and smart indent macros were contributed
36 by: Simon T. MacDonald,  Maurice Leysens, Matt Majka, Alfred Smeenk,
37 Alain Fargues, Christopher Conrad, Scott Markinson, Konrad Bernloehr,
38 Ivan Herman, Patrice Venant, Christian Denat, Philippe Couton, Max Vohlken, 
39 Markus Schwarzenberg, Himanshu Gohel, Steven C. Kapp, Michael Turomsha, 
40 John Fieber, Chris Ross, Nathaniel Gray, Joachim Lous, Mike Duigou, 
41 Seak Teng-Fong, Joor Loohuis, Mark Jones, and Niek van den Berg.
44 VERSION 5.3
46 Version 5.3 is mainly a bug fix release but also offers some new features.
48 The most significant enhancements in this release are:
50  - A revamped Help system with hyperlinked cross-references.
51  - Enhanced support for Exuberant ctags.
52  - Goto Line also accepts Column numbers.
53  - Automatic line-feed termination when saving is now optional.
54  - A customizable window title.
55  - Optional syntax based parenthesis matching (iso. purely character based).
57 There are also several smaller improvements and bug fixes, see the
58 ReleaseNotes file for more details.
61 BUILDING NEDIT
63 Pre-built executables will be available for many operating systems, including
64 most major Unix and VMS systems. Check out the NEdit web page at
66   http://nedit.org
69 The requirements to build NEdit from the sources are: 
71  - ANSI C89 system (compiler, headers, libraries)
72  - make utility (eg, GNU make)
73  - X11R5 development stuff (headers, libraries), or newer
74  - Motif 1.2 or above (Motif 1.1 might work, but is no longer supported)
75    This GUI library is a standard part on most systems which have an
76    X11 installation. Most commercial Unix systems feature this, others may
77    require a separate installation. 
78    A "free" (LGPL'ed) alternative to Motif, called LessTif, is available.
79    See the LessTif section under PLATFORM SPECIFIC ISSUES for details.
81 Optionally one may use:
83  - yacc (or GNU bison)
86 The two directories called 'source' and 'util' contain the sources for NEdit.
87 'util' should be built first, followed by 'source'. The makefile in NEdit's
88 root directory can be used to build both in sequence if your system is one of
89 the supported machines and no modifications are necessary to the makefiles. To
90 build NEdit from the root directory, issue the command: 'make <machine-type>';
91 where <machine-type> is one of suffixes of a makefile in the directory
92 'makefiles'. For example, to build the Silicon Graphics version, type:
94         make sgi
96 If everything works properly, this will produce two executables called
97 'nedit' and 'nc' in the directory called 'source'.
100 The Source Directories
102 Since executables are already available for the supported systems, you are
103 probably not just rebuilding an existing configuration, and need to know more
104 about how the directories are organized.
106 The util directory builds a library file called libNUtil.a, which is later
107 linked with the code in the source directory to create the nedit executable.
109 The makefiles in both source directories consist of two parts, a machine
110 dependent part and a machine independent part. The machine dependent makefiles
111 can be found in the directory called 'makefiles', and contain machine specific
112 header information. They invoke a common machine independent part called
113 Makefile.common (which in turn includes also Makefile.dependencies).
114 To compile the files in either of these directories, copy or link one of the
115 system-specific makefiles from the directory 'makefiles' into the directory,
116 and issue the command:
118     make -f Makefile.<machine-type>
119     
120 (where <machine-type> is the makefile suffix).  Alternatively, you can
121 name the file 'Makefile' and simply type "make".
123 If no makefile exists for your system, you should start from Makefile.generic,
124 which is extensively commented. Contact the developer at develop@nedit.org for
125 help.
128 Building NEdit on VMS Systems
130 Command files are provided for compiling and linking files in the source
131 and util directories.  comutil.com compiles the files in the util directory
132 and produces two library files, vmsutils.olb and libutil.olb.  comnedit.com
133 compiles and links the files in the source directory to produce the nedit.exe
134 executable.
137 Additional Settings
139 Some C preprocessor macros may be used to en/disable certain parts
140 of the code. Usually this correponds to some non-important features
141 being selected or certain workarounds for platform-specifc problems.
142 Those which might be useful on more than one platform are documented
143 in makefiles/Makefile.generic.
145 Note that a special compilation flag, namely REPLACE_SCOPE, is currently
146 available. Its purpose is to allow the evaluation of two alternative
147 (but functionally equivalent) Replace/Find dialog box layouts. 
148 By default, NEdit is built with a Replace/Find dialog containing 2 rows
149 of push buttons. Compiling with the REPLACE_SCOPE flag enables an 
150 alternative layout with a row of radio buttons for selecting the scope of 
151 the replace operations. Eventually, one of these alternatives will
152 probably disappear, but up to now, the NEdit developers have not been able
153 to decide which one to drop. Please give them both a try and let us know 
154 which one you prefer (via the discuss mailing list, for instance).
157 INSTALLATION
159 NEdit consists of a single, stand-alone executable file which does not require
160 any special installation.  To install NEdit on Unix systems, simply put the
161 nedit executable in your path.  
162 On VMS systems, nedit must be defined as a foreign command so that it can
163 process command line arguments. For example, if nedit.exe were in the
164 directory mydir on the disk called mydev, adding the following line to your
165 login.com file would define the nedit command:
167         $ ned*it :== $mydev:[mydir]nedit.exe
169 To use NEdit in client/server mode, you also need the nedit client program, nc,
170 which, again, needs no special installation, except in the VMS case, as above.
171 On some systems, the name nc may conflict with an existing program.  In that
172 case, choose a different name for the executable and simply rename it.  The
173 recommend alternative is 'ncl'.
174 Don't forget to put the man-pages for nedit and nc into a place where your
175 man command is able to find them (e.g. /usr/man/man1/nedit.1)
178 RUNNING NEDIT
180 To run NEdit, simply type 'nedit', optionally followed by the name of a file
181 or files to edit. On-line help is available from the pulldown menu on the far
182 right of the menu bar. For more information on the syntax of the nedit command
183 line, look under the heading of "NEdit Command Line".
185 The recommended way to use NEdit, though, is in client/server mode, invoked by
186 the nc executable. It allows you to edit multiple files within the same
187 instance of NEdit (but still in multiple windows). This saves memory (only one
188 process keeps running), and enables additional functionality (such as find &
189 replace accross multiple windows). See "Server Mode and nc" in the help menu
190 for more information.
192 If you are accessing a host Unix system from a remote workstation or X
193 terminal, you need to set the Unix environment variable for your display:
194 csh:
195         % setenv DISPLAY devicename:0
196 sh, ksh, bash, zsh:
197         % export DISPLAY=devicename:0
199 where devicename is the network node name (hostname) of the workstation or X
200 terminal where you are typing.
201 On VMS systems, the equivalent command is:
203         $ set display/create/node=devicename
207 PLATFORM SPECIFIC ISSUES
209 Systems with LessTif, rather than Motif libraries
211 As of Lesstif 0.93.18, NEdit is very stable with Lesstif. 
212 You can get the latest LessTif version from http://www.lesstif.org.
213 If you are having trouble building or running NEdit with LessTif,
214 remember there are pre-compiled statically linked executables available
215 from our website.
216 Known bugs which might show off in NEdit linked with LessTif include:
218   1) Some dialogs which are intended to be modal (prevent other activity
219      while up) are not, and doing other actions while these dialogs are
220      up can cause trouble (.89.9+)
221      
222   2) Switching to continuous wrap mode, sometimes the horizontal scroll
223      remains partially drawn after the change, rather than disappearing
224      completely as it should. (.89.9+)
225   
226   3) Secondary selection operations are not yet supported in text fields.
228   4) Status bar is blank after usage of Incremental Search field
229      (0.93.18+-)
232 Linux Systems
234 The default key bindings for arrow keys in fvwm interfere with some of the
235 arrow key bindings in NEdit, particularly, Ctrl+Arrow and Alt+Arrow.  You
236 may want to re-bind them either in NEdit (see Customizing -> Key Binding
237 in the Help menu) or in fvwm in your .fvwmrc file.
239 Some older Linux distributions are missing the /usr/X11R6/lib/X11/XKeysymDB
240 file, which is necessary for running Motif programs.  When XKeysymDB is
241 missing, NEdit will spew screenfulls of messages about translation table syntax
242 errors, and many keys won't work.  You can obtain a copy of the XKeysymDB file
243 from the contrib sub-directory of the NEdit distribution directory.  
246 SGI Systems
248 Beginning with IRIX 6.3, SGI is distributing a customized version of NEdit
249 along with their operating system releases.  Their installation uses an
250 app-defaults file (/usr/lib/X11/app-defaults/NEdit) which overrides the
251 default settings in any new nedit version that you install, and may result in
252 missing accelerator keys or cosmetic appearance glitches.  If you are
253 re-installing NEdit for the entire system, just remove the existing app-
254 defaults file.  If you want to run a newer copy individually, get a copy of
255 the app-defaults file for this version the contrib sub-directory of the
256 distribution directory for this version on ftp.nedit.org (/pub/<version>/
257 contrib/nedit.app-defaults), and install it in your home directory or set
258 the environment variables XAPPLRESDIR or XUSERFILESEARCHPATH to point
259 to a directory and install it there.  In all cases, the file should be
260 named simply 'NEdit'.
262 No additional installation or resource settings are necessary on IRIX systems
263 before 6.3
266 HP-UX Systems
268 If you are using HPVUE and have trouble setting colors, for example part
269 of the menu bar stubornly remains at whatever HPVUE's default is, try setting:
271    nedit*useColorObj: False
273    
274 IBM AIX Systems
276 Due to an optimizer bug in IBM's C compiler, the file, textDisp.c, must be
277 compiled without optimization on some AIX systems.
280 Solaris (SunOS 5.3 and beyond) Systems
282 The nedit_solaris executable may require the environment variable OPENWINHOME
283 to be set to the directory where Open Windows is installed.  If this is not set
284 properly, NEdit will spew screenfulls of messages about translation table
285 syntax errors.
287 Solaris 2.4 -- Add -DDONT_HAVE_GLOB to the CFLAGS line in Makefile.solaris.
289 Solaris 2.5 -- Solaris 2.5 systems were shipped with a bad shared Motif
290 library, in which the file selection dialog (Open, Save, Save As, Include,
291 etc.) shows long path names in the file list, but no horizontal scroll bar,
292 and no way to read the actual file names.  Depending on your system, the
293 patch is one of ID# 103461-07, # 102226-19, or # 103186-21.  It affects all
294 Motif based programs which use the library.  If you can't patch your system,
295 you might want to just try the nedit_sunos executable (from ftp.nedit.org
296 /pub/<version>), which is statically linked with a good Motif.  You can also
297 set the X resource: nedit.stdOpenDialog to True, which at least gives you a
298 text field where you can enter file names by hand.
300 Solaris 2.6 -- If you're experiencing performance problems (windows come up
301 slowly), the patch for Sun's shared Motif library is ID# 105284-04.  Installing
302 the patch alone will improve nedit's performance dramatically.  The patch also
303 enables a resource, *XmMenuReduceGrabs. Setting this to True will eliminate the
304 delay completely.
306 SunOS 4.x Systems
308 On some SunOS systems, NEdit will also complain about translation table syntax
309 errors.  This happens when Motif can't access the keysym database, usually
310 located in the file /usr/lib/X11/XKeysymDB.  If this file exists on your
311 system, but NEdit fails to locate it properly, you can set the environment
312 variable XKEYSYMDB to point to the file.  If you can't find the file, or if
313 some of the errors persist despite setting XKEYSYMDB, there is a XKeysymDB
314 which you can use to update or replace your /usr/lib/X11/XKeysymDB file
315 available in the contrib sub-directory of the NEdit distribution directory.
316 If you don't want to change your existing XKeysymDB file, make a local copy
317 and set XKEYSYMDB to point to it.
319 If you find that some of the labeled keys on your keyboard are not properly
320 bound to the corresponding action in NEdit, try the following:
322   1) Get a copy of motifbind.sun (for Sun standard keyboards), or
323      motifbind.sun_at (for Sun PC style keyboards) from the NEdit contrib
324      directory on ftp.nedit.org:/pub/<version>/contrib.
325   2) Copy it to a file called .motifbind in your home directory.
326   3) Shutdown and restart your X server.
329 COMPATIBILITY WITH PREVIOUS VERSIONS
331 Existing .nedit Files
333 As of version 5.1, NEdit employs a built-in upgrade mechanism which will
334 automatically detects .nedit files of older versions. In general, NEdit
335 will try to convert and insert entries to match the latest version.
336 However, in certain cases where the user has customized the default entries,
337 NEdit will leave them untouched (except for possible syntactic conversions).
338 As a result, the latest syntax highlighting patterns for certain languages may
339 not get activated, for instance, if the user has customized the entries. The
340 latest default patterns can always be activated through the
341 Preferences->Syntax Highlighting->Recognition Patterns menu, though.
343 Next, some version specific upgrading issues are listed. Note that 
344 non-incremental upgrading (eg., from 5.0 to 5.2) is supported too.
346 * Upgrading from 5.2 to 5.3
348   There are no major changes in the format of the .nedit file for version
349   5.2. Users that have customized the X Resources syntax highlighting 
350   pattern may consider restoring the default patterns, as they resolve
351   a performance issue when editing the .nedit file itself, for instance.
352   
353 * Upgrading from 5.1 to 5.2
355   There are no major changes in the format of the .nedit file for version
356   5.2. NEdit will try to insert additional entries for the newly supported
357   language modes and syntax highlighting patterns (CSS, Regex, and XML) and
358   highlight styles (Pointer, Regex, Warning).
359   Moreover, the formerly boolean 'showMatching' option will silently be
360   converted to a tri-state value.
361   Users that have customized some of the syntax highlighting patterns may
362   consider restoring the default patterns, as many of them have been improved
363   considerably.
364   
365 * Upgrading from 5.0 to 5.1
366   
367   NEdit 5.1 makes significant changes to the syntax of regular expressions.
368   Mostly, these are upward compatible, but two changes; introducing the brace
369   operator, and changing the meaning of \0; are not. Brace characters must now
370   be escaped with backslash, and & must be used in place of \0 in
371   substitutions.
373   NEdit 5.1 employs a built-in upgrade mechanism which will automatically
374   detect pre-5.1 .nedit files and fix regular expressions which appear in
375   user-defined highlight patterns. The automatic upgrade mechanism, however,
376   can not fix regular expression problems within user-defined macros. If you
377   have a macro which is failing under NEdit 5.1, you will have to fix it by
378   hand.
379   
380 * Upgrading from pre-5.0
382   If you are upgrading from a pre-5.0 version of NEdit, there are significant
383   changes to the macro language, and you are best off simply editing out the
384   nedit.macroCommands section of your .nedit file, generating a new .nedit
385   file, and then re-introducing your user-written commands into the new file.
386   Most macros written for previous versions will function properly under the
387   new macro language. The most common problems with old macros is lack of a
388   terminating newline on the last line of the macro, and the addition of "<",
389   ">", and now "{" to the regular expression syntax. These characters must now
390   be escaped with \ (backslash). Also, if you have been using a font other
391   than the default for the text portion of your NEdit windows, be sure to
392   check the Preferences -> Default Settings -> Text Font dialog, and select
393   highlighting fonts which match your primary font in size. Matching in height
394   is desirable, but not essential, and sometimes impossible to achive on some
395   systems. When fonts don't match in height, turning on syntax highlighting
396   will cause the window size to change slightly. NEdit can handle unmatched
397   font sizes (width), but leaving them unmatched means sometimes columns and
398   indentation don't line up (as with proportional fonts).
400 FURTHER INFORMATION
402 More information is available in the file nedit.doc in this kit, from NEdit's
403 on-line help system, the man-pages and from the enclosed FAQ file. 
404 There is also a web page for NEdit at: http://nedit.org.  For discussion with
405 other NEdit users, or to receive notification of new releases you can
406 subscribe to one or more of the NEdit mailing lists, announce@nedit.org,
407 discuss@nedit.org or develop@nedit.org.  The NEdit on-line help has information
408 on subscribing under Help -> Mailing Lists.
411 REPORTING BUGS
413 The NEdit developers subscribe to both discuss@nedit.org and develop@nedit.org,
414 either of which may be used for reporting bugs.  If you're not sure, or you
415 think the report might be of interest to the general NEdit user community,
416 send the report to discuss@nedit.org.  If it's something obvious and boring,
417 like we misspelled "anemometer" in the on-line help, send it to develop.  If
418 you don't want to subscribe to these lists, please add a note to your mail
419 about cc'ing you on responses.
420 An alternative way to report bugs is to submit an entry on our web-based
421 bug tracker at
422   http://sourceforge.net/projects/nedit/