help-emacs-windows
[Top][All Lists]
Advanced

[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:04:31 +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 ?~))

If all you are trying to do is make the tilde behave as above
then I would first question why. As you can enter a new filename
starting with tilde without deleting the existing directory.

If you really want to delete the directory in the prompt it
may be worth trying to run the minibuffer-complete command
automatically after inserting the tilde.

You could also look at minibuffer-complete to see how that
deletes the prompt


HTH

----------------------------------------------------------------
Andy Ling                         email: address@hidden
Quantel Ltd.                      Tel:   +44 (0)1635 48222
Turnpike Road, Newbury Berks UK. RG14 2NE
----------------------------------------------------------------






reply via email to

[Prev in Thread] Current Thread [Next in Thread]