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 06:41:10 -0800 (PST)

> Thanks!  As a consolation prize...what if I only wanted to change the
> prompt string when I called wrapper functions *myself*
> with a shortcut key?
> 
> e.g. I could write my own function called my-find-file that had whatever
> prompt string I wanted, and, then have
> it call find-file internally.  I actually went down that route.  The
> problem I had was that I rely on the
> TAB completion and abbreviation features of find-file for Tramp and
> other stuff with long path names.
> 
> Perhaps it would be feasible/easier to somehow add all those wonderful
> features (TAB completion and abbreviations)
> to my own wrapper functions? How hard is *that* by comparision?

My opinion?  Don't bother.

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.



reply via email to

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