From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reuben Thomas Subject: Re: Bug: It's not obvious how to keep LocalWords (spelling exceptions) conveniently [8.2.10 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)] Date: Tue, 30 Jun 2015 17:57:49 +0100 Message-ID: References: <87y4j1346c.fsf@sc3d.org> <87si99iak3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01538cbe2f09530519bf1b7e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9yr1-0002PM-J5 for emacs-orgmode@gnu.org; Tue, 30 Jun 2015 12:57:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9yr0-0002Eg-Bh for emacs-orgmode@gnu.org; Tue, 30 Jun 2015 12:57:51 -0400 Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:35541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9yr0-0002EU-4R for emacs-orgmode@gnu.org; Tue, 30 Jun 2015 12:57:50 -0400 Received: by iecuq6 with SMTP id uq6so16798303iec.2 for ; Tue, 30 Jun 2015 09:57:49 -0700 (PDT) In-Reply-To: <87si99iak3.fsf@nicolasgoaziou.fr> 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: Reuben Thomas , "emacs-orgmode@gnu.org" --089e01538cbe2f09530519bf1b7e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 30 June 2015 at 14:35, Nicolas Goaziou wrote: > Hello, > =E2=80=8BHi, and thanks for your help with this.=E2=80=8B > Disclaimer: I don't know what are "LocalWords" and I could find > a reference either in the Emacs or Elisp manual. > I'm sorry, I assumed it would be documented. By "LocalWords" it turns out that I mean "the value of ispell-words-keyword". Put them at the beginning of the file, i.e., before the first headline, > and comment them. > =E2=80=8BThis is a distracting place to put them, and requires action on th= e part of the user: ispell's non-configurable behaviour is to look for ispell-words-keyword, and, if it doesn't find it, start adding words at the end of the buffer. Hence it would be better if org-mode could work like other modes. The current behaviour, where org-insert-heading-respect-content skips not only blank lines but also comments, does seem a bit odd in any case: I'd expect the next heading to be inserted before any comments following point= =E2=80=A6 > > However, it would be good if this worked out of the box, i.e. if if > > org-mode instrumented ispell suitably so that when LocalWords entries > > are added, they are a) by default not included in the export, > > It will not happen if you comment them. > Sorry, I was mixing up the LocalWords entries, which are automatically commented by ispell, and my heading. Ignore this! --=20 http://rrt.sc3d.org --089e01538cbe2f09530519bf1b7e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 3= 0 June 2015 at 14:35, Nicolas Goaziou <mail@nicolasgoaziou.fr>= wrote:
Hello,<= br>

=E2=80=8BHi, and thanks for your help with this.=E2=80=8B
=C2=A0<= /div>
Disclaimer: I don't know what are "LocalWords" and I could fi= nd
a reference either in the Emacs or Elisp manual.

<= div class=3D"gmail_default" style=3D"font-size:small">I'm sorry, I assu= med it would be documented. By "LocalWords" it turns out that I m= ean "the value of ispell-words-keyword".

Put them at the beginning of the file, i.e., before the first headline,
and comment them.

=E2=80=8BThis is a distracting place to put them, an= d requires action on the part of the user: ispell's non-configurable be= haviour is to look for ispell-words-keyword, and, if it doesn't find it= , start adding words at the end of the buffer. Hence it would be better if = org-mode could work like other modes.

The current behaviour, where org-insert-head= ing-respect-content skips not only blank lines but also comments, does seem= a bit odd in any case: I'd expect the next heading to be inserted befo= re any comments following point=E2=80=A6
=C2=A0
> However, it would be good if this worked out of the box, = i.e. if if
> org-mode instrumented ispell suitably so that when LocalWords entries<= br> > are added, they are a) by default not included in the export,

It will not happen if you comment them.

Sorry, I was mixing up = the LocalWords entries, which are automatically commented by ispell, and my= heading. Ignore this!

--
--089e01538cbe2f09530519bf1b7e--