Bug#572621: ispell mode break original ispell mode from jed
Jörg Sommer
joerg at alea.gnuu.de
Mon Mar 1 10:52:47 UTC 2010
Package: jed-extra
Version: 2.5.6-1
Severity: normal
Hi,
when enabling flyspell, I can't use the spell mode from jed. I have set
autoload("ispell", "/usr/share/jed/lib/ispell.sl");
autoload("flyspell_mode", "flyspell");
in my jed.rc and enabling flyspell_mode() for text files. Pressing ESC $
at a misspelled word, I get the buffer that normally gives the possible
corrections, but it contains an usage message from aspell.
This quick and dirky patch fixes the problem for aspell.
% diff /tmp/ispell_init.sl /usr/share/jed/jed-extra/drop-in/ispell_init.sl
--- /tmp/ispell_init.sl 2010-03-01 11:43:32.441010551 +0100
+++ /usr/share/jed/jed-extra/drop-in/ispell_init.sl 2010-03-01 11:43:34.000000000 +0100
@@ -36,7 +36,7 @@
variable Ispell_Program_Name;
if (1 == file_status("/usr/bin/aspell")
|| 1 == file_status("/usr/local/bin/aspell"))
- Ispell_Program_Name = "aspell";
+ Ispell_Program_Name = "aspell -a";
else if (1 == file_status("/usr/bin/hunspell")
|| 1 == file_status("/usr/local/bin/hunspell"))
Ispell_Program_Name = "hunspell";
The problem is, the original jed spell mode expects the variable
Ispell_Program_Name contains the whole command for running the spell
program, but ispell_init.sl sets only the name without required
arguments.
Bye, Jörg.
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.33-rc7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
jed-extra depends on no packages.
Versions of packages jed-extra recommends:
ii jed 1:0.99.19-1 editor for programmers (textmode v
ii slsh 2.2.2-2 Interpreter for S-Lang language
ii xjed 1:0.99.19-1 editor for programmers (x11 versio
Versions of packages jed-extra suggests:
pn a2ps <none> (no description available)
pn dict <none> (no description available)
ii dillo [www-browser] 0.8.6-3 Small and fast web browser
ii elinks [www-browser] 0.12~pre5-2 advanced text-mode WWW browser
ii iceweasel [www-browser] 3.5.8-1 Web browser based on Firefox
ii install-info 4.13a.dfsg.1-5 Manage installed documentation in
ii links2 [www-browser] 2.2-1+b1 Web browser running in both graphi
ii lynx-cur [www-browser] 2.8.8dev.2-1 Text-mode WWW Browser with NLS sup
ii netsurf [www-browser] 2.1-2.1 Small portable web browser with CS
ii netsurf-gtk [www-browser] 2.1-2.1 Small portable web browser with CS
ii slang-curl 0.2.1-4 transfer files using HTTP and FTP
pn slang-expat <none> (no description available)
ii slang-gdbm 1.7.1-4 access to GDBM databases from S-La
pn slang-sqlite <none> (no description available)
pn slang-wildcard <none> (no description available)
ii w3m [www-browser] 0.5.2-4 WWW browsable pager with excellent
-- debconf information excluded
-- debsums errors found:
debsums: changed file /usr/share/jed/jed-extra/drop-in/ispell_init.sl (from jed-extra package)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
URL: <http://lists.alioth.debian.org/pipermail/pkg-jed-devel/attachments/20100301/c6a5ef06/attachment.pgp>
More information about the Pkg-jed-devel
mailing list