* Unfill please!
@ 2009-08-05 0:01 Lennart Borgman
2009-08-05 6:34 ` Bastien
2009-08-05 8:09 ` Daniel Clemente
0 siblings, 2 replies; 12+ messages in thread
From: Lennart Borgman @ 2009-08-05 0:01 UTC (permalink / raw
To: Emacs-Devel devel
Now that we have visual-line-mode that is very good for writing text
wouldn't it be good to have unfilling too? Like the routines below?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Unfilling
;;
;; The idea is from
;; http://interglacial.com/~sburke/pub/emacs/sburke_dot_emacs.config
;;;###autoload
(defun unfill-paragraph ()
"Unfill the current paragraph."
(interactive) (with-unfilling 'fill-paragraph))
;;(defalias 'unwrap-paragraph 'unfill-paragraph)
;;;###autoload
(defun unfill-region ()
"Unfill the current region."
(interactive) (with-unfilling 'fill-region))
;;(defalias 'unwrap-region 'unfill-region)
;;;###autoload
(defun unfill-individual-paragraphs ()
"Unfill individual paragraphs in the current region."
(interactive) (with-unfilling 'fill-individual-paragraphs))
;;(defalias 'unwrap-individual-paragraphs 'unfill-individual-paragraphs)
(defun with-unfilling (fn)
"Unfill using the fill function FN."
(let ((fill-column 10000000)) (call-interactively fn)))
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 0:01 Unfill please! Lennart Borgman
@ 2009-08-05 6:34 ` Bastien
2009-08-05 6:36 ` Lennart Borgman
2009-08-05 8:09 ` Daniel Clemente
1 sibling, 1 reply; 12+ messages in thread
From: Bastien @ 2009-08-05 6:34 UTC (permalink / raw
To: emacs-devel
Lennart Borgman <lennart.borgman@gmail.com> writes:
> Now that we have visual-line-mode that is very good for writing text
Just being curious: why is visual-line-mode good for writing text?
--
Bastien
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 6:34 ` Bastien
@ 2009-08-05 6:36 ` Lennart Borgman
2009-08-05 6:45 ` Bastien
0 siblings, 1 reply; 12+ messages in thread
From: Lennart Borgman @ 2009-08-05 6:36 UTC (permalink / raw
To: Bastien; +Cc: emacs-devel
On Wed, Aug 5, 2009 at 8:34 AM, Bastien<bastienguerry@googlemail.com> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> Now that we have visual-line-mode that is very good for writing text
>
> Just being curious: why is visual-line-mode good for writing text?
You do not have to re-fill it all the time...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 6:36 ` Lennart Borgman
@ 2009-08-05 6:45 ` Bastien
2009-08-05 7:05 ` Lennart Borgman
0 siblings, 1 reply; 12+ messages in thread
From: Bastien @ 2009-08-05 6:45 UTC (permalink / raw
To: Lennart Borgman; +Cc: emacs-devel
Lennart Borgman <lennart.borgman@gmail.com> writes:
>> Just being curious: why is visual-line-mode good for writing text?
>
> You do not have to re-fill it all the time...
What about auto-fill-mode? Does it not just do that?
I don't clearly see the interaction between filling and visual-line-mode...
--
Bastien
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 6:45 ` Bastien
@ 2009-08-05 7:05 ` Lennart Borgman
2009-08-05 7:10 ` Bastien
2009-08-05 8:28 ` Deniz Dogan
0 siblings, 2 replies; 12+ messages in thread
From: Lennart Borgman @ 2009-08-05 7:05 UTC (permalink / raw
To: Bastien; +Cc: emacs-devel
On Wed, Aug 5, 2009 at 8:45 AM, Bastien<bastienguerry@googlemail.com> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>>> Just being curious: why is visual-line-mode good for writing text?
>>
>> You do not have to re-fill it all the time...
>
> What about auto-fill-mode? Does it not just do that?
Don't know, I never tried it.
> I don't clearly see the interaction between filling and visual-line-mode...
I have a minor mode that sets margins so that the width is fill-column...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 7:05 ` Lennart Borgman
@ 2009-08-05 7:10 ` Bastien
2009-08-05 7:13 ` Lennart Borgman
2009-08-05 8:28 ` Deniz Dogan
1 sibling, 1 reply; 12+ messages in thread
From: Bastien @ 2009-08-05 7:10 UTC (permalink / raw
To: Lennart Borgman; +Cc: emacs-devel
Lennart Borgman <lennart.borgman@gmail.com> writes:
>> What about auto-fill-mode? Does it not just do that?
>
> Don't know, I never tried it.
I think you should :) It's a pretty basic minor mode that makes life
really easier.
--
Bastien
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 7:10 ` Bastien
@ 2009-08-05 7:13 ` Lennart Borgman
2009-08-05 8:13 ` David Kastrup
0 siblings, 1 reply; 12+ messages in thread
From: Lennart Borgman @ 2009-08-05 7:13 UTC (permalink / raw
To: Bastien; +Cc: emacs-devel
On Wed, Aug 5, 2009 at 9:10 AM, Bastien<bastienguerry@googlemail.com> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>>> What about auto-fill-mode? Does it not just do that?
>>
>> Don't know, I never tried it.
>
> I think you should :) It's a pretty basic minor mode that makes life
> really easier.
Thanks, maybe. Looking it the doc string I remember why I never used
it. It kind of wraps too late. I found M-q more practical then.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 0:01 Unfill please! Lennart Borgman
2009-08-05 6:34 ` Bastien
@ 2009-08-05 8:09 ` Daniel Clemente
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Clemente @ 2009-08-05 8:09 UTC (permalink / raw
To: emacs-devel
El dc, ago 05 2009 a les 02:01, Lennart Borgman va escriure:
> Now that we have visual-line-mode that is very good for writing text
> wouldn't it be good to have unfilling too? Like the routines below?
I think this is very valuable because unfilling is a very common operation (for me even more than filling).
Those functions work and are easier than manual unfilling with C-u M-^ etc.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 7:13 ` Lennart Borgman
@ 2009-08-05 8:13 ` David Kastrup
0 siblings, 0 replies; 12+ messages in thread
From: David Kastrup @ 2009-08-05 8:13 UTC (permalink / raw
To: emacs-devel
Lennart Borgman <lennart.borgman@gmail.com> writes:
> On Wed, Aug 5, 2009 at 9:10 AM, Bastien<bastienguerry@googlemail.com> wrote:
>> Lennart Borgman <lennart.borgman@gmail.com> writes:
>>
>>>> What about auto-fill-mode? Does it not just do that?
>>>
>>> Don't know, I never tried it.
>>
>> I think you should :) It's a pretty basic minor mode that makes life
>> really easier.
>
>
> Thanks, maybe. Looking it the doc string I remember why I never used
> it. It kind of wraps too late. I found M-q more practical then.
refill-mode might help.
--
David Kastrup
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 7:05 ` Lennart Borgman
2009-08-05 7:10 ` Bastien
@ 2009-08-05 8:28 ` Deniz Dogan
2009-08-05 8:29 ` Lennart Borgman
1 sibling, 1 reply; 12+ messages in thread
From: Deniz Dogan @ 2009-08-05 8:28 UTC (permalink / raw
To: Lennart Borgman; +Cc: Bastien, emacs-devel
2009/8/5 Lennart Borgman <lennart.borgman@gmail.com>:
> I have a minor mode that sets margins so that the width is fill-column...
I have been looking for something like this. Would you mind sharing it?
--
Deniz Dogan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 8:28 ` Deniz Dogan
@ 2009-08-05 8:29 ` Lennart Borgman
2009-08-05 15:43 ` Lennart Borgman
0 siblings, 1 reply; 12+ messages in thread
From: Lennart Borgman @ 2009-08-05 8:29 UTC (permalink / raw
To: Deniz Dogan; +Cc: Bastien, emacs-devel
On Wed, Aug 5, 2009 at 10:28 AM, Deniz Dogan<deniz.a.m.dogan@gmail.com> wrote:
> 2009/8/5 Lennart Borgman <lennart.borgman@gmail.com>:
>> I have a minor mode that sets margins so that the width is fill-column...
>
> I have been looking for something like this. Would you mind sharing it?
It is part of nXhtml, in the file ourcomments-util. But I am currently
fighting some bugs in it. window-width seems to be buggy.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Unfill please!
2009-08-05 8:29 ` Lennart Borgman
@ 2009-08-05 15:43 ` Lennart Borgman
0 siblings, 0 replies; 12+ messages in thread
From: Lennart Borgman @ 2009-08-05 15:43 UTC (permalink / raw
To: Deniz Dogan; +Cc: Bastien, emacs-devel
On Wed, Aug 5, 2009 at 10:29 AM, Lennart
Borgman<lennart.borgman@gmail.com> wrote:
> On Wed, Aug 5, 2009 at 10:28 AM, Deniz Dogan<deniz.a.m.dogan@gmail.com> wrote:
>> 2009/8/5 Lennart Borgman <lennart.borgman@gmail.com>:
>>> I have a minor mode that sets margins so that the width is fill-column...
>>
>> I have been looking for something like this. Would you mind sharing it?
>
>
> It is part of nXhtml, in the file ourcomments-util. But I am currently
> fighting some bugs in it. window-width seems to be buggy.
If you look in nXhtml repository in Launchpad you can find the minor
mode wrap-to-fill-column-mode in the file ourcomments-util.el. It
looks like it works ok now.
This mode does some small things that I find useful when writing text:
- Sets left and right margin so that text in displayed in the middle
of the window fill-column wide.
- Turns on visual-line-mode.
- Sets wrap-prefix so that continuation lines are indented the same
amount as the current line.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-08-05 15:43 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 0:01 Unfill please! Lennart Borgman
2009-08-05 6:34 ` Bastien
2009-08-05 6:36 ` Lennart Borgman
2009-08-05 6:45 ` Bastien
2009-08-05 7:05 ` Lennart Borgman
2009-08-05 7:10 ` Bastien
2009-08-05 7:13 ` Lennart Borgman
2009-08-05 8:13 ` David Kastrup
2009-08-05 8:28 ` Deniz Dogan
2009-08-05 8:29 ` Lennart Borgman
2009-08-05 15:43 ` Lennart Borgman
2009-08-05 8:09 ` Daniel Clemente
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.