From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: including emphasis characters as word characters? Date: Wed, 21 Nov 2012 14:46:22 +0100 Message-ID: <20121121134622.GB31515@kuru.dyndns-at-home.com> References: <874nkjcz2d.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbAdV-0003DG-55 for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 08:46:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbAdI-0008Bb-MR for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 08:46:41 -0500 Received: from mail-ea0-f169.google.com ([209.85.215.169]:53886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbAdI-0008BV-CB for emacs-orgmode@gnu.org; Wed, 21 Nov 2012 08:46:28 -0500 Received: by mail-ea0-f169.google.com with SMTP id a12so2374392eaa.0 for ; Wed, 21 Nov 2012 05:46:27 -0800 (PST) Content-Disposition: inline In-Reply-To: <874nkjcz2d.fsf@ericabrahamsen.net> 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 On Wed, Nov 21, 2012 at 01:19:54PM +0800, Eric Abrahamsen wrote: > 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? > IMO unless it can be done conditionally, as in it is not part of a word when not used as markup, it will be very bad. What about legitimate uses like: I am feeling blue / green. or, Addition is denoted by the + sign. ...? -- Suvayu Open source is the future. It sets us free.