Hi Uwe,

Looks like you were having some fun with the GUD API. :)

The type of snippets you forwarded look like they could work, though I didn't try them.  My assumption was that if users started using a feature like you describe, and and typed:

dbclear all

or

dbstop in foo

and icons didn't appear/disappear correctly then they would send bug reports.  As long as it's clear that you have to use the EMACS commands to set/remove breakpoints, then maybe that's ok.

If you're feeling adventurous, a matlab script in matlab-emacs/toolbox that uses 'dbstatus' and prints out a formatted list of breakpoints could be used to 'fix up' the breakpoint icons.  Shadows scripts for dbclear and dbstop that call said script could probably get something kindof hacky up and running for keeping icons up to date.  This would require some new output filter/parsing to get going.  Could be a fun project.

Enjoy
Eric

On 4/10/19 9:02 AM, Uwe Brauer wrote:
Last function should be



(defun my-gud-remove-breakpoint-with-icons ()
   (interactive)
   (gud-remove 1)
   (gdb-remove-breakpoint-icons  (line-beginning-position) (line-end-position)))





_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to