From: Christian Seberino <cseberino@gmail.com>
To: Drew Adams <drew.adams@oracle.com>, help-gnu-emacs@gnu.org
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 18:38:56 -0600 [thread overview]
Message-ID: <54CC2420.9050306@gmail.com> (raw)
In-Reply-To: <54CC2360.20102@gmail.com>
Here is how I configured my Tramp abbreviations in case the problem is
there...
(define-abbrev-table
'tramp-abbrev-table
'(("d" "/ssh:cs@philfour.com:/home/cs/Ws")
("dr" "/ssh:cs@philfour.com|su:philfour.com:/home")
("w" "/ssh:cs@services.philfour.com:/home/webwork_custom")
("wr" "/ssh:cs@services.philfour.com|su:services.philfour.com:/home")))
(add-hook 'minibuffer-setup-hook (lambda ()
(abbrev-mode t)
(setq local-abbrev-table
tramp-abbrev-table)))
(defadvice minibuffer-complete
(before my-minibuffer-complete activate)
(expand-abbrev))
On 01/30/2015 06:35 PM, Christian Seberino wrote:
> You may have seen my post regarding this...
>
> (defun my-find-file-around-ad (origfun &rest args)
> (interactive
> (find-file-read-args "Open file: "
> (confirm-nonexistent-file-or-buffer)))
> (apply origfun args))
>
> I don't know why that has the same issue of NOT removing the TAB properly
> like find-file does.
>
> Dunno why.
>
> cs
> On 01/30/2015 06:31 PM, Drew Adams wrote:
>>>> 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.
>
--
___________________________
Christian Seberino, Ph.D
cseberino@gmail.com
(936) 828-8747
___________________________
next prev parent reply other threads:[~2015-01-31 0:38 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-30 4:08 Easy/Possible to globally change prompt strings of messages? e.g. changing find-file's prompt string from "Find file:" to "open file:" ? Chris Seberino
2015-01-30 4:19 ` Drew Adams
2015-01-30 5:03 ` Christian Seberino
2015-01-30 8:42 ` Michael Heerdegen
2015-01-30 16:19 ` [OT] " Harry Putnam
2015-01-30 16:33 ` Drew Adams
2015-02-05 20:57 ` Harry Putnam
2015-02-05 21:41 ` Michael Heerdegen
2015-02-06 14:35 ` Harry Putnam
2015-01-30 14:41 ` Drew Adams
2015-01-30 23:30 ` Christian Seberino
2015-01-31 0:31 ` Drew Adams
2015-01-31 0:35 ` Christian Seberino
2015-01-31 0:38 ` Christian Seberino [this message]
2015-02-01 13:55 ` Michael Heerdegen
2015-02-01 23:18 ` Christian Seberino
2015-02-02 21:43 ` Marcin Borkowski
2015-02-02 22:11 ` Drew Adams
[not found] ` <mailman.19192.1422915104.1147.help-gnu-emacs@gnu.org>
2015-02-03 3:31 ` Rusi
[not found] ` <mailman.18960.1422607363.1147.help-gnu-emacs@gnu.org>
2015-01-30 23:58 ` Chris Seberino
2015-02-01 13:51 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54CC2420.9050306@gmail.com \
--to=cseberino@gmail.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).