Re: Trigger spell checking before sending

2016-03-05 Thread Emanuel Berg
Pietro writes: > Oh, gosh, I just needed to press enter, and since > lang is null at that point my message is sent > straightaway ... :-) Yes, only "null" is C, in Lisp it is nil. -- underground experts united http://user.it.uu.se/~embe8573 ___ inf

Re: Trigger spell checking before sending

2016-03-05 Thread Pietro
Pietro writes: > Pietro writes: > >> Emanuel Berg writes: >> >>> Pietro writes: >>> run-hooks: Wrong number of arguments [...] This is what I get in my mini-buffer when I send my email, any thoughts? >>> >>> OK, I see the problem, it doesn't get >>> called interactively. >>

Re: Trigger spell checking before sending

2016-03-05 Thread Pietro
Pietro writes: > Emanuel Berg writes: > >> Pietro writes: >> >>> run-hooks: Wrong number of arguments [...] >>> >>> This is what I get in my mini-buffer when I send my >>> email, any thoughts? >> >> OK, I see the problem, it doesn't get >> called interactively. >> >> Try this instead: >> >> (de

Re: Trigger spell checking before sending

2016-02-19 Thread B.V. Raghav
Emanuel Berg writes: > "B.V. Raghav" writes: > >>> OK, I see the problem, it doesn't get called >>> interactively. Try this instead: (defun >>> spell-before-send () (let*((lang-input >>> (read-from-minibuffer "Language [e or s]: ")) >> >> Would it have been possible to hook the >> _interactively

Re: Trigger spell checking before sending

2016-02-19 Thread Emanuel Berg
"B.V. Raghav" writes: >> OK, I see the problem, it doesn't get called >> interactively. Try this instead: (defun >> spell-before-send () (let*((lang-input >> (read-from-minibuffer "Language [e or s]: ")) > > Would it have been possible to hook the > _interactively_defined_ `spell-before-send' as

Re: Trigger spell checking before sending

2016-02-19 Thread B.V. Raghav
> > OK, I see the problem, it doesn't get > called interactively. > > Try this instead: > > (defun spell-before-send () > (let*((lang-input (read-from-minibuffer "Language [e or s]: ")) Would it have been possible to hook the _interactively_defined_ `spell-before-send' as follows: (add-hook me

Re: Trigger spell checking before sending

2016-02-19 Thread Pietro
Emanuel Berg writes: > Pietro writes: > >> run-hooks: Wrong number of arguments [...] >> >> This is what I get in my mini-buffer when I send my >> email, any thoughts? > > OK, I see the problem, it doesn't get > called interactively. > > Try this instead: > > (defun spell-before-send () > (let

Re: Trigger spell checking before sending

2016-02-18 Thread Emanuel Berg
Pietro writes: > run-hooks: Wrong number of arguments [...] > > This is what I get in my mini-buffer when I send my > email, any thoughts? OK, I see the problem, it doesn't get called interactively. Try this instead: (defun spell-before-send () (let*((lang-input (read-from-minibuffer "Langua

Re: Trigger spell checking before sending

2016-02-18 Thread Pietro
Emanuel Berg writes: > Pietro writes: > >> Alternatively I am thinking of writing a function >> which asks the user for the language the ispell >> function should check for, it does not need to >> accept all the languages and for instance I would be >> more than happy to have something like that

Re: Trigger spell checking before sending

2016-02-15 Thread Peter Münster
On Fri, Feb 12 2016, Pietro wrote: > Now that I got this working my following question is : would it be possible > to auto-detect the language the spell checker should check ? Hi, Here some code snippets of my configuration, that could help perhaps: --8<---cut here---st

Re: Trigger spell checking before sending [flyspell?]

2016-02-12 Thread Emanuel Berg
"Loris Bennett" writes: > We didn't have mindfulness (or spell-checking, for > that matter) when I was growing up. Historians of > the future will tell us (or themselves) whether the > results suffered. When we were growing up there wasn't Google, YouTube, MSN, Facebook, Twitter either. And in s

Re: Trigger spell checking before sending [flyspell?]

2016-02-12 Thread Emanuel Berg
"Andrzej A. Filip" writes: > My opinion is quite different but I sure you are the > expert in judging what is the best for YOU :-) . > I am sure flyspell is a thing worth to _try_ . I am > quite sure it will not be the best choice _for > everyone_ . > > After a few months+ of flyspelling I get ba

