⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faq.xml

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 XML
📖 第 1 页 / 共 5 页
字号:
<title>Building</title><qna id="N162"><q>When I build NEdit on my SunOS system, I get undefinedsymbols: <tt>_memmove</tt>, <tt>_atexit</tt>,<tt>_strerror</tt>.</q><long-q><p>When I build NEdit on my SunOS system, I get the fillowing undefinedsymbols:</p><pre>ld: Undefined symbol   _memmove   _atexit   _strerror*** Error code 1make: Fatal error: Command failed for target `nedit'</pre></long-q><a><p>Older versions of the gcc C runtime library were missing these functions.  Youcan either upgrade gcc, or get sources for these functions from<site>ftp://ftp.nedit.org/pub/contrib/misc</site>(which someone else with your very same problem kindly contributed).</p></a></qna><qna id="N196"><q>I'd like to build NEdit, but my system seems to be missing the Xm...include files and libXm.a</q><a><p>Xm means Motif, which is an important part of NEdit's GUI interface.  Motifis standard on commercial Unix workstations, but not on free Unix platformslike Linux and FreeBSD.  On these systems, you can now use LessTif, theGPL clone of Motif, or purchase a copy of Motif, which is usually relativelyinexpensive, but not free.  You can find a list of companies selling Motiffor Linux at:</p><blockquote><p>    <site>http://www.cen.com/mw3/#providers</site></p></blockquote><p>As of this writing LessTif is very close to being a fully reliable andcomplete replacement for Motif, so it's definitely worth trying beforeshelling out any money for a commercial copy.  Also remember that in mostcases, you don't really need Motif libraries to use NEdit.  Thereare plenty of versions available pre-built with the Motif librarieslinked in statically.  If you can't find one for your system, ask around,and you may find that someone else has already built one for you.  Motiflicensing allows free distribution of statically linked binaries.Executables for NEdit are available from<site>ftp://ftp.nedit.org/pub/</site>&lt;current-version&gt;/executables.</p></a></qna><qna id="N221"><q>When I build NEdit, I get the yacc error: <tt>conflicts: 36 shift/reduce</tt></q><long-q><p>When I build NEdit, I get the yacc error:</p><pre>  conflicts: 36 shift/reduce</pre></long-q><a><p>That's normal.  NEdit's macro language has a very conflicted grammar, but theconflicts all resolve themselves correctly.  The conflicts stem from allowingawk-style no-operator concatenation of strings.</p></a></qna><qna id="N255"><q>I built NEdit on my Linux system, and it's full of bugs.  What a horribleeditor!</q><a><p>Several of the Linux distributions began including LessTif (a freeversion of the Motif GUI library) before it was really ready forgeneral use (particularly for something which needs to be as reliableas a text editor).  If you have a version of Lesstif prior to 0.92.26,you have to upgrade it, before it will support NEdit reliably.  To getthe newest version, go to <site>http://lesstif.org</site>.  Alternatively,you can get pre-built, statically linked, executables from<site>ftp://ftp.nedit.org/pub/</site>&lt;current-version&gt;/executables.</p></a></qna><qna id='tmpnam'><author><name>Thorsten Haude</name></author><q> While compiling NEdit on Linux, I get a warning about<code>tmpnam</code> being dangerous. </q><long-q><p>While compiling NEdit on Linux, I get the following warning:</p><pre>    file.o: In function `PrintString':    file.o(.text+0x17b7): the use of `tmpnam' is dangerous, better use `mkstemp'</pre><p>Is NEdit insecure?</p></long-q><a><p>Not if you are using the glibc. The algorithm of mkstemp(3) consists oftwo parts: the first part is the one used in tmpnam(3) -- this is whatNEdit accomplishes by calling tmpnam(3); the second part is done directlyin NEdit. </p></a></qna><qna id='Xp'><author><name>Joor Loohuis</name></author><q>NEdit fails to build on Linux, with messages about `XpGetDocumentData'</q><long-q><p>NEdit fails to build on Linux, with messages</p><pre>   undefined reference to `XpGetDocumentData'   undefined reference to `XpGetPageDimensions'   ...</pre></long-q><a><p>Edit makefiles/Makefile.Linux, and add '-lXp' to the line starting with'LIB', right before '-lXext'. At this time we are not sure whether libXp(the X print library) is installed on all Linux systems.</p></a></qna></section><section id="sect_customization"><title>Customization</title><qna id="N277"><q>I can't get the delete key to remap to a forward delete</q><long-q><p>I can't get the delete key to remap to a forward delete. Ihave re-bound it in my .Xdefaults file, and that doesn'thelp.</p></long-q><a><p>In your .Xdefaults file, add:</p><blockquote>    <p><tt>nedit.remapDeleteKey: False</tt></p></blockquote><p>This is now the default, so you likely have an old resource filesitting around somewhere with this setting.  When <tt>remapDeleteKey</tt> is<tt>True</tt>), NEdit forcibly maps the delete tobackspace.  This can be used when the X server and the clientmachine have different expectations about whether the key in thebackspace position on the keyboard is a backspace key or a deletekey.  It also saves users in very heterogeneous environmentsfrom having to re-map keys on nearly every system they usejust to be able to backspace.</p></a></qna><qna id="N299"><q>My X resource settings don't work.</q><a><p>It's harder to explain how to specify X resources than you mightexpect, since how they are set is often configured by your localsystem manager. They are either automatically attached to the server(your screen) by an X startup or login script, or they are leftunspecified, and read from the .Xdefaults file whenever you run an Xapplication.  If they are attached to the server, you should find outthe "normal" method for setting them on your system. If it's not the.Xdefaults file, then it is usually a file called .Xresources (alsoin your home directory). To make a change, you have to either runxrdb, or re-invoke the startup script that originally attached them,usually by exiting and re-starting X, or logging out and back in toyour X session.</p><p>Since setting resources is tricky, it's usually better to start withsomething simple, like:</p><blockquote><p><tt>nedit*foreground:green</tt></p></blockquote><p>Then, once you have that working, try the more subtle or difficult ones.You can also use the appres command to find out what resources neditactually sees (<code>appres NEdit nedit</code>).</p></a></qna><qna id="N324"><q>I am setting some X defaults in my $HOME/.nedit file but some ofthem don't work.</q><a><p>The .nedit file holds the NEdit Preferences menu options and isautomatically overwritten whenever you select "Save Defaults".  Youreally shouldn't put X resource settings there.  Also, as you may havediscovered, resources other than Preferences resources don't alwayswork from there.</p><p>How you set X resources depends on local system conventions.  Youusually put them in the .Xdefaults or .Xresources file in your homedirectory.  You may also need to run xrdb to install them in the server.It depends on how your local system has been configured, so it's bestto talk to the person who configured your system.  If you're not surewhether your resources are set up correctly, the command:</p><pre>    appres NEdit nedit</pre><p>will tell you what settings NEdit will see when it runs.</p></a></qna><qna id="N342"><q>If I install an "app-defaults" file for NEdit (empty too), all defaultshortcuts are reset</q><long-q><p>If I install an "app-defaults" file for NEdit (empty too), all defaultshortcuts are reset (only "Alt+B" and "Alt+Z" works). Without that fileall works fine. Now, how can I customize nedit with this problem ? Or,how can I get a copy of all default shortcuts to add on my NEdit"app-defaults" file ?</p></long-q><a><p>NEdit uses the X fallback resources mechanism to provide default valuesfor user-settable resources.  When you provide a system-wide app-defaults file, it overrides the entire contents of the fallbackresources, meaning all of the program defaults are lost, except forthose which are also represented in the app-defaults file.  To use anapp-defaults file, therefore, you need to start from a complete onewhich provides all of the necessary default values.  There is a completeapp-defaults file in:</p><blockquote><p><site>ftp://ftp.nedit.org/pub/contrib/misc/nedit.app-defaults</site></p></blockquote><p>We strongly discourage users from using system-wide app-defaults becauseonce you install the file, you have to keep it up to date with every newrelease of the software.  If you don't update it, users might not evennotice the difference, but things will be increasingly wrong with eachnew release.</p></a></qna><qna id="N364"><q>Where can I get the complete list of nedit resources?</q><a><p>The way X is designed, there are a LOT of user settable resources in NEdit,most of them quite useless.  You can see them all using the editres tool,which is available on most Unix systems.  A more useful subset are theapplication default resources, which you can look at either in the source code(near the beginning of nedit.c, in the variable called fallbackResources) orin the app-defaults file in:</p><blockquote><p><site>ftp://ftp.nedit.org/pub/contrib/misc/nedit.app-defaults</site></p></blockquote></a></qna><qna id="N386"> <q>Can I use <code>ispell</code> with NEdit instead of the lesscapable Unix <code>spell</code> command?</q><a><p><code>ispell</code> is actually the default spell checker for NEdit on Linux systems where<code>spell</code> is not available. On other systems, enter the following in the ShellCommands dialog:</p><pre>  Command Input: Either  Command Output: Same Window  Output Replaces Input: ON  Shell Command: cat&gt;spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp</pre><p>If you want to get fancy, the following puts the temporary file in the /tmpdirectory, and uses $$ (the process ID of the shell) in the file name so youdon't have to worry about clashes between simultaneous ispell sessions:</p><pre>  cat &gt; /tmp/ispell.$$; xterm -title "Spell Check" -e  ispell -S /tmp/ispell.$$; cat /tmp/ispell.$$; rm /tmp/ispell.$$</pre></a></qna><qna id="N415"><q>How can the display of hidden (eg .login) files in dialog boxes besuppressed</q><long-q><p>How can the display of hidden (eg .login) files in dialog boxes besuppressed?  We use nedit with for teaching programming with very naiveand inexperienced students.  The display of these in dialogs such as the"Save as..." one encourages them to screw up important login stuff, statefiles etc.</p></long-q><a><p>It depends on the system you are running how easy this is to do.  UnderMotif 2.0, which I think is still only found on Linux and Free-BSD systems,it's a simple resource setting:</p><blockquote><p><tt>nedit*XmFileSelectionBox.fileFilterStyle: FILTER_HIDDEN_FILES</tt></p></blockquote><p>On other systems, unfortunately, it's a rather difficult source code change,involving creating a replacement file searching procedure to be spliced into the file selection box widget.</p></a></qna><qna id="N437"><q>Why, in the 'open file' dialog, there is no text field where totype in the file name?</q><long-q><p>Most Motif applications allow you to type in the file name in a separatetext field (as in the 'open file' dialog).  Why doesn't NEdit?  CanI make it do that?</p></long-q><a><p>Set the X resource nedit.stdOpenDialog to True.  The field is disabled bydefault to get new users accustomed to typing the file name directly in tothe list widget, which is not standard Motif behavior.</p></a></qna><qna id="N452"><q>I would like to change NEdit's cursor from abar to a block</q><long-q><p>I would like to change NEdit's cursor from abar to a block.  I seem to lose it sometimes in my text.</p></long-q><a><p>The block cursor in NEdit is used to indicate overstrike mode, butyou can turn on a resource to make the cursor thicker:</p><blockquote>  <p><tt>nedit*text.heavyCursor: true</tt></p></blockquote><p>The only way to get a permanent block cursor, though is to hack the sourcecode.  This shouldn't be too difficult, since the code for drawing a block

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -