Portál AbcLinuxu, 19. dubna 2024 06:30


Dotaz: Enabling Flyspell mode gave an error

21.12.2008 20:42 Jack Hokus | skóre: 34 | blog: LostHeaven
Enabling Flyspell mode gave an error
Přečteno: 313×
Odpovědět | Admin

Dobrý den,

mám čerstvě nainstalovanou Fedoru 10. Když se v Emacsu pokusím přejít do flyspell-modu, tak dostanu tuto chybovou hlášku: Enabling Flyspell mode gave an error

Zkoušel jsem hledat, našel jsem toto: groups.google.com/group/gnu.emacs.help/browse_thread/thread/1696656b074b5ba5

Ale nejsem z toho moc moudrý, může někdo poradit?

Děkuji

JH

http://www.jackhokus.cz/

Řešení dotazu:


Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

23.12.2008 13:40 Jack Hokus | skóre: 34 | blog: LostHeaven
Rozbalit Rozbalit vše Re: Enabling Flyspell mode gave an error
Odpovědět | | Sbalit | Link | Blokovat | Admin

Dobrý den,

příčinou problému je pravděpodobně chybějící soubor flyspell.el. Mohl by mi prosím někdo, poslat cestu k tomuto souboru?

Nevím kam ho nakopírovat děkuji.

JH

http://www.jackhokus.cz/
wamba avatar 23.12.2008 17:26 wamba | skóre: 38 | blog: wamba
Rozbalit Rozbalit vše Re: Enabling Flyspell mode gave an error

find /usr/share/emacs/ -name "flyspell*"
/usr/share/emacs/23.0.60/lisp/textmodes/flyspell.elc
/usr/share/emacs/23.0.60/lisp/textmodes/flyspell.el.gz

 

This would have been so hard to fix when you don't know that there is in fact an easy fix.
24.12.2008 11:25 Jack Hokus | skóre: 34 | blog: LostHeaven
Rozbalit Rozbalit vše Re: Enabling Flyspell mode gave an error

Děkuju,

tak ani zkopírování souborů na potřebná místa nezabralo

JH

http://www.jackhokus.cz/
wamba avatar 24.12.2008 12:30 wamba | skóre: 38 | blog: wamba
Rozbalit Rozbalit vše Re: Enabling Flyspell mode gave an error

a pokud soubor flyspell.el otevřete v Emacsu a dáte emacs-lisp-byte-compile-and-load, tak to funguje?

This would have been so hard to fix when you don't know that there is in fact an easy fix.
25.12.2008 13:04 Jack Hokus | skóre: 34 | blog: LostHeaven
Rozbalit Rozbalit vše Re: Enabling Flyspell mode gave an error

Dobrý den,

děkuji za podporu. Bohužel ani toto nepomohlo.  Příkládám nějake chybove hlasky:

Tohle je ze startu editoru

Warning: no fonts matching `-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1' available [2 times]
("emacs")
Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/igrep-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading flyspell...done
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
 

Tady načítal flyspell.el

Warning: no fonts matching `-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1' available [2 times]
("emacs")
Loading /usr/share/emacs/site-lisp/site-start.d/focus-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/igrep-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading flyspell...done
Starting new Ispell process [default] ...
Enabling Flyspell mode gave an error
Loading help-mode...done

Loading dired...
Loading regexp-opt...done
Loading dired...done
line-move-1: End of buffer
Loading jka-compr...done
uncompressing ispell.el.gz...done
A tady je výstup "Vašeho" příkazu
Compiling file /usr/share/emacs/22.2/lisp/textmodes/ispell.el.gz at Thu Dec 25 12:43:27 2008 ispell.el.gz:989:12:Warning: reference to free variable `current-menubar' ispell.el.gz:989:48:Warning: reference to free variable `default-menubar' In ispell-show-choices: ispell.el.gz:1858:34:Warning: value returned from (get-buffer-window ispell-choices-buffer t) is unused In ispell-highlight-spelling-error-xemacs: ispell.el.gz:2117:6:Warning: isearch-dehighlight called with 1 argument, but accepts only 0 In ispell-parse-output: ispell.el.gz:2203:21:Warning: `string-to-int' is an obsolete function (as of Emacs 22.1); use `string-to-number' instead. ispell.el.gz:2207:14:Warning: `string-to-int' is an obsolete function (as of Emacs 22.1); use `string-to-number' instead. In ispell-init-process: ispell.el.gz:2327:10:Warning: `process-kill-without-query' is an obsolete function (as of Emacs 22.1); use `process-query-on-exit-flag' or `set-process-query-on-exit-flag'. In ispell-region: ispell.el.gz:2489:31:Warning: ispell-get-line called with 4 arguments, but accepts only 3 In ispell-get-line: ispell.el.gz:2715:8:Warning: function ispell-get-line used to take 3 arguments, now takes 4 In ispell-message: ispell.el.gz:3267:48:Warning: reference to free variable `sc-reference-tag-string' ispell.el.gz:3266:29:Warning: reference to free variable `sc-cite-regexp' ispell.el.gz:3276:48:Warning: reference to free variable `mh-ins-buf-prefix' In ispell-buffer-local-dict: ispell.el.gz:3430:8:Warning: function ispell-buffer-local-dict used to take 0-1 arguments, now takes 0 In end of data: ispell.el.gz:3572:1:Warning: the following functions are not known to be defined: byte-compiling-files-p, find-menu-item, delete-menu-item, add-menu, delete-extent, set-extent-property, framepop-display-buffer, setf, sc-cite-regexp

Každopádně děkuju za snahu. Zkusím progooglovat ty výstupy a projít manuál k emacsu a uvidím.

Přeju pěkné svátky a pořádně divokého silvestra.

Jack Hokus

PS: Nyní asi neodolám a půjdu se dívat na Tuším Zlatovlásku a cpát se bramborovým salátem

http://www.jackhokus.cz/
22.1.2009 18:43 Jack Hokus | skóre: 34 | blog: LostHeaven
Rozbalit Rozbalit vše Re: Enabling Flyspell mode gave an error
Odpovědět | | Sbalit | Link | Blokovat | Admin

Dobrý den,

podařilo se mi najít řešení tohoto problému. Do konfiguračního souboru .emacs je třeba vložit následující řádky:

;;Ke kontrole pravopisu bude pouzit "aspell"
(setq-default ispell-program-name "aspell")

;;Nastavuje slovník pro kontrolu pravopisu
(setq ispell-dictionary "czech")

;;Nastavuje standardni slovnik pro flyspell
(setq flyspell-default-dictionary "czech")

 

JH

http://www.jackhokus.cz/

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.