auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Re: Fontifying of titles...


From: David Kastrup
Subject: Re: [AUCTeX-devel] Re: Fontifying of titles...
Date: Sat, 09 Apr 2005 14:00:55 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * David Kastrup (2005-04-09) writes:
>
>> Ralf Angeli <address@hidden> writes:
>>
>>> You can call this instead of `current-fill-column' in
>>> `LaTeX-fill-region-as-para-do'.  It works while debugging with edebug
>>> but fails (i.e. gets only the first line right) when called via
>>> `M-q'.  Dunno why.
>>
>> Maybe it is only called once per paragraph, and not once per line?
>
> I don't see a reason why it should be called only once when not under
> debugger control.
>
>> Anyway, would not something like
>>
>> (save-excursion
>>   (let ((oldpoint (point)))
>>     (move-beginning-of-line)
>>     (if (or (< (vertical-motion 1) 1)
>
> (vertical-motion 1) returns something smaller than 1 when invoked on
> a wrapped line?

Who said that?

> For me it always returns 1, both on overlong and non-overlong lines.

But probably not when you are in the last (incomplete) line of the
accessible buffer.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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