emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fortran-fill-paragraph fails


From: Michaël Cadilhac
Subject: Re: fortran-fill-paragraph fails
Date: Sun, 24 Dec 2006 21:26:12 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux)

address@hidden (Michaël Cadilhac) writes:

> "Roland Winkler" <address@hidden> writes:
>
>> Start a fresh emacs --no-init-file. Load file foo.f (fortran-mode):
>> cat foo.f <<EOF
>> C     This is a fortran comment
>>       CALL FOO
>> EOF
>>
>> On line 1 execute fill-paragraph, which will run
>> fortran-fill-paragraph. This gives me
>>
>> C     This is a fortran comment ALL FOO
>
> Thanks for reporting this bug.
>
> Does the following fix it ? (And is it an acceptable solution ?)
>
> *** lisp/textmodes/fill.el    6 Nov 2006 16:01:53 -0000       1.192
> --- lisp/textmodes/fill.el    24 Dec 2006 00:12:07 -0000
> ***************
> *** 838,844 ****
>            (commark
>             (comment-string-strip (buffer-substring comstart comin) nil t))
>            (comment-re
> !           (if (string-match comment-start-skip (concat commark "a"))
> --- 838,844 ----
>            (commark
>             (comment-string-strip (buffer-substring comstart comin) nil t))
>            (comment-re
> !           (if (string-match comment-start-skip (concat "\0" commark "a"))

Installed.

-- 
/!\ My mail address has changed, please update your files accordingly.
 |      Michaël `Micha' Cadilhac     |  C'est véritablement un scandale       |
 |         Epita/LRDE Promo 2007     |    et probablement une contrepéterie.  |
 |  http://michael.cadilhac.name     |          -- P. Desproges               |
 `--JID: address@hidden'                                   -  --'

Attachment: pgpMS0udaR4EB.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]