[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Re: C-x C-f *.txt RET
From: |
Stephen Leake |
Subject: |
Re: [h-e-w] Re: C-x C-f *.txt RET |
Date: |
Fri, 09 Jun 2006 10:56:08 -0400 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) |
Mathias Dahl <address@hidden> writes:
>>From the documentation string:
>
> --
> C-x C-f runs the command find-file
> which is an interactive compiled Lisp function in `files.el'.
> It is bound to <open>, C-x C-f, <menu-bar> <file> <new-file>.
> (find-file filename &optional wildcards)
That explains my problem.
I have C-x C-f bound to 'sal-find-file', which wraps 'find-file' with
a check for a user arg, which means 'other-window'.
Apparently I've inadvertently defeated the wildcards functionality.
Here's my function:
(defun sal-find-file (filename)
"Find a file. Prefix arg means other window."
(interactive "FFind file: ")
(if current-prefix-arg
(find-file-other-window filename)
(find-file filename) ))
Any advice on restoring the wildcards? I'm always up for learning more
about elisp.
--
-- Stephe