Nedit: problem with spell checker

Tony Balinski ajbj at free.fr
Tue Mar 27 21:54:26 CEST 2007


Quoting "A.V.Kuznetsov" <kuzn at umps.mephi.ru>:

> Hi Thodori,
>
> > csh: spell: Command not found
> > cat:  stdin: Bad file descriptor
>
> I can not find spell command in Nedit 5.5 source.
> The Shell menu contains item spell with following script
>
> cat>spellTmp; xterm -e ispell -x spellTmp; cat spellTmp; rm spellTmp
>
> which creates the temporary file spellTmp
> (in folder where checked file is located)
> calls ispell to check it, then replace buffer content
> by the checked file and delete it.
>
> May be you csh uses alias spell <-> ispell?

Thodori,

Why not just change the spell shell command used by NEdit?
Via the menu: Preferences > Default Settings > Customize Menus >
Shell Menu... - this opens a dialog. Now, in the list on the right,
select your Shell Menu command: spell (in your case, I expect). Once
this is selected, make sure that under "Command Input" the "either"
button is on (allowing a selection to be used if there is one, or the
whole document if not). Similarly, for "Command Output", select "dialog"
(the output of the command will be in a dialog box). Now change the
command in the "Shell Command to Execute" box towards the bottom.
This allows you to use any command you like, such as the one Alexey
suggests above. Now use the "OK" or "Apply" button to take your changes
into account. (I would use apply, so you can keep the Shell Menu dialog
open and also test the newly modified Shell menu entry.) Finally, save
the modified entry for future use with the menu item Preferences >
Save Defaults. (If you don't do this, you will be prompted by NEdit
when the program shuts down normally - when closing the last window
or using the File > Exit / Ctrl-Q menu action - to save settings.)

Although there is a built-in command, there's nothing magical about it:
it can be changed. The use of spell is for Unix machines that rely on
standard Unix (NOT Linux or BSD) installed programs. This, I believe,
still represents a large proportion of NEdit users; indeed one of NEdit's
advantages is its support of these proprietary systems. It's also NEdit's
major drawback, because we need to maintain functionality with these old
systems, which means continuing to use the Motif library they provide.

Tony


More information about the Discuss mailing list