From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help 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) Message-ID: References: <90b92a22-d34c-4f7e-953e-74444f42e767@googlegroups.com> <54CB109E.1030802@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422628903 15978 80.91.229.3 (30 Jan 2015 14:41:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 14:41:43 +0000 (UTC) To: Christian Seberino , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 30 15:41:43 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YHClM-0002hz-6K for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 15:41:36 +0100 Original-Received: from localhost ([::1]:37037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHClL-0005ql-Id for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 09:41:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHCl5-0005qf-8z for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 09:41:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHCl1-0006MN-6h for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 09:41:19 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:34802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHCl1-0006MF-0W for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 09:41:15 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t0UEfBFI004259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 30 Jan 2015 14:41:12 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0UEfAHG008794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 30 Jan 2015 14:41:11 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0UEfAR6007737; Fri, 30 Jan 2015 14:41:10 GMT In-Reply-To: <54CB109E.1030802@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102382 Archived-At: > 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? >=20 > 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. >=20 > 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.