[Top][All Lists]
[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
- unfill-paragraph (region) and indentation, Uwe Brauer, 2009/11/02
- Re: unfill-paragraph (region) and indentation,
Lluís <=
- Re: unfill-paragraph (region) and indentation, Stefan Monnier, 2009/11/03
- Re: unfill-paragraph (region) and indentation, Uwe Brauer, 2009/11/04
- Re: unfill-paragraph (region) and indentation, Stefan Monnier, 2009/11/04
- Re: unfill-paragraph (region) and indentation, Miles Bader, 2009/11/04
- unfill-paragraph(region) is different in GNU emacs and xemacs (was: unfill-paragraph (region) and indentation, ), Uwe Brauer, 2009/11/06
- unfill-paragraph(region) is different in GNU emacs and xemacs (was: unfill-paragraph (region) and indentation, ), Stephen J. Turnbull, 2009/11/06