diff options
| author | Michaël Cadilhac | 2006-12-29 21:39:47 +0000 |
|---|---|---|
| committer | Michaël Cadilhac | 2006-12-29 21:39:47 +0000 |
| commit | fafc582ba85b776f121da2639544afac04c33dc4 (patch) | |
| tree | d6b55642ffe47397b33a42a676b752506f5afcf4 | |
| parent | 40c419242fb40728fec4cfcb81623b284843fa9b (diff) | |
| download | emacs-fafc582ba85b776f121da2639544afac04c33dc4.tar.gz emacs-fafc582ba85b776f121da2639544afac04c33dc4.zip | |
(fill-comment-paragraph): Document 2006-12-24 change.
Suggested by Stefan Monnier.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e7efa92a64c..0e6e9431f67 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-12-29 Micha,Ak(Bl Cadilhac <michael.cadilhac@lrde.org> | ||
| 2 | |||
| 3 | * textmodes/fill.el (fill-comment-paragraph): Document 2006-12-24 | ||
| 4 | change. Suggested by Stefan Monnier. | ||
| 5 | |||
| 1 | 2006-12-29 Kim F. Storm <storm@cua.dk> | 6 | 2006-12-29 Kim F. Storm <storm@cua.dk> |
| 2 | 7 | ||
| 3 | * emacs-lisp/bindat.el (bindat--unpack-group, bindat--length-group) | 8 | * emacs-lisp/bindat.el (bindat--unpack-group, bindat--length-group) |
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index e3250a6f710..21ee585ec11 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -838,14 +838,16 @@ can take care of filling. JUSTIFY is used as in `fill-paragraph'." | |||
| 838 | (commark | 838 | (commark |
| 839 | (comment-string-strip (buffer-substring comstart comin) nil t)) | 839 | (comment-string-strip (buffer-substring comstart comin) nil t)) |
| 840 | (comment-re | 840 | (comment-re |
| 841 | ;; `commark' is surrounded with arbitrary text (`\0' and `a') | ||
| 842 | ;; to make sure it can be used as an optimization of | ||
| 843 | ;; `comment-start-skip' in the middle of a line. For example, | ||
| 844 | ;; `commark' can't be used with the "@c" in TeXinfo (hence | ||
| 845 | ;; the `a') or with the "C" at BOL in Fortran (hence the `\0'). | ||
| 841 | (if (string-match comment-start-skip (concat "\0" commark "a")) | 846 | (if (string-match comment-start-skip (concat "\0" commark "a")) |
| 842 | (concat "[ \t]*" (regexp-quote commark) | 847 | (concat "[ \t]*" (regexp-quote commark) |
| 843 | ;; Make sure we only match comments that use | 848 | ;; Make sure we only match comments that use |
| 844 | ;; the exact same comment marker. | 849 | ;; the exact same comment marker. |
| 845 | "[^" (substring commark -1) "]") | 850 | "[^" (substring commark -1) "]") |
| 846 | ;; If the commark needs to be followed by some special | ||
| 847 | ;; set of characters (like @c in TeXinfo), we can't | ||
| 848 | ;; rely just on `commark'. | ||
| 849 | (concat "[ \t]*\\(?:" comment-start-skip "\\)"))) | 851 | (concat "[ \t]*\\(?:" comment-start-skip "\\)"))) |
| 850 | (comment-fill-prefix ; Compute a fill prefix. | 852 | (comment-fill-prefix ; Compute a fill prefix. |
| 851 | (save-excursion | 853 | (save-excursion |