unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* putting double quotes efficiently
@ 2013-06-03  5:43 C K Kashyap
  2013-06-03  7:26 ` Andreas Röhler
  0 siblings, 1 reply; 11+ messages in thread
From: C K Kashyap @ 2013-06-03  5:43 UTC (permalink / raw)
  To: help-gnu-emacs

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 " <RET>
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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-06-04 14:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.910.1370238187.22516.help-gnu-emacs@gnu.org>
2013-06-03 15:50 ` putting double quotes efficiently Udyant Wig
2013-06-04 14:52   ` Kevin Rodgers
2013-06-03 17:39 ` Joost Kremers
2013-06-04 12:21   ` C K Kashyap
2013-06-04 12:21     ` C K Kashyap
2013-06-03  5:43 C K Kashyap
2013-06-03  7:26 ` Andreas Röhler
2013-06-03  7:55   ` Andreas Röhler
2013-06-03  8:03     ` C K Kashyap
2013-06-03  9:10       ` Andreas Röhler
2013-06-03 11:52         ` C K Kashyap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).