From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey Spencer Subject: Re: More flyspell-overlays removed Date: Tue, 31 Jul 2012 23:56:20 +1000 Message-ID: References: <87d33g9qx5.fsf@gnu.org> <0348D525-F0A3-4B85-9593-9704917CD9D9@student.uib.no> <87boixik82.fsf@gnu.org> <2059F59A-5829-481F-98CD-E80B238AFC60@student.uib.no> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0438eb59eb9ac504c6208b39 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwCwE-0004HM-ES for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 09:56:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwCw9-0007JB-E3 for emacs-orgmode@gnu.org; Tue, 31 Jul 2012 09:56:42 -0400 In-Reply-To: <2059F59A-5829-481F-98CD-E80B238AFC60@student.uib.no> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bjarte Johansen Cc: Bastien , emacs-orgmode@gnu.org --f46d0438eb59eb9ac504c6208b39 Content-Type: text/plain; charset=ISO-8859-1 I don't have any problem with natbib cite commands including \ref, \cite, \citet, \citep, etc.... Maybe your version of flyspell?? But it should act exactly as it does in auctex or your latex mode of emacs. I would check in there if it works properly because should parse the same way if not maybe debug from there. Cheers, Jeff On Mon, Jul 30, 2012 at 9:44 PM, Bjarte Johansen wrote: > > On 30 Jul, 2012, at 13:03 , Bastien wrote: > > > I've pushed a fix which should let flyspell ignore more commonly > > used Org keywords. Please test it. > > This works great. You forgot #+LATEX_CLASS_OPTIONS: though. > > > On 30 Jul, 2012, at 13:13 , Jeffrey Spencer > wrote: > > > Will give it a test later in the week and let you know. > > > > Also you can add this hook to make it act like the fly-spell mode in > auctex (if familiar with that) which skips most tex based commands (trips > up though if you have only one $ because assumes another $ sign later so > won't check spelling in that block. I would just do \$ if you need a single > dollar sign. This is the only really limitation I have found to adding this > that I have noticed thus far. > > (add-hook 'org-mode-hook (lambda () (setq ispell-parser 'tex))) > > I tried this and it does work for most things, but for some reason it > doesn't like the natbib \cite commands. --f46d0438eb59eb9ac504c6208b39 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I don't have any problem with natbib cite commands including \ref, \cit= e, \citet, \citep, etc....

Maybe your version of flyspel= l?? But it should act exactly as it does in auctex or your latex mode of em= acs. I would check in there if it works properly because should parse the s= ame way if not maybe debug from there.

Cheers,
Jeff

On Mon, Jul 30, 2012 at 9:44 PM, Bjarte Johansen <bjo013@student.uib= .no> wrote:

On 30 Jul, 2012, at 13:03 , Bastien <bzg@= gnu.org> wrote:

> I've pushed a fix which should let flyspell ignore more commonly > used Org keywords. =A0Please test it.

This works great. You forgot #+LATEX_CLASS_OPTIONS: though.


On 30 Jul, 2012, at 13:13 , Jeffrey Spencer <jeffspencerd@gmail.com> wrote:

> Will give it a test later in the week and let you know.
>
> Also you can add this hook to make it act like the fly-spell mode in a= uctex (if familiar with that) which skips most tex based commands (trips up= though if you have only one $ because assumes another $ sign later so won&= #39;t check spelling in that block. I would just do \$ if you need a single= dollar sign. This is the only really limitation I have found to adding thi= s that I have noticed thus far.
> (add-hook 'org-mode-hook (lambda () (setq ispell-parser 'tex))= )

I tried this and it does work for most things, but for some reason it= doesn't like the natbib \cite commands.

--f46d0438eb59eb9ac504c6208b39--