bug-texinfo
[Top][All Lists]
Advanced

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

Re: address@hidden: texinfmt.el + kinsoku.el combined bug]


From: Thierry Emery
Subject: Re: address@hidden: texinfmt.el + kinsoku.el combined bug]
Date: Mon, 01 Sep 2003 10:41:59 +0200
User-agent: T-gnus/6.16.2 (based on Gnus v5.10.2) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

Hello,

Kenichi Handa <address@hidden> writes:

[...]
> But, I still can't be sure that the current way is the right
> thing.  If we have, for instance, 
>       @code{(setq x 'a  b c d')}
> we can't fill such a line because filling will delete one
> space between 'a' and 'b'.
>
> Perhaps, texinfo mode should set fill-nobreak-predicate
> properly.

I agree, and as i'm not working today, i made an attempt at it...
What do you think of the attached patch for texinfo.el, which
introduces `texinfo-fill-nobreak-predicate' (inspired from
`latex-fill-nobreak-predicate') ?

Moreover, i attach a new test file, with paragraphs for @samp, @code and @kbd
for testing `texinfo-fill-nobreak-predicate', but also with a paragraph for
@xref, which requires the previous kinsoku.el modification (i have checked in
CVS emacs/man/*.texi that line breaking inside @xref is quite common, while
it is not found for @samp, @code and @kbd).

The test procedure is roughly the same:
emacs -q test3.texi
C-s samp
M-q
M-}
M-q
M-}
M-q
M-}
M-q

Thierry

Attachment: patch-texinfo
Description: Binary data

Attachment: test3.texi
Description: Binary data


reply via email to

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