From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: Indenting paragraphs manually Date: Mon, 7 Mar 2011 22:38:37 +0800 Message-ID: References: <4d73cb63$0$23764$14726298@news.sunsite.dk> <87y64sm4li.fsf@mithlond.arda> <87k4gbncv2.fsf@mithlond.arda> <87ipvv4a3x.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3054aa4f7dd5bd049de5734f X-Trace: dough.gmane.org 1299508753 23392 80.91.229.12 (7 Mar 2011 14:39:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2011 14:39:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 15:39:07 2011 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 1PwbaQ-0003s3-Qu for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 15:39:04 +0100 Original-Received: from localhost ([127.0.0.1]:52184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwbaP-0006kK-Ry for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 09:39:01 -0500 Original-Received: from [140.186.70.92] (port=44610 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwba4-0006jX-Bw for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 09:38:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwba2-0007Qi-T8 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 09:38:40 -0500 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:58667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwba2-0007Qc-Mh for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 09:38:38 -0500 Original-Received: by vws13 with SMTP id 13so4688282vws.0 for ; Mon, 07 Mar 2011 06:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=3k3z/ou4yhpVoRJ/r/LAFgJwO1tZ4IQBRl9WE6N+sxQ=; b=VXkvkWEgfw/M5YgPqYYUkMjO0U4wd9d9/0/fcy/+i8Z5DHXEfeCVGyJrYbbSyLoVaI 6Qpjw5eIaqGz8WPZZKlIINq0sh1Nx2TZ6P7gJD46VhP5TURqkv6weABLY6ZEWcukpuEj tL94uDOndcqvtmGp65GWZ3ue73jxa4NJcwiEc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FDBcdWuLbIi9YAbS3dYN8tPeEq6r2lmjE5qjtyZ6ywxIq22k96n6N2hWlk5mVMzh9f Nl5XFZOX+yOY56KkZug1JRvzHMAlQawGjP9zeDGxyfw2g6sDnFfvYgkDS8KjGs34uD4T ddDGqBDkXs4Uue659I+QB97Hascyr8Nu3ukEc= Original-Received: by 10.52.0.76 with SMTP id 12mr634421vdc.210.1299508717540; Mon, 07 Mar 2011 06:38:37 -0800 (PST) Original-Received: by 10.52.158.193 with HTTP; Mon, 7 Mar 2011 06:38:37 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 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:79850 Archived-At: --20cf3054aa4f7dd5bd049de5734f Content-Type: text/plain; charset=ISO-8859-1 On Mon, Mar 7, 2011 at 9:42 PM, Le Wang wrote: > On Mon, Mar 7, 2011 at 4:18 PM, Teemu Likonen wrote: > > ... > > >> (let ((repeat-message-function #'ignore)) >> (setq last-repeatable-command #'tl-indent-region-engine) >> (repeat nil))) >> >> > Wow, this repeat bit is a /COOL/ trick. I'll have to file this snippet > away. Region stays active, and deactivates when repeating stops (no mucking > with deactivate-mark manually) ... very cool. > > Thanks for sharing! > Teemu, one bug in the code is that you need to call (require 'repeat) at the beginning, otherwise when it gets autoloaded later `repeat-message-function' doesn't get initialized properly because of the "(let ..." binding. -- Le --20cf3054aa4f7dd5bd049de5734f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Mar 7, 2011 at 9:42 PM, Le Wang <l26wang@gmail.com>= ; wrote:
On Mon, Mar 7, 2011 at 4:18 PM, Teemu Likonen <tl= ikonen@iki.fi> wrote:

...
=A0
=A0(let ((repeat-message-function #'= ;ignore))
=A0 =A0(setq last-repeatable-command #'tl-indent-region= -engine)
=A0 =A0(repeat nil)))


Wow, this repeat bit is a /COOL/ trick. =A0I&#= 39;ll have to file this snippet away. =A0Region stays active, and deactivat= es when repeating stops (no mucking with deactivate-mark manually) ... very= cool.

Thanks for sharing!

Te= emu, one bug in the code is that you need to call (require 'repeat) at = the beginning, otherwise when it gets autoloaded later `repeat-message-func= tion' doesn't get initialized properly because of the "(let ..= ." binding.


--
Le
--20cf3054aa4f7dd5bd049de5734f--