Received: by 10.66.88.231 with SMTP id bj7mr5516185pab.45.1349860129627; Wed, 10 Oct 2012 02:08:49 -0700 (PDT) Path: jt13ni1492pbb.1!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail From: Francesco Mazzoli Newsgroups: gnu.emacs.help Subject: Re: reading a variable from the user Date: Wed, 10 Oct 2012 10:08:34 +0100 Lines: 16 Approved: help-gnu-em...@gnu.org Message-ID: References: <1349853875855-266778.post@n5.nabble.com> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") X-Trace: usenet.stanford.edu 1349860129 2030 208.118.235.17 (10 Oct 2012 09:08:49 GMT) X-Complaints-To: action@cs.stanford.edu To: Help-gnu-em...@gnu.org Envelope-to: Help-gnu-em...@gnu.org d=google.com; s=20120113; h=date:message-id:from:to:subject:in-reply-to:references:user-agent :mime-version:content-type:x-gm-message-state; bh=qKPldcGNY4t/8Tn0QU33OXjnGbzW3lSqIHR3FYTI2zo=; b=V8Zv4lXZ38tT7jgeV8NaXex6zyanDVrVjec0Pls5g/12ONzS9WRGC7yyBoQ8/OMogB cT3s/30OG1I9U4JGwo11JYfn3UZbctx4PylgFy66Cphn30CCwrflo0YU+GRv8so8REkD 3PEu5i4wSj8uZ+tSW/iVhAfij3ZAVjEs8Cf+qiBJcmWUJdBlDLhdCvor0NBtpCsFDXW6 8VBfro1gcn0+QrRRqJm72K9lyx93CcQCYPh8BcrZgCvxnWufc5XUTf4ztOxAd31X8BAZ yV1jkOj71l41Zp9R/9cRs/kCkZISEFH0lm9A0yiD/Q/0QtKEnxf8Z/E6X+p7P7jJafz+ O03g== In-Reply-To: <1349853875855-266778.post@n5.nabble.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Gm-Message-State: ALoCoQmmYADY3r4k5hFC7tMQKoIllitoMdPjRpsZ32bP43gSj+jSfy3Q9VL4zhVqX0DCe0wEtAUy X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.171 X-BeenThere: help-gnu-em...@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=US-ASCII 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. -- Francesco * Often in error, never in doubt