From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-transpose-word: inherit text mode syntax table? Date: Mon, 03 Nov 2014 21:12:29 +0100 Message-ID: <87wq7ccac2.fsf@nicolasgoaziou.fr> References: <87y4rsgk8l.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlNyh-0000po-5I for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 15:11:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlNyW-0005AX-67 for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 15:11:51 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:41001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlNyW-0005AH-0S for emacs-orgmode@gnu.org; Mon, 03 Nov 2014 15:11:40 -0500 In-Reply-To: <87y4rsgk8l.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 03 Nov 2014 11:24:58 -0800") 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Hello, Eric Abrahamsen writes: > 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... Applied. Thank you. Regards, -- Nicolas Goaziou