emacs-devel
[Top][All Lists]
Advanced

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

Re: [a kludge]


From: Uwe Brauer
Subject: Re: [a kludge]
Date: Wed, 10 Apr 2019 15:02:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)




   > 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)))




reply via email to

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