emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] org-transpose-word: inherit text mode syntax table?


From: Eric Abrahamsen
Subject: [O] [PATCH] org-transpose-word: inherit text mode syntax table?
Date: Mon, 03 Nov 2014 11:24:58 -0800
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux)

Something that has subconsciously bothered me for years:
`org-transpose-words' does its transposition using a blank syntax table,
rather than inheriting from text-mode-syntax-table, meaning we don't get
any of the default text-mode transposition behavior. The most immediate
problem is that apostrophes get "left behind" during transposition. Ie:

I can't| transpose this --> I can transpose|'t this

and not

I can't| transpose this --> I transpose can't| this

The fix would be as simple as the attached patch. I don't know if this
would break anything elsewhere, but I can't imagine it would...

Eric

Attachment: 0001-Make-org-transpose-words-use-text-mode-syntax-table.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]