Re: [O] 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/)]

2015-06-30 Thread Nicolas Goaziou
Hello,

Reuben Thomas r...@sc3d.org writes:

Disclaimer: I don't know what are LocalWords and I could find
a reference either in the Emacs or Elisp manual.

 I use flyspell/ispell, and add words to my org files’ LocalWords
 stanzas. I keep these at the bottom of my document (as is typical for
 other file types), but I don’t insist on that if there’s a better way.

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

 The problem is that when I press Ctrl+Return near the bottom of the
 buffer, just above the LocalWords stanza, point skips past the commented
 LocalWords and makes a new entry underneath.

See above.

 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.


Regards,

-- 
Nicolas Goaziou



Re: [O] 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/)]

2015-06-30 Thread Daniele Pizzolli
On Tue, Jun 30 2015, Nicolas Goaziou wrote:

 Hello,

 Reuben Thomas writes:

 Disclaimer: I don't know what are LocalWords and I could find
 a reference either in the Emacs or Elisp manual.

Hello,

In fact it is not so easy to find it!  There are too many way to search
in emacs and there is not an universal one (I guess).  If you have
reasonable defaults the following should work:

M-x apropos-value RET LocalWords

and should point to: ispell-words-keyword

Best,
Daniele



Re: [O] 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/)]

2015-06-30 Thread Reuben Thomas
On 30 June 2015 at 14:35, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:

 Hello,


​Hi, and thanks for your help with this.​


 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.


​This is a distracting place to put them, and requires action on the 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…


  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!

-- 
http://rrt.sc3d.org


[O] 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/)]

2015-06-30 Thread Reuben Thomas


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I use flyspell/ispell, and add words to my org files’ LocalWords
stanzas. I keep these at the bottom of my document (as is typical for
other file types), but I don’t insist on that if there’s a better way.

The problem is that when I press Ctrl+Return near the bottom of the
buffer, just above the LocalWords stanza, point skips past the commented
LocalWords and makes a new entry underneath.

I searched to see if I could find a standard way to do this. I couldn’t:
I found an example document in worg which puts the LocalWords stanza
elsewhere in the document, with its own heading.

For now, I have added a heading just before the spelling list, and
tagged it :noexport:.

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, and b) by
default in their own suitable document node (I leave the language vague
on purpose: I’d imagine a top-level node, but maybe that’s not optimal.)

Emacs : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of
 2014-11-21 on skwd, modified by Debian Package: Org-mode version 8.2.10
 (release_8.2.10 @ /usr/share/emacs/24.4/lisp/org/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex odt)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-latex-classes '((article \\documentclass[11pt]{article} 
(\\section{%s} . \\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s})
  (\\paragraph{%s} . \\paragraph*{%s}) 
(\\subparagraph{%s} . \\subparagraph*{%s}))
 (report \\documentclass[11pt]{report} (\\part{%s} . 
\\part*{%s})
  (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s}))
 (book \\documentclass[11pt]{book} (\\part{%s} . 
\\part*{%s})
  (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s}))
 (scrartcl \\documentclass{scrartcl} (\\section{%s} . 
\\section*{%s})
  (\\subsection{%s} . \\subsection*{%s}) 
(\\subsubsection{%s} . \\subsubsection*{%s})
  (\\paragraph{%s} . \\paragraph*{%s}) 
(\\subparagraph{%s} . \\subparagraph*{%s}))
 )
 org-latex-default-packages-alist '((postscript ucs nil) ( pifont nil) 
(utf8x inputenc t)
(T1 fontenc t) ( fixltx2e nil) ( 
graphicx t) ( longtable nil)
( float nil) ( wrapfig nil) ( 
rotating nil) (normalem ulem t)
( amsmath t) ( textcomp t) ( 
marvosym t) ( wasysym t)
( amssymb t) ( hyperref nil) 
\\tolerance=1000 ( palatino nil))
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-export-with-section-numbers nil
 org-file-apps '((t . xdg-open %s) (system . xdg-open %s))
 org-export-with-toc nil
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file ~/Notes/Notes.org
 org-startup-indented t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'ignore
 org-from-is-user-regexp \\Reuben Thomas\\
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '((lambda nil (local-set-key \351 (quote 
org-toggle-iimage-in-org))) window-margin-mode
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]