From: kai.grossjohann@gmx.net (Kai Großjohann)
Subject: Re: I don't want Ctrl-Backspace to span different lines...
Date: Thu, 15 May 2003 13:45:53 +0200 [thread overview]
Message-ID: <84llx8whzi.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: 445cd6bf.0305150239.2b255a59@posting.google.com
j_del_strother@hotmail.com (Jon) writes:
> Is there any way to prevent Ctrl-Backspace & Ctrl-Delete from spanning
> lines?
You have to write Lisp code. For example,
(defun jon-kill-word (n)
"Kill N words or to end of line, whichever comes first."
(interactive "p")
(let ((eol (point-at-eol))
(nwords (save-excursion (forward-word n) (point))))
(kill-region (point) (min eol nwords))))
(defun jon-backward-kill-word (n)
"Kill N words backward or to beginning of line, whichever comes first."
(interactive "p")
(let ((bol (point-at-bol))
(nwords (save-excursion (backward-word n) (point))))
(kill-region (point) (max (bol nwords)))))
If these commands do what you want, you can bind them to keys you like.
--
This line is not blank.
next prev parent reply other threads:[~2003-05-15 11:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 10:39 I don't want Ctrl-Backspace to span different lines Jon
2003-05-15 11:45 ` Kai Großjohann [this message]
2003-05-16 8:19 ` Jon
2003-05-17 19:52 ` Kai Großjohann
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84llx8whzi.fsf@lucy.is.informatik.uni-duisburg.de \
--to=kai.grossjohann@gmx.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.
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).