all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Cherkassov <dcherkassov@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Killing punctuation chars enclosed with delimiters via backward-kill-word
Date: Tue, 6 Aug 2013 14:29:16 +0400	[thread overview]
Message-ID: <CAN0j1dROhakzkC51a7y94s-shYsdBEtEjSrrjFCoXm3e8FHtMQ@mail.gmail.com> (raw)

Hi list. Here is my question.

Suppose this text:

int variable;
[
 ^
 |
 +- Pressing M-h here will erase ``variable;''. I don't like this behavior.

Is there a functionality to kill only punctuation char if it is enclosed by
delimiters or newlines?

More examples:

int array [
          ^
          |
          + - Pressing M-h here kills ``array'' as well

int array []
            ^
            |
            + - Pressing M-h here kills ``array'' as well


         + - pressing M-d Here kills ``int''
         |
         V
int array [];
int val;


Any ideas?

Could this be resolved by hacking syntax-table? Or we should rewrite
``backward-kill-ford'' and ``kill-word'' functions?



             reply	other threads:[~2013-08-06 10:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-06 10:29 Dmitry Cherkassov [this message]
2013-08-06 14:46 ` Killing punctuation chars enclosed with delimiters via backward-kill-word Doug Lewan
     [not found] <5200c216.b461700a.2b09.24b9@mx.google.com>
2013-08-07 22:18 ` Dmitry Cherkassov
     [not found] ` <mailman.2696.1375913926.12400.help-gnu-emacs@gnu.org>
2013-08-13 16:17   ` Jim Diamond

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

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

  git send-email \
    --in-reply-to=CAN0j1dROhakzkC51a7y94s-shYsdBEtEjSrrjFCoXm3e8FHtMQ@mail.gmail.com \
    --to=dcherkassov@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.