diff options
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/textmodes/fill.el | 15 |
2 files changed, 24 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ad5fb2f2aca..0c9da08d7bf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-07-22 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * textmodes/fill.el (fill-comment-paragraph): Construct a regexp | ||
| 4 | to match the specific mark rather than reusing comment-start-skip. | ||
| 5 | |||
| 1 | 2003-07-22 Thien-Thi Nguyen <ttn@gnu.org> | 6 | 2003-07-22 Thien-Thi Nguyen <ttn@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/hideshow.el (hs-special-modes-alist): | 8 | * progmodes/hideshow.el (hs-special-modes-alist): |
| @@ -29,8 +34,8 @@ | |||
| 29 | 34 | ||
| 30 | 2003-07-21 Kenichi Handa <handa@m17n.org> | 35 | 2003-07-21 Kenichi Handa <handa@m17n.org> |
| 31 | 36 | ||
| 32 | * international/quail.el (quail-translate-key): Update | 37 | * international/quail.el (quail-translate-key): |
| 33 | quail-current-str correctly. | 38 | Update quail-current-str correctly. |
| 34 | 39 | ||
| 35 | 2003-07-21 Andreas Schwab <schwab@suse.de> | 40 | 2003-07-21 Andreas Schwab <schwab@suse.de> |
| 36 | 41 | ||
| @@ -40,7 +45,7 @@ | |||
| 40 | 2003-07-20 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net> | 45 | 2003-07-20 Kai Gro,A_(Bjohann <kai.grossjohann@gmx.net> |
| 41 | Version 2.0.36 of Tramp released. | 46 | Version 2.0.36 of Tramp released. |
| 42 | 47 | ||
| 43 | * net/tramp.el (tramp-default-password-end-of-line): Renamed from | 48 | * net/tramp.el (tramp-default-password-end-of-line): Rename from |
| 44 | tramp-password-end-of-line. | 49 | tramp-password-end-of-line. |
| 45 | (tramp-password-end-of-line): New method parameter. | 50 | (tramp-password-end-of-line): New method parameter. |
| 46 | (tramp-get-password-end-of-line): Function to access method | 51 | (tramp-get-password-end-of-line): Function to access method |
| @@ -56,13 +61,11 @@ | |||
| 56 | insert-file-contents. This fixes finding remote CVS-controlled | 61 | insert-file-contents. This fixes finding remote CVS-controlled |
| 57 | files. (It would barf on inserting the CVS/Entries file | 62 | files. (It would barf on inserting the CVS/Entries file |
| 58 | literally, because the file-local-copy handler wasn't called.) | 63 | literally, because the file-local-copy handler wasn't called.) |
| 59 | (tramp-handle-shell-command): Support optional third arg | 64 | (tramp-handle-shell-command): Support optional third arg ERROR-BUFFER. |
| 60 | ERROR-BUFFER. | ||
| 61 | (tramp-sh-extra-args): Adapt defcustom type to XEmacs. | 65 | (tramp-sh-extra-args): Adapt defcustom type to XEmacs. |
| 62 | (tramp-initial-commands): New variable. | 66 | (tramp-initial-commands): New variable. |
| 63 | (tramp-process-initial-commands): New function, using the variable. | 67 | (tramp-process-initial-commands): New function, using the variable. |
| 64 | (tramp-open-connection-setup-interactive-shell): Call the new | 68 | (tramp-open-connection-setup-interactive-shell): Call the new function. |
| 65 | function. | ||
| 66 | (tramp-buffer-name, tramp-debug-buffer-name): Always put the | 69 | (tramp-buffer-name, tramp-debug-buffer-name): Always put the |
| 67 | method into the buffer name, never use nil. Reported by Hanak | 70 | method into the buffer name, never use nil. Reported by Hanak |
| 68 | David <dhanak@inf.bme.hu>. | 71 | David <dhanak@inf.bme.hu>. |
| @@ -73,8 +76,7 @@ | |||
| 73 | 76 | ||
| 74 | 2003-07-19 Markus Rost <rost@math.ohio-state.edu> | 77 | 2003-07-19 Markus Rost <rost@math.ohio-state.edu> |
| 75 | 78 | ||
| 76 | * textmodes/artist.el (artist-erase-char): Fix default value using | 79 | * textmodes/artist.el (artist-erase-char): Fix default value using ?\s. |
| 77 | ?\s. | ||
| 78 | 80 | ||
| 79 | 2003-07-19 John Paul Wallington <jpw@gnu.org> | 81 | 2003-07-19 John Paul Wallington <jpw@gnu.org> |
| 80 | 82 | ||
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el index 348c73a0ce5..c8e635268eb 100644 --- a/lisp/textmodes/fill.el +++ b/lisp/textmodes/fill.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; fill.el --- fill commands for Emacs | 1 | ;;; fill.el --- fill commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985,86,92,94,95,96,97,1999,2001,2002 | 3 | ;; Copyright (C) 1985,86,92,94,95,96,97,1999,2001,02,2003 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -785,7 +785,18 @@ can take care of filling. JUSTIFY is used as in `fill-paragraph'." | |||
| 785 | 785 | ||
| 786 | ;; Narrow to include only the comment, and then fill the region. | 786 | ;; Narrow to include only the comment, and then fill the region. |
| 787 | (let* ((fill-prefix fill-prefix) | 787 | (let* ((fill-prefix fill-prefix) |
| 788 | (comment-re (concat "[ \t]*\\(?:" comment-start-skip "\\)")) | 788 | (commark |
| 789 | (comment-string-strip (buffer-substring comstart comin) nil t)) | ||
| 790 | (comment-re | ||
| 791 | (if (string-match comment-start-skip (concat commark "a")) | ||
| 792 | (concat "[ \t]*" (regexp-quote commark) | ||
| 793 | ;; Make sure we only match comments that use | ||
| 794 | ;; the exact same comment marker. | ||
| 795 | "[^" (substring commark -1) "]") | ||
| 796 | ;; If the commark needs to be followed by some special | ||
| 797 | ;; set of characters (like @c in TeXinfo), we can't | ||
| 798 | ;; rely just on `commark'. | ||
| 799 | (concat "[ \t]*\\(?:" comment-start-skip "\\)"))) | ||
| 789 | (comment-fill-prefix ; Compute a fill prefix. | 800 | (comment-fill-prefix ; Compute a fill prefix. |
| 790 | (save-excursion | 801 | (save-excursion |
| 791 | (goto-char comstart) | 802 | (goto-char comstart) |