Re: Trigger spell checking before sending

2016-02-12 Thread Emanuel Berg
Pietro writes: > Alternatively I am thinking of writing a function > which asks the user for the language the ispell > function should check for, it does not need to > accept all the languages and for instance I would be > more than happy to have something like that : > > Mini-buffer says: [Which

Re: Trigger spell checking before sending

2016-02-12 Thread Emanuel Berg
Pietro writes: > I prefer to run the spell checker at a separate > stage since it takes a bit of concentration to me > when I am writing in English I couldn't cope with > external interactions/distractions of any sort very > well ... Indeed, there is that, but there is also the problem of the in

Re: Trigger spell checking before sending

2016-02-12 Thread Pietro
Emanuel Berg writes: > Pietro writes: > >> I normally use the ispell-buffer command before >> sending an email or article to check what I have >> written, anyway sometimes I just forgot it. >> >> Is there a way to configure Gnus to start the spell >> check before sending the message ? I was thin

Re: Trigger spell checking before sending [flyspell?]

2016-02-12 Thread Loris Bennett
Emanuel Berg writes: > "Andrzej A. Filip" writes: > >> Do you use flyspell? It may deliver what you want in >> another way. > > Ispell is better. Write, then spell, then send. Do it > all at once you loose your mindfulness and the result > will suffer. We didn't have mindfulness (or spell-check

Re: Trigger spell checking before sending [flyspell?]

2016-02-12 Thread Andrzej A. Filip
Emanuel Berg wrote: > "Andrzej A. Filip" writes: > >> Do you use flyspell? It may deliver what you want in >> another way. > > Ispell is better. Write, then spell, then send. Do it > all at once you loose your mindfulness and the result > will suffer. Flyspell sounds good but in practice too > ma

Re: Trigger spell checking before sending

2016-02-11 Thread Eric S Fraga
On Thursday, 11 Feb 2016 at 22:47, Pietro wrote: > Hi all, > > I normally use the ispell-buffer command before sending an email or > article to check what I have written, anyway sometimes I just forgot it. Maybe not the answer you were looking for but what about using, for instance, flyspell-mode,

Re: Trigger spell checking before sending [flyspell?]

2016-02-11 Thread Emanuel Berg
"Andrzej A. Filip" writes: > Do you use flyspell? It may deliver what you want in > another way. Ispell is better. Write, then spell, then send. Do it all at once you loose your mindfulness and the result will suffer. Flyspell sounds good but in practice too many words that should be there aren'

Re: Trigger spell checking before sending [flyspell?]

2016-02-11 Thread Andrzej A. Filip
Pietro wrote: > Hi all, > > I normally use the ispell-buffer command before sending an email or > article to check what I have written, anyway sometimes I just forgot it. > > Is there a way to configure Gnus to start the spell check before sending > the message ? I was thinking of an "hook" which

Re: Trigger spell checking before sending

2016-02-11 Thread Emanuel Berg
Pietro writes: > I normally use the ispell-buffer command before > sending an email or article to check what I have > written, anyway sometimes I just forgot it. > > Is there a way to configure Gnus to start the spell > check before sending the message ? I was thinking of > an "hook" which can be

Trigger spell checking before sending

2016-02-11 Thread Pietro
Hi all, I normally use the ispell-buffer command before sending an email or article to check what I have written, anyway sometimes I just forgot it. Is there a way to configure Gnus to start the spell check before sending the message ? I was thinking of an "hook" which can be configured to call