From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: putting double quotes efficiently Date: Mon, 03 Jun 2013 11:10:04 +0200 Message-ID: <51AC5D6C.2080505@easy-emacs.de> References: <51AC4543.1000508@easy-emacs.de> <51AC4C03.7050504@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1370250450 29379 80.91.229.3 (3 Jun 2013 09:07:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 09:07:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: C K Kashyap Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 03 11:07:29 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 1UjQjg-000379-OC for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 11:07:28 +0200 Original-Received: from localhost ([::1]:42070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjQjg-00054i-30 for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jun 2013 05:07:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjQjR-00054Y-3Y for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 05:07:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjQjM-00028j-I4 for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 05:07:13 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:54160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjQjM-00028f-7t for help-gnu-emacs@gnu.org; Mon, 03 Jun 2013 05:07:08 -0400 Original-Received: from [192.168.178.21] (brln-4db9a7f0.pool.mediaWays.net [77.185.167.240]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MAo9v-1UZHhw1ECJ-00BSKA; Mon, 03 Jun 2013 11:07:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 In-Reply-To: X-Provags-ID: V02:K0:+TVOjgDDYz32CVqBmu3FsdMJgS1BKXLPd1YOuZzQlYC h8cGaZXbITHyi8pTFB6CJw8LEbUnavy1Xd2rthfuOFSTHib1jh drp3IfuSX4ORQ/gWXeu4d2NJap7YsK+JDSQ+FwBKUGIDlatWY6 +xzlaWa8EreK/9BFeRqjDl7BZW1qkVkUBMLFCM2xMjyzcQb8pr g30um8hVkuqlGi/Xn5ICeQRKjPkEH4Kwlz6SzyqgHQMztaZMN/ 7F+yxXBXXFtI4zYwEvRLiIqHNeBuitWdLScg/jnPMVfeZAMM/8 ngfygJqoAArsqxNnjZ3ravLOmgJtUaRmNd+SJhLYGbp3/F7VPK RI60an+/Fat3NMV9DOT58+yHLk9LjF3kSAWfZAWqE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.171 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:91253 Archived-At: 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