Stefan Monnier
8b44bc0665
(fill-comment-paragraph): Obey indent-tabs-mode.
2004-04-04 20:18:44 +00:00
Juri Linkov
4efbcf613d
(fill): Fix Info link.
2004-03-25 10:41:49 +00:00
Stefan Monnier
e4b7444db4
(fill) <defgroup>: Move from cus-edit.el.
...
(enable-kinsoku): Make it a defcustom.
(fill-comment-paragraph): Don't rely on fill-prefix to bound the
paragraph to same-comment-start-marker.
2004-03-08 01:07:13 +00:00
Stefan Monnier
5a7139eec2
(fill-comment-paragraph): Be more careful when
...
recognizing leading comment on code line.
2004-03-04 00:29:50 +00:00
Stefan Monnier
f5e8505176
(fill-paragraph): Don't check comment-start-skip,
...
only comment-start (in case the mode hasn't set it).
2004-03-02 22:19:19 +00:00
Kenichi Handa
f43a0b9824
(fill-delete-newlines): Don't add a space if a
...
setence ends with one of a character in
sentence-end-without-space.
2004-01-27 07:34:35 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Stefan Monnier
50ef8ff267
(fill-comment-paragraph): Construct a regexp
...
to match the specific mark rather than reusing comment-start-skip.
2003-07-22 20:40:38 +00:00
Stefan Monnier
e3d2084cb1
(text-property-default-nonsticky): Add fill-space.
...
(fill-delete-newlines): Respect the new property.
(fill-newline): Use the property instead of leaving "spurious" spaces.
2003-04-30 21:01:05 +00:00
Stefan Monnier
9bcdf9a8fd
(fill-region-as-paragraph): Fix "last line goes to fill-column+1" problem.
2003-04-21 16:22:08 +00:00
Stefan Monnier
05670fa88b
(fill-delete-newlines): Don't delete past TO.
2003-04-04 21:43:12 +00:00
Stefan Monnier
ae3264647e
(fill-paragraph): Don't skip prefix now that markers work right.
2003-04-04 20:57:54 +00:00
Stefan Monnier
51153542a5
(fill-delete-newlines): Remove trailing whitespace.
2003-04-04 20:56:10 +00:00
Stefan Monnier
29c1653c7a
(fill-newline): Don't leave markers before the prefix.
2003-04-03 00:53:49 +00:00
Stefan Monnier
dbe3ba524d
(fill-delete-newlines): Don't add a trailing space.
2003-04-02 23:40:36 +00:00
Stefan Monnier
1eb29f50cb
(fill-region-as-paragraph): Remove obsolete `save-restriction'.
...
Don't remove space at end of paragraph: it makes refill.el unusable.
(fill-paragraph, fill-comment-paragraph): Don't add newline at EOP.
2003-04-02 23:04:09 +00:00
Juanma Barranquero
db95369be0
Trailing whitespace deleted.
2003-02-04 13:30:45 +00:00
Stefan Monnier
ffb6ced1ce
(fill-comment-paragraph): Fix simplistic regexp-concatenation.
2003-01-19 00:19:44 +00:00
Stefan Monnier
f064f7c929
(fill-region-as-paragraph): Only erase `hard' property until end-of-paragraph.
2003-01-16 19:46:00 +00:00
Richard M. Stallman
f601aaf8f8
(fill-indent-to-left-margin): New function.
...
(fill-newline, fill-region-as-paragraph): Use that.
2002-12-02 16:19:52 +00:00
Kim F. Storm
1b457e183f
(fill-nobreak-invisible): New var.
...
(fill-nobreak-p): Test it; return t if set and point invisible.
(fill-newline): Test it; remove invisible prop on newline if set.
2002-11-13 23:32:21 +00:00
Stefan Monnier
1ddad36ec0
(fill-paragraph): Consider a comment-start as
...
a paragraph starter when filling non-comments.
(fill-comment-paragraph): Use comment-search-forward.
Recognize paragraph starters and separators within comments.
Use adaptive-fill-prefix when it works. Don't narrow while doing the fill.
2002-11-07 22:51:28 +00:00
Stefan Monnier
3d9ce27e7b
(fill-paragraph-handle-comment): New var.
...
(fill-comment-paragraph): New fun (generalizes of lisp-fill-paragraph).
(fill-paragraph): Use them.
2002-11-03 03:41:11 +00:00
Stefan Monnier
ef11ff9b1f
(fill-move-to-break-point): Skip white space
...
_before_ checking to see if we're hitting the margin.
(fill-region-as-paragraph): Don't fiddle with the undo-list any more:
it's now done by the C primitives. Don't use narrowing.
Reorganize the line-breaking part of the code to simplify the control
flow and make it work in the absence of narrowing.
(fill-region): Don't use narrowing.
2002-10-31 00:30:36 +00:00
Stefan Monnier
8748595969
(fill-paragraph): Go to BOL before calling forward-paragraph to make
...
sure its return value is meaningful.
2002-10-07 13:54:44 +00:00
Stefan Monnier
3078db3222
(fill-paragraph): Give up if there's no paragraph at or after point.
2002-10-03 23:01:51 +00:00
Juanma Barranquero
f7a53caeeb
(fill-nonuniform-paragraphs, fill-individual-paragraphs): Fix spacing.
2002-09-06 07:18:44 +00:00
Stefan Monnier
dc864d6e59
(fill-context-prefix): Fix last change with yet-another-approach.
2002-04-29 04:02:22 +00:00
Stefan Monnier
79424eea3d
(fill-region-as-paragraph): Use save-excursion instead of relying on
...
forward-line to bring us where we started.
2002-04-12 02:56:29 +00:00
Stefan Monnier
4599773d96
(fill-context-prefix): Fix up last change.
2002-04-12 00:01:53 +00:00
Stefan Monnier
bb424945f3
(canonically-space-region): Obey sentence-end.
...
Don't add spaces at end of sentences at end of line.
(fill-move-to-break-point): Make sure the result is always greater
than linebeg, so we ensure forward progress.
(fill-region-as-paragraph): Compare to `to' rather than eobp.
(fill-paragraph): Don't rebind fill-paragraph-function.
2002-04-11 22:00:07 +00:00
Stefan Monnier
d47e9c0658
(adaptive-fill-regexp): Add ! and %.
...
(fill-delete-prefix): Remove indentation while removing prefix.
(fill-delete-newlines): Obey sentence-end.
(fill-move-to-break-point, fill-newline): New functions extracted
from fill-region-as-paragraph.
(fill-region-as-paragraph): Use them.
Don't fiddle with fill-indent-according-to-mode.
2002-04-10 21:21:12 +00:00
Stefan Monnier
419275721f
(fill-context-prefix): Match the two prefixes
...
differently to avoid pathological exponential-time case.
2002-04-10 18:19:44 +00:00
Richard M. Stallman
c3f9a06ab9
(set-justification): Rename arg VALUE to STYLE.
...
(set-justification-left, set-justification-right): Doc fix.
2001-12-07 03:34:59 +00:00
Pavel Janík
d9a4974038
Doc fixes.
2001-12-03 06:11:37 +00:00
Stefan Monnier
4bcb1be178
(fill-indent-according-to-mode): Default to nil.
2001-11-25 22:37:00 +00:00
Stefan Monnier
2f4fa275e8
(fill-delete-prefix, fill-delete-newlines):
...
New functions, extracted from fill-region-as-paragraph.
(fill-region-as-paragraph): Use them.
Use an end marker instead of eob.
Ignore whitespace-only fill-prefixes when indenting according to mode.
Simply the loop that searches for spaces backwards.
2001-11-19 23:51:03 +00:00
Stefan Monnier
6d1f0a5ea9
(fill-context-prefix): Fix braino.
2001-11-03 00:55:10 +00:00
Stefan Monnier
2d78d3e878
(fill-region-as-paragraph): Don't forget to skip
...
over current whitespace before looking for a preceding space.
2001-11-02 03:10:46 +00:00
Stefan Monnier
03e3e2e91f
(sentence-end-double-space, sentence-end-without-period): Move to paragraphs.
...
(fill-indent-according-to-mode): Change default to t.
(fill-context-prefix): Simplify control-flow and use a more
sophisticated merge that unifies both previous checks.
(fill-single-word-nobreak-p, fill-french-nobreak-p): New funs.
(fill-nobreak-predicate): Make it into a defcustom'd hook.
(fill-nobreak-p): New fun.
(fill-region-as-paragraph): Use it.
Handle `fill-indent-according-to-mode' slightly differently.
(fill-individual-paragraphs-prefix): Simplify the control-flow.
(fill-individual-paragraphs-citation): Fix.
2001-10-30 08:08:12 +00:00
Stefan Monnier
9371f619b9
(adaptive-fill-regexp): Admit tabs as well.
2001-08-22 22:20:06 +00:00
Pavel Janík
6228c05b99
Keyword added and FSF specified as Maintainer.
2001-08-06 10:12:17 +00:00
Stefan Monnier
da197e7571
(fill-region-as-paragraph): Don't look further back than LINEBEG.
2001-06-25 19:20:15 +00:00
Stefan Monnier
1cc218de32
(fill-individual-paragraphs-prefix): Fix transcription typo.
2001-03-23 08:18:51 +00:00
Stefan Monnier
3212cc84cd
(fill-context-prefix): Allow first-line-prefix to match paragraph-start.
2001-03-07 00:12:59 +00:00
Stefan Monnier
cb91b2c7ee
(fill-region-as-paragraph): Skip spaces backward
...
rather than using (match-beginning 0) when searching for break point.
Because match-data might have been destroyed by fill-nobreak-predicate
or might never have been setup if the re-search-backward has failed.
2001-02-22 20:09:13 +00:00
Dave Love
ef4d4394bf
(adaptive-fill-function): Fix :type
2001-02-07 23:31:57 +00:00
Gerd Moellmann
2441692dc8
(set-fill-prefix): Cancel fill prefix if point
...
is in front of the left-margin, if any.
2001-01-31 16:12:41 +00:00
Miles Bader
27849a6528
(skip-line-prefix): New function.
...
(fill-region-as-paragraph, fill-region): Return the fill-prefix.
(fill-paragraph): Don't leave point inside the fill-prefix.
2000-11-13 12:11:04 +00:00
Stefan Monnier
178932de25
(fill-indent-according-to-mode): New var.
...
(fill-region-as-paragraph): Use it.
2000-11-10 11:43:55 +00:00