From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Laurent Hoeltgen Newsgroups: gmane.emacs.help Subject: Re: Fwd: Setting mark in minibuffer prompt Date: Sun, 08 Jul 2012 18:15:02 +0200 Message-ID: <4FF9B206.3040100@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341764122 15218 80.91.229.3 (8 Jul 2012 16:15:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2012 16:15:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 18:15:22 2012 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 1Snu8k-0004pI-2q for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 18:15:18 +0200 Original-Received: from localhost ([::1]:46470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snu8j-0006Hp-0h for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 12:15:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snu8c-0006Hi-H4 for help-gnu-emacs@gnu.org; Sun, 08 Jul 2012 12:15:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Snu8a-0003hc-PY for help-gnu-emacs@gnu.org; Sun, 08 Jul 2012 12:15:10 -0400 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:48181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Snu8a-0003fX-Fu for help-gnu-emacs@gnu.org; Sun, 08 Jul 2012 12:15:08 -0400 Original-Received: by bkcjc3 with SMTP id jc3so6919212bkc.0 for ; Sun, 08 Jul 2012 09:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=LJGCiNA9/Wxc4St/1oXF886XbUeFzIFVTBaGbI9vteI=; b=PMBGXBniFzt0gnTdQ0xp4kMEJ7A/eCRQzMOiOcEV9/ZFG17nQVJOlVEZm9cngDUSUD s/6ZkuPuUjFfZssATk8XEAP7WCMYCWNx7m5Gv1TsaXP6LsUGEFJ4D8zdaZMMdk51iQwp +GgNmthQ4JhlbkFsQVtJLmh9dpUqmOdxJrX/Yad1YuVX/HNR8ZWdAh5Zmdxd4v2zQBnP aNuPxwIUc9OmNn2olT9yLVAgwdclbEzkJxJvHdsXA7MsBGWNjx3zUKy4/Tezd0vt55LU tEtKpZO+NDWLvo8IPejxYXmaQO3P3lB1qCVx91pejjvAS0DmLyjG7dmfE+EkAtWvYSW1 j4Zw== Original-Received: by 10.204.145.88 with SMTP id c24mr18127244bkv.24.1341764105566; Sun, 08 Jul 2012 09:15:05 -0700 (PDT) Original-Received: from [192.168.178.26] (p579A8AC2.dip.t-dialin.net. [87.154.138.194]) by mx.google.com with ESMTPS id g6sm1272700bkg.2.2012.07.08.09.15.03 (version=SSLv3 cipher=OTHER); Sun, 08 Jul 2012 09:15:04 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 In-Reply-To: X-Enigmail-Version: 1.4.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.41 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:85727 Archived-At: On 07/08/2012 05:36 PM, Whitfield Diffie wrote: > I haven't had any response to this message. Is this simply that > no one knew the answer or that I am sending it to the wrong place. > Would someone please acknowledge receipt? > > Whit > > ---------- Forwarded message ---------- > From: Whitfield Diffie > Date: Thu, May 17, 2012 at 8:25 AM > Subject: Setting mark in minibuffer prompt > To: help-gnu-emacs@gnu.org > > > I am trying to write an interactive function that prompts for a > filename, placing point at the end of the prompt and mark somewhere > earlier in the path. For example, I would like to be prompted: > > ~/notes-directory/2012.05.17/ > ^ ^ > | | > mark point > > so that if I type a I get today's notes directory but if I type > , I get the overall notes directory. > > It is certainly possible to get to this state by hand. From > today's notes directory, I can type and get the prompt > > Find file: ~/notes-directory/2012.05.17/ > > if I now move the cursor back to just before 2012, set the mark and > move the cursor to the end of the line, I am in the right state. > > I can also manage to set the arguments to read-file-name in such a > way that the point is somewhere in the middle of the prompt but what I > want is to have the point at the end and the mark in the middle. > > > I hope I am writing to the right place. I have received some > wonderful help on some occasions in the past and silence on others. > > Many thanks, > > Whit > Hi, Your message has arrived. Unfortunately, I can't really help you. Maybe somebody else can. Regards, Laurent