From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: HIST to read-from-minibuffer Date: Tue, 25 May 2010 19:09:18 +0300 Organization: JURTA Message-ID: <8739xgta9l.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274804883 17886 80.91.229.12 (25 May 2010 16:28:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 16:28:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 25 18:28:01 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OGwyy-0008O1-Ey for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 18:27:56 +0200 Original-Received: from localhost ([127.0.0.1]:54587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGwv2-0008IE-P6 for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 12:23:52 -0400 Original-Received: from [140.186.70.92] (port=56993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGwj6-0001lF-A1 for emacs-devel@gnu.org; Tue, 25 May 2010 12:11:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGwiz-000202-Hx for emacs-devel@gnu.org; Tue, 25 May 2010 12:11:29 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:49769 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGwiz-0001z7-Cr for emacs-devel@gnu.org; Tue, 25 May 2010 12:11:25 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.28.247.cable.starman.ee [82.131.28.247]) by mx2.starman.ee (Postfix) with ESMTP id EC6E93F40FC; Tue, 25 May 2010 19:11:18 +0300 (EEST) In-Reply-To: (Leo's message of "Sat, 22 May 2010 21:25:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125254 Archived-At: > I am trying to read a string with a hist variable. I want the default to > be the first element of the hist variable and the history to start from > the SECOND element. > > I can seem to get the behaviour I want with '(hist . 1) but not '(hist . > 2). However the doc string says: > > "positions are counted starting from 1 at the beginning of the list" > > This looks contradictory to the behaviour I observed. Is this a mistake > on my understand or the doc string? Thanks. Sorry, I don't understand what is contradictory? (let ((hist '("a" "b" "c"))) (read-from-minibuffer "Prompt: " nil nil nil '(hist . 2))) M-p => "c" -- Juri Linkov http://www.jurta.org/emacs/