[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Re: backward-kill-word in minibuffer
From: |
andy . ling |
Subject: |
Re: [h-e-w] Re: backward-kill-word in minibuffer |
Date: |
Wed, 19 Dec 2001 14:19:34 +0000 |
> My own electric commands look like the following piece of code.
> (defun minibuffer-electric-tilde ()
> (interactive)
> (if (eq ?/ (preceding-char))
> (delete-region (point-min) (point)))
> (insert ?~))
What about using (minibuffer-prompt-end)
minibuffer-prompt-end is a compiled Lisp function in `simple'.
(minibuffer-prompt-end)
Return the buffer position of the end of the minibuffer prompt.
Return (point-min) if current buffer is not a mini-buffer.
HTH
----------------------------------------------------------------
Andy Ling email: address@hidden
Quantel Ltd. Tel: +44 (0)1635 48222
Turnpike Road, Newbury Berks UK. RG14 2NE
----------------------------------------------------------------