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
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
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
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
* 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
---
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
* 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
---
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