all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: emacs-devel@gnu.org
Subject: Placing eol glyph (buffer-display-table) before an overlay after-string.
Date: Fri, 11 Aug 2017 23:14:31 -0700	[thread overview]
Message-ID: <m2shgxfh2w.wl%esq@lawlist.com> (raw)

My goal is to use a pilcrow to represent line endings, and this option can be set up using the appropriate buffer-display-table entry.

I have a custom minor mode that draws cross-hairs the length of the screen to track the cursor position, which requires the use of the overlay after-string property.  Emacs draws the eol glyph after the overlay after-strings are placed -- i.e., to the right of the after-string.  The result is that the eol glyph (e.g., pilcrow) is always on the far right of the after-string overlay.  I want the eol glyph to appear at the end of the line of text, and the overlay after-string should come after the eol glyph (not before).

Is it feasible to reverse the order such that the eol glyph is laid before the overlays containing the after-string property?

A hint as to the locations (in the C code) where I would start working on reversing the order would be greatly appreciated.

If there is a better way to handle this than trying to reverse the order in which things are happening, any insight would be helpful.

WORKAROUND:  I have been using a custom XPM image of a pilcrow that is the beginning of the after-string, and I change its coloration (foreground/background) as needed.  The problem with this approach is that the XPM does not look as good as a native eol glpyh, and the XPM would need to be adjusted depending upon the font and size of the font.

Thanks,

Keith David Bershatsky



             reply	other threads:[~2017-08-12  6:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-12  6:14 Keith David Bershatsky [this message]
2017-08-12  6:56 ` Placing eol glyph (buffer-display-table) before an overlay after-string Eli Zaretskii
2017-08-12  9:26 ` Yuri Khan
2017-08-12  9:52   ` Eli Zaretskii
2017-08-12 10:18     ` Yuri Khan
2017-08-12 10:32       ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2017-08-12 19:03 Keith David Bershatsky

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=m2shgxfh2w.wl%esq@lawlist.com \
    --to=esq@lawlist.com \
    --cc=emacs-devel@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.