unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Killing punctuation chars enclosed with delimiters via backward-kill-word
@ 2013-08-06 10:29 Dmitry Cherkassov
  2013-08-06 14:46 ` Doug Lewan
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Cherkassov @ 2013-08-06 10:29 UTC (permalink / raw)
  To: help-gnu-emacs

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?



^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <5200c216.b461700a.2b09.24b9@mx.google.com>]

end of thread, other threads:[~2013-08-13 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-06 10:29 Killing punctuation chars enclosed with delimiters via backward-kill-word Dmitry Cherkassov
2013-08-06 14:46 ` 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

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).