From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: yank without indentation? Date: Thu, 05 Jun 2014 23:26:39 +0100 Message-ID: <87d2envvq8.fsf@robertthorpeconsulting.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402007240 19105 80.91.229.3 (5 Jun 2014 22:27:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2014 22:27:20 +0000 (UTC) Cc: eric@ericabrahamsen.net, help-gnu-emacs@gnu.org To: Jacob Gerlach Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 00:27:10 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wsg7p-0001Ph-2T for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 00:27:09 +0200 Original-Received: from localhost ([::1]:44027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsg7o-0002Lx-Lz for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jun 2014 18:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsg7V-0002Lf-Ky for help-gnu-emacs@gnu.org; Thu, 05 Jun 2014 18:26:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsg7N-0002rU-F9 for help-gnu-emacs@gnu.org; Thu, 05 Jun 2014 18:26:49 -0400 Original-Received: from outbound-smtp05.blacknight.com ([81.17.249.38]:38868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsg7N-0002qN-8w for help-gnu-emacs@gnu.org; Thu, 05 Jun 2014 18:26:41 -0400 Original-Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp05.blacknight.com (Postfix) with ESMTP id 4200921005F for ; Thu, 5 Jun 2014 22:24:14 +0000 (UTC) Original-Received: (qmail 32447 invoked from network); 5 Jun 2014 22:26:40 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.79.221.29]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 5 Jun 2014 22:26:40 -0000 In-Reply-To: (message from Jacob Gerlach on Thu, 5 Jun 2014 15:25:05 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.38 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98043 Archived-At: Jacob Gerlach writes: > I run in to this problem sometimes when yanking a piece of code with > certain indentation into a new place where it should have different (more > or less) indentation. My solution is: > > C-y > C-x C-x (exchange-point-and-mark) to re-highlight the yanked text > to properly indent it for the new contexxt That's what I do. Another possibility is using the region rectange commands C-x r k and C-x r y. BR, Robert Thorpe