Re: [O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-08-30 Thread Carsten Dominik
On 25.5.2013, at 09:17, Trevor Murphy wrote: > > Hi, list. > > I recently started using flyspell, but I wasn't pleased with the spell > checking in my source code blocks. After digging a bit for a > solution, I found a post to the list with a nice solution[0]. > However, it seems no patch was

Re: [O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-05-30 Thread Matt Lundin
Bastien writes: > Hi Trevor, > > Trevor Murphy writes: > >> + (not (eq (org-element-type (org-element-at-point)) 'src-block) > > I think `org-in-src-block-p', while a bit less reliable, will be > faster, and reliable/fast enough for this use-case. > > Let's see what others think/test. F

Re: [O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-05-29 Thread Trevor Murphy
Thanks, Bastien. Your suggestion has been working perfectly fine for me. Updated patch sent in reply to the first in the chain (I hope ... still trying to master git send-email). Trevor On Sat, May 25, 2013 at 11:52 AM, Bastien wrote: > Hi Trevor, > > Trevor Murphy writes: > > > + (not

Re: [O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-05-25 Thread Bastien
Hi Trevor, Trevor Murphy writes: > + (not (eq (org-element-type (org-element-at-point)) 'src-block) I think `org-in-src-block-p', while a bit less reliable, will be faster, and reliable/fast enough for this use-case. Let's see what others think/test. Thanks, -- Bastien

[O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-05-25 Thread Trevor Murphy
* lisp/org.el (org-mode-flyspell-verify): Check if `org-element-at-point' is of type `src-block', and don't flyspell if that's the case. TINYCHANGE --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 94078f9..ce48bb0 100644 ---

Re: [O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-05-25 Thread Trevor Murphy
Ack, what? Please disregard, I slipped a double negative in somehow. On Sat, May 25, 2013 at 3:17 AM, Trevor Murphy wrote: > * lisp/org.el (org-mode-flyspell-verify): Check if > `org-element-at-point' is of type `src-block', and don't flyspell if > that's the case. > > TINYCHANGE > --- > l

[O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-05-25 Thread Trevor Murphy
* lisp/org.el (org-mode-flyspell-verify): Check if `org-element-at-point' is of type `src-block', and don't flyspell if that's the case. TINYCHANGE --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 94078f9..81428f5 100644 ---

[O] [PATCH] org.el: Don't flyspell check within source code blocks

2013-05-25 Thread Trevor Murphy
Hi, list. I recently started using flyspell, but I wasn't pleased with the spell checking in my source code blocks. After digging a bit for a solution, I found a post to the list with a nice solution[0]. However, it seems no patch was ever submitted. So, here goes. If there's a deeper reason t