From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-devel@gnu.org
Subject: Re: [a kludge]
Date: Wed, 10 Apr 2019 15:02:25 +0200 [thread overview]
Message-ID: <87ftqqau8u.fsf@mat.ucm.es> (raw)
In-Reply-To: 87pnpuav87.fsf_-_@mat.ucm.es
> How I found the following kludge in
> https://stackoverflow.com/questions/40071598/emacs-how-to-enable-highlighting-breakpoints-in-a-text-terminal-emacs-nw
> (require 'gdb-mi)
> (setq default-text-properties '(foo 1111))
> (defun set_breakpt_cmds ()
> "Set Breakpoint and indicate on Editor"
> (interactive)
> (gud-break 1)
> (gdb-put-breakpoint-icon "false" (get-text-property 1 'foo)))
> Problem is: how to I remove the icon
> (defun remove-breakpoint-icons ()
> (interactive)
> (move-beginning-of-line 1)
> (mark-end-of-line 1)
> (gdb-remove-breakpoint-icons (region-beginning) (region-end)))
Should be
(defun my-gud-remove-breakpoint-with-icons ()
(interactive)
(gud-remove 1)
(gdb-remove-breakpoint-icons (line-beginning-position) (line-end-position)))
prev parent reply other threads:[~2019-04-10 13:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-10 11:01 highlight lines with gud breakpoints Uwe Brauer
2019-04-10 11:55 ` Eli Zaretskii
2019-04-10 11:57 ` Uwe Brauer
2019-04-10 12:07 ` Eli Zaretskii
2019-04-10 12:03 ` Uwe Brauer
2019-04-10 12:11 ` Eli Zaretskii
2019-04-10 12:17 ` Uwe Brauer
2019-04-10 12:36 ` Eli Zaretskii
2019-04-10 12:41 ` [a kludge] (was: highlight lines with gud breakpoints) Uwe Brauer
2019-04-10 13:02 ` Uwe Brauer [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ftqqau8u.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).