From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: York Zhao Newsgroups: gmane.emacs.help Subject: Re: How to add property for a buffer object Date: Wed, 12 Sep 2012 21:43:36 -0400 Message-ID: References: <74A463A666FC4C958DC458B69A7CD6F1@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1347500625 12916 80.91.229.3 (13 Sep 2012 01:43:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 01:43:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 03:43:48 2012 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 1TByT6-0002Is-CM for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 03:43:48 +0200 Original-Received: from localhost ([::1]:41722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TByT2-00060J-Q4 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Sep 2012 21:43:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBySx-000603-PI for help-gnu-emacs@gnu.org; Wed, 12 Sep 2012 21:43:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBySw-0008Tf-QE for help-gnu-emacs@gnu.org; Wed, 12 Sep 2012 21:43:39 -0400 Original-Received: from mail-vb0-f41.google.com ([209.85.212.41]:53390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBySw-0008Tb-M3 for help-gnu-emacs@gnu.org; Wed, 12 Sep 2012 21:43:38 -0400 Original-Received: by vbkv13 with SMTP id v13so3540648vbk.0 for ; Wed, 12 Sep 2012 18:43:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jfQXOwHagWm1c27xE+NZXSUGd4tyf58a67B6AqRyJSk=; b=XErbFiRQCibX/3zLYn+iHpsdDL+0aLAbukdAbND4m3AhXiajdCFssnoc38bALk0jzN qGRovTQmVxMApLWwP4Ib8HhW9DvlXweONgyxtFBko6SCJy93/bi/twBZwxBnvgUxVBeo Eb4caZEfXDwBqgxM6auL2v/o1gvG7V01afzlpHCduMjczannIVVfq9Ei1oEEra8CxAvh z1Pz5++lz0o5pvR7+YcOMYTkXyHhEI69BJulqaRTIIdinfdaNce8fygzlVecBhdXs3rH mukPi+rfKiKn/v+Oo3NSsVF/VeWypn0xKgqXiXLlCHLYfMn1b14d119m/rvBn6qaCp8R lQvA== Original-Received: by 10.220.152.134 with SMTP id g6mr274308vcw.10.1347500616830; Wed, 12 Sep 2012 18:43:36 -0700 (PDT) Original-Received: by 10.52.185.194 with HTTP; Wed, 12 Sep 2012 18:43:36 -0700 (PDT) In-Reply-To: <74A463A666FC4C958DC458B69A7CD6F1@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.41 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:86739 Archived-At: > I was suggesting that you might be able to just select several paragraphs and > use one of the commands I mentioned, instead of hitting `M-q' for each > paragraph. > > What I'm looking for is something like "refill-mode" so that I > don't have >to always hit "M-q" while inserting or deleting text > in the middle of a line. >My fingers hurt a lot so I always try > to hit as less keys as possible. Why >bother to fill immediately? Why not select all your paragraphs when you're done >editing or at a stopping point, and then use one of the region filling >commands? That was my suggestion, anyway, FWIW. Looks at that I actually missed you point :), but on the other hand, you actually don't have to use any other filling command to fill the selection, at least in Emacs 24.2, you could use "M-q" (`fill-paragraph') to fill the region because `fill-paragraph' now checks whether there is an active region, if so, it will fill the region instead of filling the paragraph. But my problem is not here, it is that if I insert enough text in the middle of a line, the current line will be broken into two lines, but unfortunately, not two physical lines, it just becomes two visual lines, I mean, it is still one line, and since I'm using Vim key bindings (the wonderful Evil package), if I hit "j" I will be moving to next physical line not visual line, and I have to hit "gj" if I want to move to next visual line which is a pain. Maybe I really need to configure my "Evil" to move visual lines when "j" and "k" are pressed. Thanks, York