From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: Fwd: Choosing interactively from a list (starting off at any position) Date: Tue, 9 Dec 2014 11:52:01 -0800 Message-ID: References: <8761dnhgog.fsf@bertrandrussell.Speedport_W_723V_1_36_000> <9ff79013-f4e1-4be1-97da-e66e3cc048ba@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1418154775 17733 80.91.229.3 (9 Dec 2014 19:52:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 19:52:55 +0000 (UTC) To: "help-gnu-emacs@gnu.org" , Drew Adams , "Florian v. Savigny" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 09 20:52:48 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XyQq0-0007Xr-Kw for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Dec 2014 20:52:48 +0100 Original-Received: from localhost ([::1]:42259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQq0-0006Ms-AP for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Dec 2014 14:52:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQpd-00068Y-Tv for help-gnu-emacs@gnu.org; Tue, 09 Dec 2014 14:52:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyQpd-0005DB-1w for help-gnu-emacs@gnu.org; Tue, 09 Dec 2014 14:52:25 -0500 Original-Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:33910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQpc-0005By-Ua for help-gnu-emacs@gnu.org; Tue, 09 Dec 2014 14:52:25 -0500 Original-Received: by mail-ob0-f178.google.com with SMTP id gq1so1032412obb.37 for ; Tue, 09 Dec 2014 11:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=cMti3o2hxo7q/5MXNXizzdU6kJzDlmcuf8M2zvXeDLk=; b=1EfIJsF8tGoTBf3N3Yv0DhKN3i9MkigjzGzsW/6EbYMZWu5EUDgwRslwArRZKLBfIC 0bLxFLVlYC3q1mveUOByFQoB/7UZqwYwef2q4Y42Qvs1bthdkXYV/vtzv7KnqKQoD3zx kz+pid7GDIN2ejWypKQKUh9aNMSEFvnMJnY0f3agrwKGJjjkURI8WXaDMY67kwSyr6yI cNvxSrRyOtgfRtFbyTfUj04xHX617+NkQ009evZH8vX5hu0ckhSE+/ocMH5JhzT6LfyJ Ea1qIZDkYZueoWLqVHX5kcJdu7Vv87bJ/31Te1cT86i2WZT5fr8UvFVRH9sfgb6wQDFF ASxw== X-Received: by 10.60.73.138 with SMTP id l10mr150502oev.28.1418154742055; Tue, 09 Dec 2014 11:52:22 -0800 (PST) Original-Received: by 10.76.125.194 with HTTP; Tue, 9 Dec 2014 11:52:01 -0800 (PST) In-Reply-To: <9ff79013-f4e1-4be1-97da-e66e3cc048ba@default> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::232 X-BeenThere: help-gnu-emacs@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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101494 Archived-At: Drew Adams wrote: >> But your solution works perfectly - thanks a lot for your ideas!! I >> would still like to understand why it works, though. ;-) > > It works for the reason you conjectured: you are supplying the same > list for the completion candidates and for the history. And as you > mentioned, the history should be a variable (a symbol), in this case > `choose-from-list-history'. There's nothing else to understand. But (info "(elisp) Variable Scoping") may be of interest. -- john