Force Motif to be pulled in statically by default. Linux users tend to upgrade
[nedit.git] / README
blob5229c5faaa24c64d67e78f0d8fffc32010e69144
1                     NEdit Version 5.3,  March 2002
3 $Id: README,v 1.25 2002/03/01 17:13:40 amai 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.
54 There are also several smaller improvements and bug fixes, see the
55 ReleaseNotes file for more details.
58 BUILDING NEDIT
60 Pre-built executables will be available for many operating systems, including
61 most major Unix and VMS systems. Check out the NEdit web page at
63   http://nedit.org
66 The requirements to build NEdit from the sources are: 
68  - ANSI C89 system (compiler, headers, libraries)
69  - make utility (eg, GNU make)
70  - X11R5 development stuff (headers, libraries), or newer
71  - Motif 1.2 or above (Motif 1.1 might work, but is no longer supported)
72    This GUI library is a standard part on most systems which have an
73    X11 installation. Most commercial Unix systems feature this, others may
74    require a separate installation. 
75    A "free" (LGPL'ed) alternative to Motif, called LessTif, is available.
76    See the LessTif section under PLATFORM SPECIFIC ISSUES for details.
78 Optionally one may use:
80  - yacc (or GNU bison)
83 The two directories called 'source' and 'util' contain the sources for NEdit.
84 'util' should be built first, followed by 'source'. The makefile in NEdit's
85 root directory can be used to build both in sequence if your system is one of
86 the supported machines and no modifications are necessary to the makefiles. To
87 build NEdit from the root directory, issue the command: 'make <machine-type>';
88 where <machine-type> is one of suffixes of a makefile in the directory
89 'makefiles'. For example, to build the Silicon Graphics version, type:
91         make sgi
93 If everything works properly, this will produce two executables called
94 'nedit' and 'nc' in the directory called 'source'.
97 The Source Directories
99 Since executables are already available for the supported systems, you are
100 probably not just rebuilding an existing configuration, and need to know more
101 about how the directories are organized.
103 The util directory builds a library file called libNUtil.a, which is later
104 linked with the code in the source directory to create the nedit executable.
106 The makefiles in both source directories consist of two parts, a machine
107 dependent part and a machine independent part. The machine dependent makefiles
108 can be found in the directory called 'makefiles', and contain machine specific
109 header information. They invoke a common machine independent part called
110 Makefile.common (which in turn includes also Makefile.dependencies).
111 To compile the files in either of these directories, copy or link one of the
112 system-specific makefiles from the directory 'makefiles' into the directory,
113 and issue the command:
115     make -f Makefile.<machine-type>
116     
117 (where <machine-type> is the makefile suffix).  Alternatively, you can
118 name the file 'Makefile' and simply type "make".
120 If no makefile exists for your system, you should start from Makefile.generic,
121 which is extensively commented. Contact the developer at develop@nedit.org for
122 help.
125 Building NEdit on VMS Systems
127 Command files are provided for compiling and linking files in the source
128 and util directories.  comutil.com compiles the files in the util directory
129 and produces two library files, vmsutils.olb and libutil.olb.  comnedit.com
130 compiles and links the files in the source directory to produce the nedit.exe
131 executable.
134 Additional Settings
136 Some C preprocessor macros may be used to en/disable certain parts
137 of the code. Usually this correponds to some non-important features
138 being selected or certain workarounds for platform-specifc problems.
139 Those which might be useful on more than one platform are documented
140 in makefiles/Makefile.generic.
142 Note that a special compilation flag, namely REPLACE_SCOPE, is currently
143 available. Its purpose is to allow the evaluation of two alternative
144 (but functionally equivalent) Replace/Find dialog box layouts. 
145 By default, NEdit is built with a Replace/Find dialog containing 2 rows
146 of push buttons. Compiling with the REPLACE_SCOPE flag enables an 
147 alternative layout with a row of radio buttons for selecting the scope of 
148 the replace operations. Eventually, one of these alternatives will
149 probably disappear, but up to now, the NEdit developers have not been able
150 to decide which one to drop. Please give them both a try and let us know 
151 which one you prefer (via the discuss mailing list, for instance).
154 INSTALLATION
156 NEdit consists of a single, stand-alone executable file which does not require
157 any special installation.  To install NEdit on Unix systems, simply put the
158 nedit executable in your path.  
159 On VMS systems, nedit must be defined as a foreign command so that it can
160 process command line arguments. For example, if nedit.exe were in the
161 directory mydir on the disk called mydev, adding the following line to your
162 login.com file would define the nedit command:
164         $ ned*it :== $mydev:[mydir]nedit.exe
166 To use NEdit in client/server mode, you also need the nedit client program, nc,
167 which, again, needs no special installation, except in the VMS case, as above.
168 On some systems, the name nc may conflict with an existing program.  In that
169 case, choose a different name for the executable and simply rename it.  The
170 recommend alternative is 'ncl'.
171 Don't forget to put the man-pages for nedit and nc into a place where your
172 man command is able to find them (e.g. /usr/man/man1/nedit.1)
175 RUNNING NEDIT
177 To run NEdit, simply type 'nedit', optionally followed by the name of a file
178 or files to edit. On-line help is available from the pulldown menu on the far
179 right of the menu bar. For more information on the syntax of the nedit command
180 line, look under the heading of "NEdit Command Line".
182 The recommended way to use NEdit, though, is in client/server mode, invoked by
183 the nc executable. It allows you to edit multiple files within the same
184 instance of NEdit (but still in multiple windows). This saves memory (only one
185 process keeps running), and enables additional functionality (such as find &
186 replace accross multiple windows). See "Server Mode and nc" in the help menu
187 for more information.
189 If you are accessing a host Unix system from a remote workstation or X
190 terminal, you need to set the Unix environment variable for your display:
191 csh:
192         % setenv DISPLAY devicename:0
193 sh, ksh, bash, zsh:
194         % export DISPLAY=devicename:0
196 where devicename is the network node name (hostname) of the workstation or X
197 terminal where you are typing.
198 On VMS systems, the equivalent command is:
200         $ set display/create/node=devicename
204 PLATFORM SPECIFIC ISSUES
206 Systems with LessTif, rather than Motif libraries
208 As of Lesstif 0.92.26, NEdit is very stable with Lesstif. 
209 You can get the latest LessTif version from http://www.lesstif.org.
210 If you are having trouble building or running NEdit with LessTif,
211 remember there are pre-compiled statically linked executables available
212 from our website.
213 Known bugs which might show off in NEdit linked with LessTif include:
215   1) Some dialogs which are intended to be modal (prevent other activity
216      while up) are not, and doing other actions while these dialogs are
217      up can cause trouble (.89.9+)
218      
219   2) Switching to continuous wrap mode, sometimes the horizontal scroll
220      remains partially drawn after the change, rather than disappearing
221      completely as it should. (.89.9+)
222   
223   3) Secondary selection operations are not yet supported in text fields.
226 Linux Systems
228 The default key bindings for arrow keys in fvwm interfere with some of the
229 arrow key bindings in NEdit, particularly, Ctrl+Arrow and Alt+Arrow.  You
230 may want to re-bind them either in NEdit (see Customizing -> Key Binding
231 in the Help menu) or in fvwm in your .fvwmrc file.
233 Some older Linux distributions are missing the /usr/X11R6/lib/X11/XKeysymDB
234 file, which is necessary for running Motif programs.  When XKeysymDB is
235 missing, NEdit will spew screenfulls of messages about translation table syntax
236 errors, and many keys won't work.  You can obtain a copy of the XKeysymDB file
237 from the contrib sub-directory of the NEdit distribution directory.  
240 SGI Systems
242 Beginning with IRIX 6.3, SGI is distributing a customized version of NEdit
243 along with their operating system releases.  Their installation uses an
244 app-defaults file (/usr/lib/X11/app-defaults/NEdit) which overrides the
245 default settings in any new nedit version that you install, and may result in
246 missing accelerator keys or cosmetic appearance glitches.  If you are
247 re-installing NEdit for the entire system, just remove the existing app-
248 defaults file.  If you want to run a newer copy individually, get a copy of
249 the app-defaults file for this version the contrib sub-directory of the
250 distribution directory for this version on ftp.nedit.org (/pub/<version>/
251 contrib/nedit.app-defaults), and install it in your home directory or set
252 the environment variables XAPPLRESDIR or XUSERFILESEARCHPATH to point
253 to a directory and install it there.  In all cases, the file should be
254 named simply 'NEdit'.
256 No additional installation or resource settings are necessary on IRIX systems
257 before 6.3
260 HP-UX Systems
262 If you are using HPVUE and have trouble setting colors, for example part
263 of the menu bar stubornly remains at whatever HPVUE's default is, try setting:
265    nedit*useColorObj: False
267    
268 IBM AIX Systems
270 Due to an optimizer bug in IBM's C compiler, the file, textDisp.c, must be
271 compiled without optimization on some AIX systems.
274 Solaris (SunOS 5.3 and beyond) Systems
276 The nedit_solaris executable may require the environment variable OPENWINHOME
277 to be set to the directory where Open Windows is installed.  If this is not set
278 properly, NEdit will spew screenfulls of messages about translation table
279 syntax errors.
281 Solaris 2.4 -- Add -DDONT_HAVE_GLOB to the CFLAGS line in Makefile.solaris.
283 Solaris 2.5 -- Solaris 2.5 systems were shipped with a bad shared Motif
284 library, in which the file selection dialog (Open, Save, Save As, Include,
285 etc.) shows long path names in the file list, but no horizontal scroll bar,
286 and no way to read the actual file names.  Depending on your system, the
287 patch is one of ID# 103461-07, # 102226-19, or # 103186-21.  It affects all
288 Motif based programs which use the library.  If you can't patch your system,
289 you might want to just try the nedit_sunos executable (from ftp.nedit.org
290 /pub/<version>), which is statically linked with a good Motif.  You can also
291 set the X resource: nedit.stdOpenDialog to True, which at least gives you a
292 text field where you can enter file names by hand.
294 Solaris 2.6 -- If you're experiencing performance problems (windows come up
295 slowly), the patch for Sun's shared Motif library is ID# 105284-04.  Installing
296 the patch alone will improve nedit's performance dramatically.  The patch also
297 enables a resource, *XmMenuReduceGrabs. Setting this to True will eliminate the
298 delay completely.
300 SunOS 4.x Systems
302 On some SunOS systems, NEdit will also complain about translation table syntax
303 errors.  This happens when Motif can't access the keysym database, usually
304 located in the file /usr/lib/X11/XKeysymDB.  If this file exists on your
305 system, but NEdit fails to locate it properly, you can set the environment
306 variable XKEYSYMDB to point to the file.  If you can't find the file, or if
307 some of the errors persist despite setting XKEYSYMDB, there is a XKeysymDB
308 which you can use to update or replace your /usr/lib/X11/XKeysymDB file
309 available in the contrib sub-directory of the NEdit distribution directory.
310 If you don't want to change your existing XKeysymDB file, make a local copy
311 and set XKEYSYMDB to point to it.
313 If you find that some of the labeled keys on your keyboard are not properly
314 bound to the corresponding action in NEdit, try the following:
316   1) Get a copy of motifbind.sun (for Sun standard keyboards), or
317      motifbind.sun_at (for Sun PC style keyboards) from the NEdit contrib
318      directory on ftp.nedit.org:/pub/<version>/contrib.
319   2) Copy it to a file called .motifbind in your home directory.
320   3) Shutdown and restart your X server.
323 COMPATIBILITY WITH PREVIOUS VERSIONS
325 Existing .nedit Files
327 As of version 5.1, NEdit employs a built-in upgrade mechanism which will
328 automatically detects .nedit files of older versions. In general, NEdit
329 will try to convert and insert entries to match the latest version.
330 However, in certain cases where the user has customized the default entries,
331 NEdit will leave them untouched (except for possible syntactic conversions).
332 As a result, the latest syntax highlighting patterns for certain languages may
333 not get activated, for instance, if the user has customized the entries. The
334 latest default patterns can always be activated through the
335 Preferences->Syntax Highlighting->Recognition Patterns menu, though.
337 Next, some version specific upgrading issues are listed. Note that 
338 non-incremental upgrading (eg., from 5.0 to 5.2) is supported too.
340 * Upgrading from 5.2 to 5.3
342   There are no major changes in the format of the .nedit file for version
343   5.2. Users that have customized the X Resources syntax highlighting 
344   pattern may consider restoring the default patterns, as they resolve
345   a performance issue when editing the .nedit file itself, for instance.
346   
347 * Upgrading from 5.1 to 5.2
349   There are no major changes in the format of the .nedit file for version
350   5.2. NEdit will try to insert additional entries for the newly supported
351   language modes and syntax highlighting patterns (CSS, Regex, and XML) and
352   highlight styles (Pointer, Regex, Warning).
353   Moreover, the formerly boolean 'showMatching' option will silently be
354   converted to a tri-state value.
355   Users that have customized some of the syntax highlighting patterns may
356   consider restoring the default patterns, as many of them have been improved
357   considerably.
358   
359 * Upgrading from 5.0 to 5.1
360   
361   NEdit 5.1 makes significant changes to the syntax of regular expressions.
362   Mostly, these are upward compatible, but two changes; introducing the brace
363   operator, and changing the meaning of \0; are not. Brace characters must now
364   be escaped with backslash, and & must be used in place of \0 in
365   substitutions.
367   NEdit 5.1 employs a built-in upgrade mechanism which will automatically
368   detect pre-5.1 .nedit files and fix regular expressions which appear in
369   user-defined highlight patterns. The automatic upgrade mechanism, however,
370   can not fix regular expression problems within user-defined macros. If you
371   have a macro which is failing under NEdit 5.1, you will have to fix it by
372   hand.
373   
374 * Upgrading from pre-5.0
376   If you are upgrading from a pre-5.0 version of NEdit, there are significant
377   changes to the macro language, and you are best off simply editing out the
378   nedit.macroCommands section of your .nedit file, generating a new .nedit
379   file, and then re-introducing your user-written commands into the new file.
380   Most macros written for previous versions will function properly under the
381   new macro language. The most common problems with old macros is lack of a
382   terminating newline on the last line of the macro, and the addition of "<",
383   ">", and now "{" to the regular expression syntax. These characters must now
384   be escaped with \ (backslash). Also, if you have been using a font other
385   than the default for the text portion of your NEdit windows, be sure to
386   check the Preferences -> Default Settings -> Text Font dialog, and select
387   highlighting fonts which match your primary font in size. Matching in height
388   is desirable, but not essential, and sometimes impossible to achive on some
389   systems. When fonts don't match in height, turning on syntax highlighting
390   will cause the window size to change slightly. NEdit can handle unmatched
391   font sizes (width), but leaving them unmatched means sometimes columns and
392   indentation don't line up (as with proportional fonts).
394 FURTHER INFORMATION
396 More information is available in the file nedit.doc in this kit, from NEdit's
397 on-line help system, the man-pages and from the enclosed FAQ file. 
398 There is also a web page for NEdit at: http://nedit.org.  For discussion with
399 other NEdit users, or to receive notification of new releases you can
400 subscribe to one or more of the NEdit mailing lists, announce@nedit.org,
401 discuss@nedit.org or develop@nedit.org.  The NEdit on-line help has information
402 on subscribing under Help -> Mailing Lists.
405 REPORTING BUGS
407 The NEdit developers subscribe to both discuss@nedit.org and develop@nedit.org,
408 either of which may be used for reporting bugs.  If you're not sure, or you
409 think the report might be of interest to the general NEdit user community,
410 send the report to discuss@nedit.org.  If it's something obvious and boring,
411 like we misspelled "anemometer" in the on-line help, send it to develop.  If
412 you don't want to subscribe to these lists, please add a note to your mail
413 about cc'ing you on responses.
414 An alternative way to report bugs is to submit an entry on our web-based
415 bug tracker at
416   http://sourceforge.net/projects/nedit/