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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Easy/Possible to globally change prompt strings of messages? e.g. ch


From: Drew Adams
Subject: RE: Easy/Possible to globally change prompt strings of messages? e.g. changing find-file's prompt string from "Find file:" to "open file:" ?
Date: Fri, 30 Jan 2015 16:31:07 -0800 (PST)

> > But yes, you certainly can call `find-file-read-args' (or
> > `read-file-name') yourself, passing it any prompt you like. You will
> > get all of the usual TAB completion etc. - no problem.
> 
> Can I ask if the 2 functions you mentioned above would fix a minor
> problem with this simple wrapper below?...
> (defun my-find-file (name) (interactive "sopen file: ") (find-file name))

Yes.  `find-file-read-args' is made to order for `find-file' and
similar commands.  `read-file-name' is more general - it is called
by `find-file-read-args'.  These provide file-name completion.

You want to read a file name, not a string.



reply via email to

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