unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: Select an entire paragraph
Date: Thu, 18 Aug 2005 16:55:42 -0500	[thread overview]
Message-ID: <E1E5sMQ-0000ZM-00@lab1.ma.utexas.edu> (raw)
In-Reply-To: <f76Ne.356$75.129@llslave.llan.ll.mit.edu> (user@domain.invalid)


   Is there a way to <snip>

If `mark-paragraph' doesn't do it for you, try `copy-paragraph', below.

(defun copy-paragraph ()
  "Save body of current paragraph to kill ring."
  (interactive)
  (save-excursion
    (let ((beg (progn (forward-paragraph -1)
                      (point)))
          (end (progn (forward-paragraph 1)
                      (point))))
      (kill-ring-save beg end))))


,----  M-x apropos
| forward-paragraph
|   Command: Move forward to end of paragraph.
| [...]
| mark-paragraph
|   Command: Put point at beginning of this paragraph, mark at end.
`----> use it

  parent reply	other threads:[~2005-08-18 21:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 21:19 Select an entire paragraph user
2005-08-18 20:29 ` Peter Dyballa
2005-08-18 20:33 ` Denis Bueno
2005-08-18 20:41 ` Kevin Rodgers
2005-08-18 20:46 ` Neon Absentius
     [not found] ` <mailman.4233.1124397334.20277.help-gnu-emacs@gnu.org>
2005-08-18 20:58   ` Sébastien Kirche
2005-08-18 21:55 ` Joe Corneli [this message]
     [not found] ` <mailman.4239.1124398827.20277.help-gnu-emacs@gnu.org>
2005-08-19 10:22   ` Sébastien Kirche

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=E1E5sMQ-0000ZM-00@lab1.ma.utexas.edu \
    --to=jcorneli@math.utexas.edu \
    /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).