[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-
From: |
Frank Fischer |
Subject: |
bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face |
Date: |
Thu, 22 Aug 2013 18:15:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
Am 08/22/2013 06:03 PM, schrieb Eli Zaretskii:
>> Date: Thu, 22 Aug 2013 17:26:50 +0200
>> From: Frank Fischer <frank.fischer@mathematik.tu-chemnitz.de>
>> CC: Frank Fischer <frank.fischer@mathematik.tu-chemnitz.de>,
>> monnier@iro.umontreal.ca, 15155@debbugs.gnu.org
>>
>>> How about using the face returned by face-at-point, instead of
>>> 'default'?
>>
>> I'm not sure. In my tests (adding several % comment marker before a line
>> in a LaTeX document) I got strange results. Sometimes the wrap prefix
>> had the correct color, sometimes not. But in no case it had the correct
>> (variable-width) font. I used the following code (of course the correct
>> name of the variable is `adaptive-fill-regexp` not `adaptive-fill-prefix`):
>>
>> (setq adaptive-fill-function
>> (lambda ()
>> (and adaptive-fill-regexp
>> (looking-at adaptive-fill-regexp)
>> (propertize (match-string-no-properties 0) 'face
>> (face-at-point)))))
>
> Perhaps you are calling face-at-point at the wrong buffer position.
Perhaps, but what is the correct buffer position (I expected (point)
when `looking-at` is called to be the correct one, but this may be wrong
in some cases -- I do not know enough about the internals of determining
the wrap-prefix to really say what's going on)?
However, as long as the prefix does not get the correct font it does not
matter, because this is the most important aspect (for me because I want
to use adaptive-wrap with variable-pitch-mode).
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Frank Fischer, 2013/08/21
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Stefan Monnier, 2013/08/21
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Frank Fischer, 2013/08/22
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Eli Zaretskii, 2013/08/22
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Frank Fischer, 2013/08/22
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Eli Zaretskii, 2013/08/22
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face,
Frank Fischer <=
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Eli Zaretskii, 2013/08/22
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Frank Fischer, 2013/08/22
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Eli Zaretskii, 2013/08/23
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Frank Fischer, 2013/08/23
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Eli Zaretskii, 2013/08/23
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Frank Fischer, 2013/08/23
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Stefan Monnier, 2013/08/23
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Frank Fischer, 2013/08/24
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Stefan Monnier, 2013/08/26
- bug#15155: 24.3; wrap-prefix in adaptive-wrap-prefix-mode with variable-pitch has wrong face, Stefan Monnier, 2013/08/23