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

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

Re:Re: reading a variable from the user


From: horse_rivers
Subject: Re:Re: reading a variable from the user
Date: Wed, 10 Oct 2012 17:22:54 +0800 (CST)





is this in gdb's  debug mode ,which is used to get  the  debugged  process's  local  varible value? 


At 2012-10-10 17:16:06,"Tassilo Horn" <address@hidden> wrote: >Francesco Mazzoli <address@hidden> writes: > >> At Wed, 10 Oct 2012 00:24:35 -0700 (PDT), >> drain wrote: >>> Is there a function that prompts the user in the mini-buffer, matches the >>> string input with a local variable name, and then returns the variable?  >> >> You can use something like >> >>     (defun foo (var) >>       (interactive "v") >>       (message "%S" (symbol-value var))) >> >> See the help page for `interactive' for more info. > >Or simply do `C-h v <variable-name> RET' which shows the documentation >and the current value of that variable. > >Bye, >Tassilo > >



reply via email to

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