From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?S=E9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: flyspelling at undesirable/unneeded moments Date: Thu, 06 Mar 2008 16:32:57 +0100 Organization: Sebastien Vauban Message-ID: <87fxv3zx3q.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1204818135 9608 80.91.229.12 (6 Mar 2008 15:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2008 15:42:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 06 16:42:34 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JXIE9-0007s6-V2 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2008 16:41:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXIDc-00033L-GV for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2008 10:41:16 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!proxad.net!feeder1-2.proxad.net!nerim.net!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMODhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QHw/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnYDQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ70hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloem/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= X-Www-site: Under construction... User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:uW1c5agJGq0HlN9CIG0kC3Gcz7M= Original-Lines: 48 Original-NNTP-Posting-Date: 06 Mar 2008 15:32:57 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1204817577 reader0.news.be.easynet.net 1585 [::ffff:81.188.7.152]:26048 Original-X-Complaints-To: abuse@be.easynet.net Original-Xref: shelby.stanford.edu gnu.emacs.help:156730 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52102 Archived-At: Hello, I've turned on (the great) `flyspell' in many major editing modes with the following code: --8<---------------cut here---------------start------------->8--- ;; turn on `flyspell' for various major modes (mapc (lambda (hook) (add-hook hook 'my-turn-on-flyspell-french)) '(message-mode-hook text-mode-hook latex-mode-hook tex-mode-hook nuweb-mode-hook html-mode-hook))) --8<---------------cut here---------------end--------------->8--- The problem is that, even in its fastest mode ... --8<---------------cut here---------------start------------->8--- ;; extra switches to pass to the `aspell' program (setq ispell-extra-args '("--sug-mode=3Dultra")) --8<---------------cut here---------------end--------------->8--- ... it takes some amount of time - what's annoying for looooong documents. It is much more annoying when, in fact, the only thing you want to do is to `ediff' it, just before committing it into subversion: while you have worked on it, the fact it re-opens it makes it go through it (for checking the ortograph) once more! #1. How could we avoid that (i.e., not being called when open by ediff)? More generally, it'd be normal to activate the minor mode only once you begin editing the document, not when you're opening it just for reading. #2. Is it possible to hook it in such a way (that it's only enabled at the time we begin modifying the document)? Does such hook concept exist? Thank you very much for your helpful answers, Seb --=20 S=E9bastien=A0Vauban