all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Ispell not working in TeX mode
@ 2008-02-15 14:59 Rasmus Pank Roulund
  2008-02-15 20:50 ` Peter Dyballa
  2008-02-18 18:34 ` Rasmus Pank Roulund
  0 siblings, 2 replies; 9+ messages in thread
From: Rasmus Pank Roulund @ 2008-02-15 14:59 UTC (permalink / raw)
  To: help-gnu-emacs

Hey Emacs group,
I am having a problem with AUCTeX and Emacs. I have already described it 
in the AUCTeX group, but it seems that nobody there knew the answer.
   I use Emacsw32 22.0.990 and AUCTeX 11.85. Aspell 0.60.3.
   I use Aspell for spell-checking (obviously). I have split my hdd into 
two partitions. One for programs and one for data, documents etc. My tex 
documents are located on the data partition (letter D) while Emacs, 
AUCTeX and Aspell is located on the software partition (letter C).
   When I open a tex file on the D drive, AUCTeX is not able to start 
the ispell process. In messages is says:

     Starting new Ispell process [dansk] ...
     Applying style hooks... done
     Loading texmathp...done
     Error in post-command-hook: (error Process ispell not running)

Sometimes it writes
     Starting new Ispell process [dansk] ...
     Spell checking loese-tanker.tex using aspell with danse dictionary...
     Spell-checking using aspell with dansk dictionary done
     File mode specification error: (file-error "writing to process" 
"invalid argument" #<process ispell>)

If I switch the same file into text mode (rather than tex mode), ispell 
start. If I move the file to the C drive, ispell starts as well. If I 
start ispell from another buffer, and go back, to the tex buffer, there 
is no problem. However, if start ispell with English dictionary in one 
buffer, and switch to my tex buffer (using Danish dictionary), AUCTeX 
will freeze Emacs and I have to close down emacs.

Everything is within the PATH.
LaTeX-mode-hook consist of turn-on-auto-fill, preview-mode-setup, reftex 
-mode and flyspell mode. I have tried loading ispell as well, but it 
makes no difference.

I hope somebody will me able to help me solve this problem.
Thanks in advance,
Rasmus





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-15 14:59 Ispell not working in TeX mode Rasmus Pank Roulund
@ 2008-02-15 20:50 ` Peter Dyballa
  2008-02-15 21:10   ` Rasmus Pank Roulund
                     ` (3 more replies)
  2008-02-18 18:34 ` Rasmus Pank Roulund
  1 sibling, 4 replies; 9+ messages in thread
From: Peter Dyballa @ 2008-02-15 20:50 UTC (permalink / raw)
  To: Rasmus Pank Roulund; +Cc: help-gnu-emacs


Am 15.02.2008 um 15:59 schrieb Rasmus Pank Roulund:

>   I use Emacsw32 22.0.990 and AUCTeX 11.85. Aspell 0.60.3.
>   I use Aspell for spell-checking (obviously). I have split my hdd  
> into two partitions. One for programs and one for data, documents  
> etc. My tex documents are located on the data partition (letter D)  
> while Emacs, AUCTeX and Aspell is located on the software partition  
> (letter C).
>   When I open a tex file on the D drive, AUCTeX is not able to  
> start the ispell process. In messages is says:
>
>     Starting new Ispell process [dansk] ...
>     Applying style hooks... done
>     Loading texmathp...done
>     Error in post-command-hook: (error Process ispell not running)
>
> Sometimes it writes
>     Starting new Ispell process [dansk] ...
>     Spell checking loese-tanker.tex using aspell with danse  
> dictionary...


You're using Aspell and complain that ispell is not working?

To which programmes belong the "dansk" and "danse" dictionaries?

I am using

	(setq ispell-program-name "ispell")

to make GNU Emacs use the old ispell programme instead of the new  
aspell. The ispell-program-name variable's definition can also be a  
full pathname.

--
Greetings

   Pete

Be careful of reading health books, you might die of a misprint.
				– Mark Twain







^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-15 20:50 ` Peter Dyballa
@ 2008-02-15 21:10   ` Rasmus Pank Roulund
  2008-02-15 21:58     ` Peter Dyballa
  2008-02-15 21:10   ` Rasmus Pank Roulund
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Rasmus Pank Roulund @ 2008-02-15 21:10 UTC (permalink / raw)
  To: help-gnu-emacs



Peter Dyballa wrote:
> 
> You're using Aspell and complain that ispell is not working?
Of course not. That would be silly. Even though I use aspell I still 
call Ispell from within Emacs. In my dotEmacs I have defines ispell "as 
aspell"; I.e.

      (setq-default ispell-program-name "aspell")

or

      (setq ispell-program-name "aspell")

      '(ispell-program-name "aspell")

I have tried all of them and neither of them works.


> To which programmes belong the "dansk" and "danse" dictionaries?
Aspell

 > The ispell-program-name variable's definition can also be a full
> pathname.


I have tried to specify the full path. It has no effect. Aspell is in 
the path, so I should not matter.


As I stated in the original post, it is only a problem when the file is 
located on the D partition rather than the C drive.

-Rasmus





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-15 20:50 ` Peter Dyballa
  2008-02-15 21:10   ` Rasmus Pank Roulund
@ 2008-02-15 21:10   ` Rasmus Pank Roulund
  2008-02-15 21:10   ` Rasmus Pank Roulund
  2008-02-17  2:08   ` Rasmus Pank Roulund
  3 siblings, 0 replies; 9+ messages in thread
From: Rasmus Pank Roulund @ 2008-02-15 21:10 UTC (permalink / raw)
  To: help-gnu-emacs



Peter Dyballa wrote:
> 
> You're using Aspell and complain that ispell is not working?
Of course not. That would be silly. Even though I use aspell I still 
call Ispell from within Emacs. In my dotEmacs I have defines ispell "as 
aspell"; I.e.

      (setq-default ispell-program-name "aspell")

or

      (setq ispell-program-name "aspell")

      '(ispell-program-name "aspell")

I have tried all of them and neither of them works.


> To which programmes belong the "dansk" and "danse" dictionaries?
Aspell

 > The ispell-program-name variable's definition can also be a full
> pathname.


I have tried to specify the full path. It has no effect. Aspell is in 
the path, so I should not matter.


As I stated in the original post, it is only a problem when the file is 
located on the D partition rather than the C drive.

-Rasmus





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-15 20:50 ` Peter Dyballa
  2008-02-15 21:10   ` Rasmus Pank Roulund
  2008-02-15 21:10   ` Rasmus Pank Roulund
@ 2008-02-15 21:10   ` Rasmus Pank Roulund
  2008-02-17  2:08   ` Rasmus Pank Roulund
  3 siblings, 0 replies; 9+ messages in thread
From: Rasmus Pank Roulund @ 2008-02-15 21:10 UTC (permalink / raw)
  To: help-gnu-emacs



Peter Dyballa wrote:
> 
> You're using Aspell and complain that ispell is not working?
Of course not. That would be silly. Even though I use aspell I still 
call Ispell from within Emacs. In my dotEmacs I have defines ispell "as 
aspell"; I.e.

      (setq-default ispell-program-name "aspell")

or

      (setq ispell-program-name "aspell")

      '(ispell-program-name "aspell")

I have tried all of them and neither of them works.


> To which programmes belong the "dansk" and "danse" dictionaries?
Aspell

 > The ispell-program-name variable's definition can also be a full
> pathname.


I have tried to specify the full path. It has no effect. Aspell is in 
the path, so I should not matter.


As I stated in the original post, it is only a problem when the file is 
located on the D partition rather than the C drive.

-Rasmus





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-15 21:10   ` Rasmus Pank Roulund
@ 2008-02-15 21:58     ` Peter Dyballa
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Dyballa @ 2008-02-15 21:58 UTC (permalink / raw)
  To: Rasmus Pank Roulund; +Cc: help-gnu-emacs


Am 15.02.2008 um 22:10 schrieb Rasmus Pank Roulund:

> As I stated in the original post, it is only a problem when the  
> file is located on the D partition rather than the C drive.


Of course I am not use Losedos user, but how about adopting this code  
to your init file?

       (if (string= "aspell" ispell-program-name)
         (progn
;         (setq ispell-extra-args "--norm-form=comp --norm-required -- 
run-together")
;         (setq ispell-dictionary "en_GB-ise-w_accents")
           (setq ispell-dictionary "deutsch")
           (set-default 'ispell-local-dictionary ispell-dictionary)
           (add-hook 'TeX-language-en-hook (function (lambda ()  
(ispell-change-dictionary "british"))))
           (add-hook 'TeX-language-de-hook (function (lambda ()  
(ispell-change-dictionary ispell-dictionary))));"deutsch"
           (add-hook 'LaTeX-mode-hook (function (lambda () (setq  
ispell-extra-args '("--mode=tex")))))
;         (setq-default ispell-extra-args '("--mode=tex"))
;         (setq-default ispell-extra-args '("-- 
personal=custom_dict.rws"))
;         (add-hook 'LaTeX-mode-hook 'flyspell-mode)
           (message "Alles für «a»spell")
           )
           (setq ispell-dictionary "german8")
           (add-hook 'TeX-language-en-hook (function (lambda ()  
(ispell-change-dictionary "british"))))
           (add-hook 'TeX-language-de-hook (function (lambda ()  
(ispell-change-dictionary "deutsch8"))))
           (add-hook 'LaTeX-mode-hook (function (lambda () (setq  
ispell-extra-args '("-t")))))
           (message "Alles für »i«spell")
       )

