From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: including emphasis characters as word characters? Date: Sun, 23 Dec 2012 12:14:56 +0800 Message-ID: <87obhljtfj.fsf@ericabrahamsen.net> References: <874nkjcz2d.fsf@ericabrahamsen.net> <87bodlu0ch.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tmcth-0002qB-A6 for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 23:10:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tmcte-0000US-3V for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 23:10:45 -0500 Received: from plane.gmane.org ([80.91.229.3]:36062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tmctd-0000UK-TX for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 23:10:42 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tmctn-000582-Mm for emacs-orgmode@gnu.org; Sun, 23 Dec 2012 05:10:51 +0100 Received: from 114.250.107.227 ([114.250.107.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Dec 2012 05:10:51 +0100 Received: from eric by 114.250.107.227 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Dec 2012 05:10:51 +0100 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: emacs-orgmode@gnu.org Bastien writes: > 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. Cool!