Michaël Cadilhac
2a096cafa0
(fill-comment-paragraph): Prevent the use of an optimized comment regexp if
...
`comment-start-skip' uses a ^.
2006-12-24 20:23:31 +00:00
Miles Bader
dbc3b08c40
Merge from emacs--devo--0
...
Patches applied:
* emacs--devo--0 (patch 490-504)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 161-163)
- Update from CVS
- Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-130
2006-11-07 23:22:48 +00:00
Richard M. Stallman
708ca5aaaf
(fill-minibuffer-function): New function.
...
(fill-paragraph): Bind fill-paragraph-function to fill-minibuffer-function.
2006-11-06 16:01:53 +00:00
Kenichi Handa
11d356cec6
(fill-find-break-point-function-table): Don't
...
setup it in defvar.
(fill-nospace-between-words-table): New variable.
(fill-delete-newlines): Check fill-nospace-between-words-table
instead of charset property nospcae-between-words.
2006-10-26 02:29:03 +00:00
Kenichi Handa
bc2ec97dfb
Don't use charset property
...
`fill-find-break-point-function'.
(fill-find-break-point-function-table): New variable.
(fill-find-break-point): Lookup
fill-find-break-point-function-table.
2006-10-23 01:56:24 +00:00
Richard M. Stallman
4e05bbf511
(adaptive-fill-regexp): Don't match (1)' or 1.'
2006-09-08 12:02:54 +00:00
Stefan Monnier
4a3608f504
(fill-single-word-nobreak-p): Allow breaking before
...
last word, if it's not the end of the paragraph.
2006-09-06 16:35:18 +00:00
Stefan Monnier
5fc5b7e842
(fill-region-as-paragraph): Refine last change.
2006-07-09 05:20:42 +00:00
Stefan Monnier
55f6a28058
(fill-delete-prefix): Don't ignore excessively long prefixes.
...
(fill-region-as-paragraph): Don't round up to a whole line.
(fill-comment-paragraph): Don't include the code-before-the-comment
when calling fill-region-as-paragraph.
2006-07-07 19:04:49 +00:00
Stefan Monnier
119d72b62c
(colon-double-space): Tighten the safety predicate.
2006-04-29 13:57:38 +00:00
Stefan Monnier
a1c43d02e9
(colon-double-space): Tighten up a bit the safety predicate.
2006-04-26 05:27:48 +00:00
Reiner Steib
6c07f4d42a
* files.el: Move some `safe-local-variable' declarations to the
...
respective files.
* textmodes/ispell.el (ispell-check-comments)
(ispell-local-dictionary): Mark as safe.
* abbrev.el (abbrev-mode): Mark as safe.
* add-log.el (change-log-default-name): Mark as safe.
* textmodes/reftex-vars.el (reftex-vref-is-default)
(reftex-fref-is-default, reftex-level-indent)
(reftex-guess-label-type): Mark as safe.
* textmodes/fill.el (colon-double-space): Mark as safe.
* textmodes/paragraphs.el (paragraph-start, paragraph-separate)
(sentence-end-double-space, sentence-end-without-period)
(sentence-end-without-space, sentence-end, sentence-end-base)
(page-delimiter, paragraph-ignore-fill-prefix): Mark as safe.
2006-04-06 15:36:24 +00:00
Thien-Thi Nguyen
ceb4c4d303
Update years in copyright notice; nfc.
2006-02-06 12:31:40 +00:00
Juri Linkov
74f36ff05e
(fill-single-word-nobreak-p): Use `sentence-end'.
2005-12-30 05:59:16 +00:00
Juri Linkov
08150aa07e
(fill-nobreak-p): Fix first two rules to skip backward only
...
space (instead of space and period) before looking at sentence end.
2005-10-21 08:50:28 +00:00
Juanma Barranquero
8ad8316c3e
(fill-nonuniform-paragraphs): Improve argument/docstring consistency.
...
(canonically-space-region, fill-context-prefix, fill-french-nobreak-p,
fill-delete-newlines, fill-comment-paragraph, justify-current-line):
"?\ " -> "?\s".
2005-08-09 14:05:24 +00:00
Thien-Thi Nguyen
3731a85096
Update years in copyright notice; nfc.
2005-08-06 17:48:15 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
Stefan Monnier
d95da8d3b2
(fill-match-adaptive-prefix): New function.
...
(fill-context-prefix): Use it to avoid guessing absurdly long prefixes.
Remove unused vars `start' and `firstline'.
(fill-nobreak-p): Fix line-move-invisible -> line-move-invisible-p.
(justify-current-line, fill-individual-paragraphs): Remove unused vars.
2005-06-13 19:33:21 +00:00
Eli Zaretskii
b48e52066f
(fill-context-prefix): Try `adaptive-fill-function'
...
BEFORE `adaptive-fill-regexp' when determining a fill prefix.
(adaptive-file-function): Minor amendment to doc-string.
2005-06-11 13:49:56 +00:00
Juanma Barranquero
f530778210
Specify missing group (and type, if simple) in defcustom.
2005-05-19 19:06:19 +00:00
Kenichi Handa
7c315e1cff
(fill-text-properties-at): New function.
...
(fill-newline): Use fill-text-properties-at instead of
text-properties-at.
2005-03-31 04:45:27 +00:00
Kenichi Handa
ac249c4c50
Change encoding to iso-2022-7bit and add coding: tag.
...
(adaptive-fill-regexp): Add more bullets.
(fill-french-nobreak-p): Add Latin-1 and Latin-9 guillemets in
regexps.
2005-03-11 02:04:21 +00:00
Richard M. Stallman
1637ed8767
(fill-comment-paragraph): Handle indent-tabs-mode.
...
(fill-delete-newlines): Call sentence-end as function.
(fill-nobreak-p, canonically-space-region): Likewise.
(fill-nobreak-p): If this break point is at the end of the line,
don't consider the newline which follows as a reason to return t.
2004-07-20 20:51:26 +00:00
Juri Linkov
20796cbc49
(canonically-space-region, fill-nobreak-p, fill-delete-newlines):
...
Use function `sentence-end' instead of variable `sentence-end'.
2004-04-18 22:08:54 +00:00
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