Commit graph

275 commits

Author SHA1 Message Date
Juri Linkov
64b53a1f5a (fill-paragraph): When the region is active, don't try other `or' branches
regardless of the value returned by fill-region; just return t.
2007-10-20 23:55:30 +00:00
Miles Bader
9c8020a8df Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 890-898)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 122-128)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 257-258)

   - Merge from emacs--rel--22
   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-270
2007-10-19 00:00:21 +00:00
Juanma Barranquero
efffe5a38f (fill-individual-paragraphs): Doc fix.
(adaptive-fill-function): Doc fix.  Remove * from docstring.
2007-10-18 13:35:16 +00:00
Juanma Barranquero
fdd2ae6d90 (fill-individual-paragraphs): Fix typo in docstring. 2007-10-18 13:29:30 +00:00
Juanma Barranquero
3e4dfbb6bd (fill-individual-paragraphs): Doc fix.
(adaptive-fill-function): Doc fix.  Remove * from docstring.
2007-10-18 13:27:04 +00:00
Juri Linkov
b2d35abb42 (fill-paragraph-or-region): Remove function at the request of RMS.
(fill-paragraph): Change `arg' to optional `justify'.  Add interactive
arg `region'.  Fix docstring.  At the first `or' branch add call to
`fill-region' if it the region is active in transient-mark-mode.
2007-10-18 00:06:33 +00:00
Miles Bader
ecb21060d5 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 866-879)

   - Merge multi-tty branch
   - Update from CVS
   - Merge from emacs--rel--22

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-257
2007-10-11 16:14:00 +00:00
Juri Linkov
e65f7c9677 (fill-paragraph-or-region): New function. 2007-10-06 22:15:10 +00:00
Miles Bader
e468b87f91 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 824-831)

   - Update from CVS
   - Merge from emacs--rel--22

 * emacs--rel--22  (patch 70-74)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-238
2007-07-27 10:52:18 +00:00
Glenn Morris
5a9dffec38 Switch license to GPLv3 or later. 2007-07-25 04:24:43 +00:00
Stefan Monnier
4b880ac124 (canonically-space-region): Make the second arg
a marker if it's not already the case.
2007-05-25 15:00:22 +00:00
Miles Bader
262be72a9a Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 751-770)

   - Update from CVS
   - Merge from emacs--rel--22
   - Update from CVS: lisp/textmodes/sgml-mode.el: Revert last change.
   - Merge from gnus--rel--5.10

 * emacs--rel--22  (patch 18-25)
 * gnus--rel--5.10  (patch 222-223)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-208
2007-05-24 21:31:10 +00:00
Stefan Monnier
dff1336c12 (canonically-space-region): Make the second arg
a marker if it's not already the case.
2007-05-24 16:13:18 +00:00
Miles Bader
212c766631 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 713-725)

   - Update from CVS
   - Merge from emacs--rel--22
   - Merge from emacs--rel--22: lisp/dired-x.el: Revert 2007-04-06 change.
   - Merge from gnus--rel--5.10

 * emacs--rel--22  (base, patch 1-5)

   - tag of emacs@sv.gnu.org/emacs--devo--0--patch-709
   - Sync to CVS tag EMACS_22_BRANCHPOINT
   - Sync to CVS branch EMACS_22_BASE
   - Update from CVS

 * gnus--rel--5.10  (patch 217)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-202
2007-05-01 23:03:36 +00:00
Eli Zaretskii
a9bdfaa4e4 (fill-paragraph): Doc fix. 2007-04-28 09:32:26 +00:00
Eli Zaretskii
96bbf28bb8 (fill-paragraph): Doc fix. 2007-04-27 13:29:20 +00:00
Miles Bader
991a760232 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 698-710)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 216)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-196
2007-04-24 21:56:25 +00:00
Stefan Monnier
03832c9d5b (fill-move-to-break-point): Don't inhibit
fill-nobreak-predicate when the break is past fill-column.
2007-04-20 18:24:05 +00:00
Chong Yidong
1b7e3006a8 Revert last change. 2007-04-20 14:08:36 +00:00
Chong Yidong
5d53900f80 (fill-move-to-break-point): Don't bind fill-nobreak-predicate. 2007-04-20 14:01:37 +00:00
Miles Bader
bb5b9e9dbe Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 615-621)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 197-199)

   - Merge from emacs--devo--0
   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-166
2007-01-30 22:22:43 +00:00
Richard M. Stallman
bbc02d0063 (fill-paragraph-function): Doc fix.
(fill-paragraph): Bind fill-paragraph-function to t to avoid recursion.
2007-01-28 07:13:10 +00:00
Miles Bader
c0466914ba Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 586-614)

   - Update from CVS
   - Update from erc--emacs--22
   - Merge from gnus--rel--5.10
   - Merge from erc--main--0
   - Make byte compiler correctly write circular constants

 * gnus--rel--5.10  (patch 186-196)

   - Update from CVS
   - Merge from emacs--devo--0

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-162
2007-01-26 06:16:11 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Juanma Barranquero
743a6977d4 (fill-region): Doc fix. 2007-01-10 15:28:11 +00:00
Stefan Monnier
af5debda92 (fill-comment-paragraph): Improve comment. 2007-01-07 20:11:47 +00:00
Miles Bader
4c34eeeee5 Merge from emacs--devo--0
Patches applied:

 * emacs--devo--0  (patch 563-582)

   - Update from CVS
   - Merge from gnus--rel--5.10

 * gnus--rel--5.10  (patch 177-185)

   - Merge from emacs--devo--0
   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-158
2007-01-01 03:21:06 +00:00
Michaël Cadilhac
fafc582ba8 (fill-comment-paragraph): Document 2006-12-24 change.
Suggested by Stefan Monnier.
2006-12-29 21:39:47 +00:00
Richard M. Stallman
c98f736548 (fill-paragraph): Check for a minibuffer
rather than for being in a minibuffer window.
2006-12-26 02:54:41 +00:00
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