From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?TGx1w61z?= Newsgroups: gmane.emacs.devel Subject: Re: unfill-paragraph (region) and indentation Date: Mon, 02 Nov 2009 19:21:25 +0100 Message-ID: <86bpjkn5y2.wl%lluis@ginnungagap.pc.ac.upc.edu> References: <87zl747u59.fsf@mat.ucm.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1257186211 25758 80.91.229.12 (2 Nov 2009 18:23:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 18:23:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 02 19:23:24 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N51Yp-0005NQ-Kd for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 19:23:23 +0100 Original-Received: from localhost ([127.0.0.1]:55834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N51Yo-0002Dn-Om for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 13:23:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N51Wr-0001ju-T4 for emacs-devel@gnu.org; Mon, 02 Nov 2009 13:21:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N51Wl-0001il-JG for emacs-devel@gnu.org; Mon, 02 Nov 2009 13:21:19 -0500 Original-Received: from [199.232.76.173] (port=47959 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N51Wl-0001ig-AS for emacs-devel@gnu.org; Mon, 02 Nov 2009 13:21:15 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:38456) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N51Wk-00066w-O6 for emacs-devel@gnu.org; Mon, 02 Nov 2009 13:21:15 -0500 Original-Received: (qmail invoked by alias); 02 Nov 2009 18:21:11 -0000 Original-Received: from dync-30-245.ac.upc.es (EHLO localhost) [147.83.30.245] by mail.gmx.net (mp011) with SMTP; 02 Nov 2009 19:21:11 +0100 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX18XbtZ0ItsX4poMy/L/ybABxnP0cyWB7OtQFNv03k JmoM/DZXLIfDW0 In-Reply-To: <87zl747u59.fsf@mat.ucm.es> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116582 Archived-At: `fill-paragraph-or-region' has been conflated with `fill-paragraph' [1] (don't know in which version), so your code should be something like: (defun unfill-paragraph-or-region () (interactive) (filladapt-mode nil);this is important, because ;otherwise the result is distorted by the ;filladapt function stuff (let ((fill-column (point-max))) (fill-paragraph nil) (filladapt-mode nil))) ;on again Note that this will not work with a region containing multiple paragraphs. Footnotes: [1] http://www.opensubscriber.com/message/emacs-devel@gnu.org/7807359.html -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth