emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: including emphasis characters as word characters?
Date: Sun, 23 Dec 2012 00:30:08 +0100	[thread overview]
Message-ID: <87bodlu0ch.fsf@bzg.ath.cx> (raw)
In-Reply-To: <874nkjcz2d.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 21 Nov 2012 13:19:54 +0800")

Hi Eric,

Eric Abrahamsen <eric@ericabrahamsen.net> 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

  parent reply	other threads:[~2012-12-22 23:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21  5:19 including emphasis characters as word characters? Eric Abrahamsen
2012-11-21 13:46 ` Suvayu Ali
2012-11-22  2:10   ` Eric Abrahamsen
2012-12-22 23:30 ` Bastien [this message]
2012-12-23  4:14   ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bodlu0ch.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric@ericabrahamsen.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).