From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: putting double quotes efficiently Date: 3 Jun 2013 17:39:18 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1370281278 24967 80.91.229.3 (3 Jun 2013 17:41:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 17:41:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 03 19:41:18 2013 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 1UjYks-0003qW-0a for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 19:41:14 +0200 Original-Received: from localhost ([::1]:41120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjYkr-0000EV-K0 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 13:41:13 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-X-Trace: individual.net nw2EB0J+yzSSzEKPpowJggqLd+A/qUFbiLn5gfIZJ315u5AAmR Cancel-Lock: sha1:8ic4bEhxXvQsJYCM7RxRyBMWWoc= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:199001 X-Mailman-Approved-At: Mon, 03 Jun 2013 13:41:05 -0400 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:91268 Archived-At: C K Kashyap wrote: > Hi, > I am looking for a way to transform > > print line1 > print line two > print line3 > > into > > print "line1"; > print "line two"; > print "line3"; > > most efficiently. Personally, I'd use Magnar Sveen's nifty multiple-cursors library for this. Put the cursor on the l of `line1', activate the mark (C-SPC), move down to the l of `line3', hit C-S-c C-S-c, then type `"', then C-e, then `";' and done. -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)