all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Frank Fischer <frank.fischer@mathematik.tu-chemnitz.de>
To: help-gnu-emacs@gnu.org
Subject: Face of wrap-prefix in adaptive-wrap
Date: Wed, 21 Aug 2013 09:06:03 +0200	[thread overview]
Message-ID: <iwbo4rmskk.fsf@newton.mathematik.tu-chemnitz.de> (raw)

Hi,

I often use visual-line-mode together with adaptive-wrap-mode when
writing certain kinds of text (in particular LaTeX). However, It seems
as if the prefix-text in the wrapped lines does not share the face of
the original prefix in the first visual line: screenshot [1] shows an
emacs-lisp buffer with a wrapped comment. The (comment) prefix of the
successive lines is black instead of red.

The problem becomes more apparent when used in conjunction with
variable-width fonts, which I use with LaTeX files [2]. The first
wrapped line has again a comment prefix, but the successive lines seem
to use the wrong (fixed width) font. The second wrapped line has only a
whitespace prefix, but again the wrap-prefix seems to use the wrong font
(with "larger" spaces) causing a too large indentation of the successive
lines (I would expect the successive lines to have exactly the same
indentation as the first visual line). This problem gets
worse as the indentation of the first line is increased.

IIRC the problem did not exist in Emacs 23 (the examples are all with
Emacs 24.2.1), where the wrap-prefix always had the same font as the
original prefix (but I may be wrong).

Is there a way to make the wrap-prefix have the same font/face as the
original prefix?

Best regards,
Frank Fischer


Footnotes: 
[1]  http://www.tu-chemnitz.de/~fifr/ex-awrap1.png

[2]  http://www.tu-chemnitz.de/~fifr/ex-awrap2.png





             reply	other threads:[~2013-08-21  7:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-21  7:06 Frank Fischer [this message]
2013-08-21 15:26 ` Face of wrap-prefix in adaptive-wrap Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iwbo4rmskk.fsf@newton.mathematik.tu-chemnitz.de \
    --to=frank.fischer@mathematik.tu-chemnitz.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.