help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: putting double quotes efficiently


From: Andreas Röhler
Subject: Re: putting double quotes efficiently
Date: Mon, 03 Jun 2013 11:10:04 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Am 03.06.2013 10:03, schrieb C K Kashyap:
Thanks Andreas,
This works.
Although I'd still like to know how to write custom function that work over
a marked region.

For example that way:

(defun my-New-Command (beg end)
  (interactive "r*")
  (save-excursion
    (save-restriction
      (narrow-to-region beg end)
      (goto-char beg)
      (DO-What-I-Want...

Recommend a walk through Info section Elisp, you will find plenty of useful 
stuff.

Cheers,

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]