You probably know how to find the dictionaries *spell can use.  
Setting the programme and the dictionary once might allow both to  
survive the change of the slice/volume/partition/drive. If not, there  
are some variables you can set to determine exactly and unalterable  
where aspell will find its dictionaries and other paraphernalia,  
maybe best as "C:/...":

	ispell-aspell-data-dir
	ispell-aspell-dict-dir
	¿ispell-really-aspell?

Maybe you also need to create a hook that changes

	ispell-process-directory

if not changed correctly.

--
Greetings

   Pete

If you're not confused, you're not paying attention.






^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-15 20:50 ` Peter Dyballa
                     ` (2 preceding siblings ...)
  2008-02-15 21:10   ` Rasmus Pank Roulund
@ 2008-02-17  2:08   ` Rasmus Pank Roulund
  2008-02-17  7:44     ` Thierry Volpiatto
  3 siblings, 1 reply; 9+ messages in thread
From: Rasmus Pank Roulund @ 2008-02-17  2:08 UTC (permalink / raw)
  To: help-gnu-emacs

Hello Peter,


 >
 > Of course I am not use Losedos user, but how about adopting this code 
to your init file?
Sorry, it did not make a difference :-(
 >
 > You probably know how to find the dictionaries *spell can use.
Sure. They are within the Aspell folder. Aspell should find them by itself.
 > Setting the programme and the dictionary once might allow both to 
survive the change of the slice/volume/partition/drive. If not, there 
are some variables you can set to determine exactly and unalterable 
where aspell will find its dictionaries and other paraphernalia, maybe 
best as "C:/...":
I am very sorry, but I am not very familiar with Lisp and Emacs 
programming. Thus, the above dose not make sense to me, at all. I do not 
think it is a problem to find aspell. It is within the path, and only 
AUCTeX is not able to start Aspell. Every other Emacs mode is able to do 
some, and from the command line I can start aspell as welll. As I wrote, 
I am able to switch a buffer from TeX mode to text mode, and aspell will 
work in that buffer.
 >     ispell-aspell-data-dir
It is within the path, so it should not matter. Aspell.exe is recognized 
no matter where on one "is" on the computer.
 >     ispell-aspell-dict-dir
I am not sure what this is . . .
 > Maybe you also need to create a hook that changes
 >
 >     ispell-process-directory
 >
 > if not changed correctly.
 >
How would I do that? Sorry for asking, but as I said, I am no Emacs expert.

Thanks,
Rasmus

Peter Dyballa wrote:
> 
> Am 15.02.2008 um 15:59 schrieb Rasmus Pank Roulund:
> 
>>   I use Emacsw32 22.0.990 and AUCTeX 11.85. Aspell 0.60.3.
>>   I use Aspell for spell-checking (obviously). I have split my hdd 
>> into two partitions. One for programs and one for data, documents etc. 
>> My tex documents are located on the data partition (letter D) while 
>> Emacs, AUCTeX and Aspell is located on the software partition (letter C).
>>   When I open a tex file on the D drive, AUCTeX is not able to start 
>> the ispell process. In messages is says:
>>
>>     Starting new Ispell process [dansk] ...
>>     Applying style hooks... done
>>     Loading texmathp...done
>>     Error in post-command-hook: (error Process ispell not running)
>>
>> Sometimes it writes
>>     Starting new Ispell process [dansk] ...
>>     Spell checking loese-tanker.tex using aspell with danse dictionary...
> 
> 
> You're using Aspell and complain that ispell is not working?
> 
> To which programmes belong the "dansk" and "danse" dictionaries?
> 
> I am using
> 
>     (setq ispell-program-name "ispell")
> 
> to make GNU Emacs use the old ispell programme instead of the new 
> aspell. The ispell-program-name variable's definition can also be a full 
> pathname.
> 
> -- 
> Greetings
> 
>   Pete
> 
> Be careful of reading health books, you might die of a misprint.
>                 – Mark Twain
> 
> 
> 
> 
> 
> 





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-17  2:08   ` Rasmus Pank Roulund
@ 2008-02-17  7:44     ` Thierry Volpiatto
  0 siblings, 0 replies; 9+ messages in thread
From: Thierry Volpiatto @ 2008-02-17  7:44 UTC (permalink / raw)
  To: Rasmus Pank Roulund; +Cc: help-gnu-emacs

I use that for ispell in auctex with aspell:

(add-hook 'TeX-language-fr-hook
     	  (lambda () (ispell-change-dictionary "french")))

and for ispell:

(setq-default ispell-program-name "aspell")

(setq ispell-local-dictionary "francais")

May be it help even if that's not on "win"dows ;)

Rasmus Pank Roulund <rasmus.pank@gmail.com> writes:

> Hello Peter,
>
>
>>
>> Of course I am not use Losedos user, but how about adopting this
>> code 
> to your init file?
> Sorry, it did not make a difference :-(
>>
>> You probably know how to find the dictionaries *spell can use.
> Sure. They are within the Aspell folder. Aspell should find them by itself.
>> Setting the programme and the dictionary once might allow both to 
> survive the change of the slice/volume/partition/drive. If not, there
> are some variables you can set to determine exactly and unalterable
> where aspell will find its dictionaries and other paraphernalia, maybe
> best as "C:/...":
> I am very sorry, but I am not very familiar with Lisp and Emacs
> programming. Thus, the above dose not make sense to me, at all. I do
> not think it is a problem to find aspell. It is within the path, and
> only AUCTeX is not able to start Aspell. Every other Emacs mode is
> able to do some, and from the command line I can start aspell as
> welll. As I wrote, I am able to switch a buffer from TeX mode to text
> mode, and aspell will work in that buffer.
>>     ispell-aspell-data-dir
> It is within the path, so it should not matter. Aspell.exe is
> recognized no matter where on one "is" on the computer.
>>     ispell-aspell-dict-dir
> I am not sure what this is . . .
>> Maybe you also need to create a hook that changes
>>
>>     ispell-process-directory
>>
>> if not changed correctly.
>>
> How would I do that? Sorry for asking, but as I said, I am no Emacs expert.
>
> Thanks,
> Rasmus
>
> Peter Dyballa wrote:
>>
>> Am 15.02.2008 um 15:59 schrieb Rasmus Pank Roulund:
>>
>>>   I use Emacsw32 22.0.990 and AUCTeX 11.85. Aspell 0.60.3.
>>>   I use Aspell for spell-checking (obviously). I have split my hdd
>>> into two partitions. One for programs and one for data, documents
>>> etc. My tex documents are located on the data partition (letter D)
>>> while Emacs, AUCTeX and Aspell is located on the software partition
>>> (letter C).
>>>   When I open a tex file on the D drive, AUCTeX is not able to
>>> start the ispell process. In messages is says:
>>>
>>>     Starting new Ispell process [dansk] ...
>>>     Applying style hooks... done
>>>     Loading texmathp...done
>>>     Error in post-command-hook: (error Process ispell not running)
>>>
>>> Sometimes it writes
>>>     Starting new Ispell process [dansk] ...
>>>     Spell checking loese-tanker.tex using aspell with danse dictionary...
>>
>>
>> You're using Aspell and complain that ispell is not working?
>>
>> To which programmes belong the "dansk" and "danse" dictionaries?
>>
>> I am using
>>
>>     (setq ispell-program-name "ispell")
>>
>> to make GNU Emacs use the old ispell programme instead of the new
>> aspell. The ispell-program-name variable's definition can also be a
>> full pathname.
>>
>> -- 
>> Greetings
>>
>>   Pete
>>
>> Be careful of reading health books, you might die of a misprint.
>>                 – Mark Twain
>>
>>
>>
>>
>>
>>
>
>
>

-- 
A + Thierry
Pub key: http://pgp.mit.edu




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Ispell not working in TeX mode
  2008-02-15 14:59 Ispell not working in TeX mode Rasmus Pank Roulund
  2008-02-15 20:50 ` Peter Dyballa
