From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: apply macro to region lines by name Date: Mon, 05 Jul 2010 19:40:32 -0700 Message-ID: <4C3297A0.4040508@gmail.com> References: , <48E8363E-CC44-47F0-88FD-4A86A7ADBBD1@Web.DE>, <4C323378.9070507@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1278384065 26138 80.91.229.12 (6 Jul 2010 02:41:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 02:41:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Corey Foote Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 06 04:41:04 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OVy5m-0008Fw-Ev for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Jul 2010 04:41:02 +0200 Original-Received: from localhost ([127.0.0.1]:57522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVy5l-0008Gd-R9 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jul 2010 22:41:01 -0400 Original-Received: from [140.186.70.92] (port=45860 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVy5O-0008G9-1X for help-gnu-emacs@gnu.org; Mon, 05 Jul 2010 22:40:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVy5M-00012T-GV for help-gnu-emacs@gnu.org; Mon, 05 Jul 2010 22:40:37 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:39895) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVy5M-00012N-8B for help-gnu-emacs@gnu.org; Mon, 05 Jul 2010 22:40:36 -0400 Original-Received: by pwi8 with SMTP id 8so502161pwi.0 for ; Mon, 05 Jul 2010 19:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=fQqgKYalnPBm/Mm92c0eBn2+bP8AHXLrghy7tnRmSM0=; b=ZDhZI3OLq9IvBg+X7euyaocVk4/dR7H6SLuQr5VE2j3F9MECk1fmDJEaHNBVceh8YB D9sfpu6exfyb5jh6i9UCrsBjiD/vWUmgUD8Vp21kg1jtmkcgTTED3UrJm1S7b0aqUnSK nyL8AmPZ89cJWdFu8zAbFKrglUai5jxZS/ZZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=wP69EJIKC9bQO5WYLylw3kw1rykiqzUFkLyj7OCCArUJnbqfeztOnJLDpZij4hjrHO ULXoj/ySivao4X7LdWCMzAFgo8g4RxEdxMbmJAM6GxpaIKD8FdBC7DwMarDo4OsnGFft 0Dc4l2lBX3Kq/AhMcf5fx8Tq+eu4R15mHcYYY= Original-Received: by 10.114.109.10 with SMTP id h10mr4185274wac.132.1278384035054; Mon, 05 Jul 2010 19:40:35 -0700 (PDT) Original-Received: from bhishma.homelinux.net (d66-183-47-128.bchsia.telus.net [66.183.47.128]) by mx.google.com with ESMTPS id 33sm74187384wad.18.2010.07.05.19.40.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 05 Jul 2010 19:40:34 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74087 Archived-At: On Monday 05 July 2010 06:17 PM, Corey Foote wrote: > > Thanks, but that only applies the macro to the last line of the region. I want it to apply it to every line within the region. > How about you mark the region, then `M-='. This runs `count-lines-region'. And then run `M- M-x foo' Its not very clean but that should do it. -- Suvayu Open source is the future. It sets us free.