From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Org-mode + flyspell = too much (programming code is screened) Date: Tue, 30 Jun 2009 12:31:35 +0200 Organization: Sebastien Vauban Message-ID: <87k52u3tdk.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246421373 16702 80.91.229.12 (1 Jul 2009 04:09:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2009 04:09:33 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Wed Jul 01 06:09:26 2009 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 1MLr8P-0006To-Tu for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jul 2009 06:09:26 +0200 Original-Received: from localhost ([127.0.0.1]:42697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLr8P-0001ch-Bf for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Jul 2009 00:09:25 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!newsfeed0.kamp.net!newsfeed.kamp.net!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 Original-X-Trace: news.eternal-september.org U2FsdGVkX18MZuQkaXPdMguxqcOWiY2AcLPZznqfFa2ffBYvFXNj7SiIS7D8kSSoyeqh9uGPQCwCDQwpovWBhCQBlbFcpxmMr5ir0da64yA0JzCqqlbpQ0JKNQoQhcZoYCZxAcZkgqIG7DSlmF1ZAg== Original-X-Complaints-To: abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org Original-NNTP-Posting-Date: Tue, 30 Jun 2009 10:34:35 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+6vxsya5sspIFjbbdZLJO76MB6RvSk4VM= X-Archive: encrypt Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMODhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QHw/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnYDQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ70hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloem/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= X-Www-site: Under construction... Cancel-Lock: sha1:aB2IBxA27rstbytAlwIzlM39TV8= sha1:O4s/U+Zd3sen4rvoqGXJ6FjjE4o= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:170467 X-Mailman-Approved-At: Tue, 30 Jun 2009 23:54:52 -0400 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:65697 Archived-At: Hello, I'd want to have flyspell reporting me spelling mistakes in Org-mode. I did update my `.emacs' this way: --8<---------------cut here---------------start------------->8--- ;; turn on `flyspell' when changing a buffer which was unmodified (defvar my-flyspell-major-mode-list '(html-mode latex-mode message-mode muse-mode nxml-mode org-mode ; FIXME If uncommented, flyspell gets crazy!? text-mode)) (add-hook 'first-change-hook (lambda () (when (and (memq major-mode my-flyspell-major-mode-list) (not flyspell-mode)) (my-turn-on-flyspell-french)))) (defun my-turn-on-flyspell-french () "Unconditionally turn on flyspell-mode (in French) and call `flyspell-buffer'." (interactive) (flyspell-mode 1) (ispell-change-dictionary "francais") (flyspell-buffer)) --8<---------------cut here---------------end--------------->8--- When doing so, Org-mode buffers get spelled, but my `.emacs' as well. I mea= n, not only the comments and the strings, but also the code itself... Don't understand at all this impact... Commenting the `org-mode' line returns me with the correct spelling (prog-aware, I should say) of my Emacs configuration file, but -- then -- my Org-mode buffers aren't still not spelled anymore... FYI, I am using: /usr/share/emacs/site-lisp/dictionaries-common/flyspell.el from a fresh Ubuntu 9.04 installation, that is version: "FSF emacs CVS20090116(r1.141) + Debian `dictionaries-common' changes (l= ike xemacs compatibility)" BTW, I don't understand that neither in that version, neither in: http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell-1.7o.el the variable `flyspell-prog-mode-hook' is referenced but does not exist. Is this anything here someone can help about? Many thanks in advance... Best regards, Seb --=20 S=C3=A9bastien=C2=A0Vauban