all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: Copying till end of word or line
Date: Wed, 26 Aug 2009 12:54:29 +0200	[thread overview]
Message-ID: <7ciqgau9p6.fsf@pbourguignon.anevia.com> (raw)
In-Reply-To: mailman.5361.1251240327.2239.help-gnu-emacs@gnu.org

"Farhan Ahmed" <farhan@alienfluid.com> writes:
> Is there a single command that will let me copy the word under the cursor
> into my yank buffer? Also, how about till the end of the line?

I don't know, but let's see.

What is the command used to copy the region?

I don't know, but let's see.

How do we find the command executed when I type something?

C-h k  something

What do I type to copy something?

C-w

How do we find the command executed when I type C-w?

C-h k C-w

What is the name of the command used to copy the region?

kill-region

What other commands exist that start by kill-?

We can use M-x apropos-command or completion upon entry of a command
to see them.  Let's kill two rabits with one stone by using the latest
option, on C-h f which will give us the help of the selected command:

C-h f kill- TAB

Do I see anything I like?

Yes, there's kill-line, kill-whole-line, kill-word, etc...

Is there a shortcut for kill-word?

I don't know, but let's see.  Type word RET to complete and get the
help.

Does the help mention any binding for the kill-word command?

Yes, there's M-d.  Happy!

-- 
__Pascal Bourguignon__


       reply	other threads:[~2009-08-26 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5361.1251240327.2239.help-gnu-emacs@gnu.org>
2009-08-26 10:54 ` Pascal J. Bourguignon [this message]
2009-08-27 19:26   ` Copying till end of word or line Suvayu Ali
2009-08-25 20:13 Farhan Ahmed
2009-08-26  2:47 ` Eric Abrahamsen
2009-08-26  7:52 ` Peter Dyballa

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=7ciqgau9p6.fsf@pbourguignon.anevia.com \
    --to=pjb@informatimago.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.