bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#23468: Feature request: highlight Edebug breakpoints


From: Lars Ingebrigtsen
Subject: bug#23468: Feature request: highlight Edebug breakpoints
Date: Mon, 21 Oct 2019 22:29:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> No, that's not it.  Sorry, I've misled you: you need to look at
> gdb-mi.el, where it puts on an overlay string a display property whose
> value includes 'left-fringe.  See, e.g., gdb-put-string.

Ah, I see.  I've never used fringe stuff before and how it interacts
with overlays isn't self-evident.  Perhaps there should be an example in
the manual?

By cargo-culting the code from gdb-mi, I get the following way to make
an overlay that's not hiding anything in the buffer, but just showing a
fringe bitmap:

 (let ((fringe (make-overlay pos pos)))
   (overlay-put fringe 'before-string
                (propertize "x" 'display `(left-fringe breakpoint ,face)))))))))


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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