From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: Select an entire paragraph Date: Thu, 18 Aug 2005 16:55:42 -0500 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1124403088 19181 80.91.229.2 (18 Aug 2005 22:11:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2005 22:11:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 19 00:11:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5sb7-0006Dr-HO for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Aug 2005 00:10:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5see-0004YF-Q9 for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Aug 2005 18:14:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5sZJ-0003Yn-Eq for help-gnu-emacs@gnu.org; Thu, 18 Aug 2005 18:09:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5sZ4-0003UX-Cw for help-gnu-emacs@gnu.org; Thu, 18 Aug 2005 18:08:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5sZ3-0003I4-Qe for help-gnu-emacs@gnu.org; Thu, 18 Aug 2005 18:08:45 -0400 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E5scU-0000aC-6b for help-gnu-emacs@gnu.org; Thu, 18 Aug 2005 18:12:18 -0400 Original-Received: from lab1.ma.utexas.edu (mail@lab1.ma.utexas.edu [128.83.133.39]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id j7ILtgS19932; Thu, 18 Aug 2005 16:55:42 -0500 Original-Received: from jcorneli by lab1.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1E5sMQ-0000ZM-00; Thu, 18 Aug 2005 16:55:42 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (user@domain.invalid) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28835 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28835 Is there a way to 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