@ 2008-02-18 18:34 ` Rasmus Pank Roulund
  1 sibling, 0 replies; 9+ messages in thread
From: Rasmus Pank Roulund @ 2008-02-18 18:34 UTC (permalink / raw)
  To: help-gnu-emacs

Just for the record:

Somehow I got Aspell working. I made a number of unstructured changes.
First of all, I compiled the latest Aspell .60.5 -- which was quite a 
pain on Windows -- and I think that made a difference. I also made a 
major cleanup of my dotEmacs, and most of the Aspell related lines were 
removed. Still, the problems was extraordinary odd, and I still think 
there is at least a partly bug in AUCTeX.

Cheers,
Rasmus

Rasmus Pank Roulund wrote:
> Hey Emacs group,
> I am having a problem with AUCTeX and Emacs. I have already described it 
> in the AUCTeX group, but it seems that nobody there knew the answer.
>   I use Emacsw32 22.0.990 and AUCTeX 11.85. Aspell 0.60.3.
>   I use Aspell for spell-checking (obviously). I have split my hdd into 
> two partitions. One for programs and one for data, documents etc. My tex 
> documents are located on the data partition (letter D) while Emacs, 
> AUCTeX and Aspell is located on the software partition (letter C).
>   When I open a tex file on the D drive, AUCTeX is not able to start the 
> ispell process. In messages is says:
> 
>     Starting new Ispell process [dansk] ...
>     Applying style hooks... done
>     Loading texmathp...done
>     Error in post-command-hook: (error Process ispell not running)
> 
> Sometimes it writes
>     Starting new Ispell process [dansk] ...
>     Spell checking loese-tanker.tex using aspell with danse dictionary...
>     Spell-checking using aspell with dansk dictionary done
>     File mode specification error: (file-error "writing to process" 
> "invalid argument" #<process ispell>)
> 
> If I switch the same file into text mode (rather than tex mode), ispell 
> start. If I move the file to the C drive, ispell starts as well. If I 
> start ispell from another buffer, and go back, to the tex buffer, there 
> is no problem. However, if start ispell with English dictionary in one 
> buffer, and switch to my tex buffer (using Danish dictionary), AUCTeX 
> will freeze Emacs and I have to close down emacs.
> 
> Everything is within the PATH.
> LaTeX-mode-hook consist of turn-on-auto-fill, preview-mode-setup, reftex 
> -mode and flyspell mode. I have tried loading ispell as well, but it 
> makes no difference.
> 
> I hope somebody will me able to help me solve this problem.
> Thanks in advance,
> Rasmus
> 
> 
> 
> 





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-18 18:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-15 14:59 Ispell not working in TeX mode Rasmus Pank Roulund
2008-02-15 20:50 ` Peter Dyballa
2008-02-15 21:10   ` Rasmus Pank Roulund
2008-02-15 21:58     ` Peter Dyballa
2008-02-15 21:10   ` Rasmus Pank Roulund
2008-02-15 21:10   ` Rasmus Pank Roulund
2008-02-17  2:08   ` Rasmus Pank Roulund
2008-02-17  7:44     ` Thierry Volpiatto
2008-02-18 18:34 ` Rasmus Pank Roulund

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.