emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unfill-paragraph (region) and indentation


From: Lluís
Subject: Re: unfill-paragraph (region) and indentation
Date: Mon, 02 Nov 2009 19:21:25 +0100
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

`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/address@hidden/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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]