[Top][All Lists]

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

Re: Swap GUD fringe/margin mouse-2 and mouse-3 bindings

From: Kim F. Storm
Subject: Re: Swap GUD fringe/margin mouse-2 and mouse-3 bindings
Date: Mon, 29 May 2006 15:05:16 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Nick Roberts <address@hidden> writes:

>  > BTW, besides the [p] button and gud-tooptips, is there some easy way to
>  > look at the value of the expression under the mouse?
> I'm not sure what you're looking for but:
> 1) Gud-tooltips use tooltip-identifier-from-point which extracts the most
>    basic part of a variable name at point e.g. a.
> 2) Gud-print uses gud-find-c-expr (for C) for this purpose which knows
>     something about C syntax e.g a->b.  You can also select a region with the
>     mouse for printing an expression e.g a + 4*b (this a recent feature).
> 3) Watch expressions allow you to explore structures and arrays in the
>    speedbar, and watch variable values change during execution.  Again this
>    uses gud-find-c-expr and expressions can be selected with the mouse.

Something like this:

In buffer I have something like 

    if (a == b->c->d) ...;

I would like to be able to "click" on "a" to see the value of a (in
message area), on "b" to see value of b, somewhere on "->c" to
see value of b->c and on "d" to see value of "b->c->d".

It could be enhanced to

   (((a) + b) + c)

so that clicking on the first ) shows value of (a), on second ) shows
value of ((a) + b) and on last ) shows value of whole expression.

Well, just sort of SWIM (show what I mean)  :-)


A way to toggle gud tool-tips in the GUD toolbar (I don't want them
enabled all the time).

Make gud tooltips use gud-find-c-expr instead of

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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