From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: putting double quotes efficiently Date: Mon, 3 Jun 2013 11:13:02 +0530 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1370238195 7850 80.91.229.3 (3 Jun 2013 05:43:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 05:43:15 +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 07:43:16 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 1UjNY3-0003M6-P7 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 07:43:15 +0200 Original-Received: from localhost ([::1]:36428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjNY3-0008Jk-Dg for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 01:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjNXt-0008JT-Jo for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 01:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjNXs-0002VD-CL for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 01:43:05 -0400 Original-Received: from mail-pb0-x236.google.com ([2607:f8b0:400e:c01::236]:47752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjNXs-0002TT-46 for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 01:43:04 -0400 Original-Received: by mail-pb0-f54.google.com with SMTP id ro12so5131218pbb.41 for ; Sun, 02 Jun 2013 22:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=u5zeRaNFIWcq6k1bQrBymWsYX3oCZcwOL2VmkWCfsyI=; b=CWGKdCNGcPVSnxeawM/AVUcRYgdw0V82BQTasJgNrxeW5zh0N8vAzbJHySjxg8Cpaq TNd6nwvNj57pQAUVmZTN3gL8PGbQwgapZkpULMC0ym72DIh5A49X8iKy55sMYPLmKhfc EofHe24JBv1F9jcEdfYiggEWdeCG4KgOtsWmi7yQvmW/hKd7FeysKfzwYODzNEX6ZIOI 0mDnaglypDWCTvMarR/maeK+bRJXmRdyFfPAeEZBq1jk7/5c90kY3/d5V6TLNGD2zgjj JQv5SPbaXyBmc5GaNM9fFFKz2oiFYy8nHonU45GiomijhFLNQLcYlaCK03kWnNGGzL3Z 6fKQ== X-Received: by 10.68.37.100 with SMTP id x4mr22270180pbj.122.1370238182763; Sun, 02 Jun 2013 22:43:02 -0700 (PDT) Original-Received: by 10.70.32.162 with HTTP; Sun, 2 Jun 2013 22:43:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:91248 Archived-At: 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. For the first quote of each line I place the cursor before line1 and I set the mark and then move all the way down to just before line3 and then do a C-x-r-t " Then I do a regexp replace to change $ to "; I'd like to do better. While at it, can I please also know how I can use the line range in the mark set mode in user defined function? Regards, Kashyap