From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Timur Aydin" Newsgroups: gmane.emacs.help Subject: yank-and-indent Date: Wed, 20 Nov 2002 22:28:56 +0200 Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037824229 14983 80.91.224.249 (20 Nov 2002 20:30:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 20 Nov 2002 20:30:29 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18EbUQ-0003tW-00 for ; Wed, 20 Nov 2002 21:30:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18EbVF-00049q-00; Wed, 20 Nov 2002 15:31:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 20 Nov 2002 14:26:16 -0600 Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Original-Lines: 25 Original-X-Trace: sv3-14IT9vCJuQ9AWNhVOOOQXZTxcAXpnXVXXw15erzh3Zcrzh1DUASLwj4LUDFWJIlKrVN1x0NUIOC+ymI!vBbdOJ7dAJJfifrHvi4MliPWgYQb/pQXq13YIlO0I8jzQ2bISIqE4CikUOUiW5A= Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:107256 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3811 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3811 Hi, In programming, very often a number of lines are killed, yanked to another location and are reindented according to the new location. Currently, the following sequence has to be done manually: 1) Mark the lines to be killed 2) Kill the lines 3) Yank into new location 4) Mark the same lines again. 5) Hit C-M-\ to indent the lines according to new location. I would like to reduce the procedure to: 1) Mark the lines to be killed 2) Kill the lines 3) Hit ???? to yank and indent the lines. Any wisdom on how this can be accomplished? I am a beginner in lisp, so hopefully there is a way that doesn't require writing a lisp function... -- Timur