unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Laurent Hoeltgen <hoeltgman@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Fwd: Setting mark in minibuffer prompt
Date: Sun, 08 Jul 2012 18:15:02 +0200	[thread overview]
Message-ID: <4FF9B206.3040100@gmail.com> (raw)
In-Reply-To: <CAOgUEJLRpnA9g+k4rAArvUG=kmot0eqB8fW_q=4rc7m_jpJrXw@mail.gmail.com>

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 <the.whitfield.diffie@gmail.com>
> 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 <cr> I get today's notes directory but if I type
> <c-x><c-x><c-k><cr>, 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 <c-x><c-f> 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




  reply	other threads:[~2012-07-08 16:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17 15:25 Setting mark in minibuffer prompt Whitfield Diffie
2012-07-08 15:36 ` Fwd: " Whitfield Diffie
2012-07-08 16:15   ` Laurent Hoeltgen [this message]
2012-07-08 16:22   ` Thien-Thi Nguyen
2012-07-08 17:18     ` Whitfield Diffie
2012-07-08 20:21       ` Thien-Thi Nguyen
2012-07-08 17:06   ` Drew Adams
2012-07-08 17:54     ` Whitfield Diffie
2012-07-08 18:07       ` how to customize `read-passwd' [was: Setting mark in minibuffer prompt] Drew Adams
2012-07-11  4:44         ` Whitfield Diffie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FF9B206.3040100@gmail.com \
    --to=hoeltgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).