From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: yank without indentation? Date: Fri, 06 Jun 2014 09:27:45 +0300 Message-ID: <83r4324kny.fsf@gnu.org> References: <87d2envvq8.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1402036108 8592 80.91.229.3 (6 Jun 2014 06:28:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2014 06:28:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 08:28:21 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 1WsndV-0002Au-Et for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 08:28:21 +0200 Original-Received: from localhost ([::1]:45422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsndV-0002z7-0c for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2014 02:28:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsndA-0002rt-NB for help-gnu-emacs@gnu.org; Fri, 06 Jun 2014 02:28:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsnd5-00004z-P7 for help-gnu-emacs@gnu.org; Fri, 06 Jun 2014 02:28:00 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:50293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsnd5-00004v-Gt for help-gnu-emacs@gnu.org; Fri, 06 Jun 2014 02:27:55 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0N6Q00500HM3PA00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 06 Jun 2014 09:27:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N6Q005D8HYICP80@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 06 Jun 2014 09:27:54 +0300 (IDT) In-reply-to: <87d2envvq8.fsf@robertthorpeconsulting.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:98051 Archived-At: > From: Robert Thorpe > Date: Thu, 05 Jun 2014 23:26:39 +0100 > Cc: eric@ericabrahamsen.net, help-gnu-emacs@gnu.org > > 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. This is shorter: "C-y C-M-\". And if you need to change the indentation, "C-y C-u 2 C-x TAB" (in this case will increase indentation by 2 columns, but the number 2 is just an example).