* Controlling `fill-paragraph'
@ 2005-01-31 15:21 Denis Bueno
2005-01-31 17:06 ` August
0 siblings, 1 reply; 4+ messages in thread
From: Denis Bueno @ 2005-01-31 15:21 UTC (permalink / raw)
Is there a way to control just how `fill-paragraph' works?
I was just editing a lisp function whose documentation string is:
"Create a perceptron learner. Returns a net of one node, i.e., a
perceptron. ;; <= this line
EXAMPLES => (#(x_1 ... x_n) y)
ACTIVATION-FN => #'sigmoid (for example)
WEIGHT-VECTOR => #(w_1 ... w_n)
If weight-vector is unspecified, each weight w_i will be randomly
chosen such that 0 < w_i < 0.25."
I put my cursor on the text marked by "this line" and hit M-q, which
resulted in the text changing to:
"Create a perceptron learner. Returns a net of one node, i.e., a perceptron.
EXAMPLES => (#(x_1 ... x_n) y) ACTIVATION-FN =>
#'sigmoid (for example) WEIGHT-VECTOR => #(w_1 ... w_n)
If weight-vector is unspecified, each weight w_i will be randomly
chosen such that 0 < w_i < 0.25."
I expected that it would wrap the line "Create a perceptron..."
instead of wrapping two lines under it together. Is there I way I can
customize `fill-paragraph' so that it will wrap the way I expect?
--
Denis Bueno
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Controlling `fill-paragraph'
2005-01-31 15:21 Controlling `fill-paragraph' Denis Bueno
@ 2005-01-31 17:06 ` August
[not found] ` <6dbd4d00050131095060f3c83a@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: August @ 2005-01-31 17:06 UTC (permalink / raw)
On mån, 2005-01-31 at 10:21 -0500, Denis Bueno wrote:
> Is there a way to control just how `fill-paragraph' works?
>
> I was just editing a lisp function whose documentation string is:
>
> "Create a perceptron learner. Returns a net of one node, i.e., a
> perceptron. ;; <= this line
>
> EXAMPLES => (#(x_1 ... x_n) y)
> ACTIVATION-FN => #'sigmoid (for example)
> WEIGHT-VECTOR => #(w_1 ... w_n)
>
> If weight-vector is unspecified, each weight w_i will be randomly
> chosen such that 0 < w_i < 0.25."
>
> I put my cursor on the text marked by "this line" and hit M-q, which
> resulted in the text changing to:
>
> "Create a perceptron learner. Returns a net of one node, i.e., a perceptron.
>
> EXAMPLES => (#(x_1 ... x_n) y) ACTIVATION-FN =>
> #'sigmoid (for example) WEIGHT-VECTOR => #(w_1 ... w_n)
>
> If weight-vector is unspecified, each weight w_i will be randomly
> chosen such that 0 < w_i < 0.25."
>
> I expected that it would wrap the line "Create a perceptron..."
> instead of wrapping two lines under it together. Is there I way I can
> customize `fill-paragraph' so that it will wrap the way I expect?
>
>
That's strange, I can't reproduce the behavior you describe. What's the
value of `fill-column'? The first line after you invoked fill-paragraph
is 78 characters long (think default value is 70).
--
August
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.173.1107187670.2841.help-gnu-emacs@gnu.org>]
* Re: Controlling `fill-paragraph'
[not found] <mailman.173.1107187670.2841.help-gnu-emacs@gnu.org>
@ 2005-02-07 13:20 ` Alan Wehmann
0 siblings, 0 replies; 4+ messages in thread
From: Alan Wehmann @ 2005-02-07 13:20 UTC (permalink / raw)
You can limit the range of 'fill-paragraph' by "marking" a region. In
addition, variables 'paragraph-start' and 'paragraph-separate'
delineate paragraphs.
I'm using XEmacs 21.4 (patch 15) "Security Through Obscurity" [Lucid]
(sparc-sun-solaris2.8, Mule) of Tue Apr 20 2004 on gax. But I think
that what I've said also applies to Emacs.
Denis Bueno <dbueno@gmail.com> writes:
> Is there a way to control just how `fill-paragraph' works?
>
> I was just editing a lisp function whose documentation string is:
>
> "Create a perceptron learner. Returns a net of one node, i.e., a
> perceptron. ;; <= this line
>
> EXAMPLES => (#(x_1 ... x_n) y)
> ACTIVATION-FN => #'sigmoid (for example)
> WEIGHT-VECTOR => #(w_1 ... w_n)
>
> If weight-vector is unspecified, each weight w_i will be randomly
> chosen such that 0 < w_i < 0.25."
>
> I put my cursor on the text marked by "this line" and hit M-q, which
> resulted in the text changing to:
>
> "Create a perceptron learner. Returns a net of one node, i.e., a perceptron.
>
> EXAMPLES => (#(x_1 ... x_n) y) ACTIVATION-FN =>
> #'sigmoid (for example) WEIGHT-VECTOR => #(w_1 ... w_n)
>
> If weight-vector is unspecified, each weight w_i will be randomly
> chosen such that 0 < w_i < 0.25."
>
> I expected that it would wrap the line "Create a perceptron..."
> instead of wrapping two lines under it together. Is there I way I can
> customize `fill-paragraph' so that it will wrap the way I expect?
>
>
> --
> Denis Bueno
>
>
--
Alan Wehmann
wehmannnospam@fnal.gov
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-02-07 13:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 15:21 Controlling `fill-paragraph' Denis Bueno
2005-01-31 17:06 ` August
[not found] ` <6dbd4d00050131095060f3c83a@mail.gmail.com>
[not found] ` <1107196358.5404.32.camel@c83-250-201-122.bredband.comhem.se>
2005-01-31 23:33 ` Denis Bueno
[not found] <mailman.173.1107187670.2841.help-gnu-emacs@gnu.org>
2005-02-07 13:20 ` Alan Wehmann
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.