all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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 --
     [not found] <5200c216.b461700a.2b09.24b9@mx.google.com>
2013-08-07 22:18 ` Killing punctuation chars enclosed with delimiters via backward-kill-word Dmitry Cherkassov
     [not found] ` <mailman.2696.1375913926.12400.help-gnu-emacs@gnu.org>
2013-08-13 16:17   ` Jim Diamond
2013-08-06 10:29 Dmitry Cherkassov
2013-08-06 14:46 ` Doug Lewan

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.