From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: including emphasis characters as word characters? Date: Sun, 23 Dec 2012 00:30:08 +0100 Message-ID: <87bodlu0ch.fsf@bzg.ath.cx> References: <874nkjcz2d.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbL-0006YD-DM for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmYbH-0003xm-Ck for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:31 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:40272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbH-0003xZ-62 for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:27 -0500 Received: by mail-wi0-f182.google.com with SMTP id hn14so3472810wib.15 for ; Sat, 22 Dec 2012 15:35:26 -0800 (PST) In-Reply-To: <874nkjcz2d.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 21 Nov 2012 13:19:54 +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 Hi Eric, Eric Abrahamsen writes: > Would it make sense to add the markup characters (ie, the car of every > item in `org-emphasis-alist') to the list of word characters, so that as > we're moving/deleting/transposing by word in org, the markup characters > are included? I mean with a sentence like: > > #+BEGIN_SRC org > I read a book called /Fortress Besieged/ and it was awful. > #+END_SRC > > If point is at end of the sentence, I'd like to be able to hit "M-6 M-b" > and have point end up just before the first slash, then hit "M-2 M-d" and > kill both words plus second slash. > > Would this be a bad idea for some reason? I think it is a good idea to use a syntax table for these characters, but not for org-mode in general. So there is now `org-transpose-words' which uses the new syntax table temporarily. Thanks for this, -- Bastien