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 16:31:07 -0800 (PST) Message-ID: References: <90b92a22-d34c-4f7e-953e-74444f42e767@googlegroups.com> <54CB109E.1030802@gmail.com> <54CC1410.1050408@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 1422664287 15206 80.91.229.3 (31 Jan 2015 00:31:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 00:31:27 +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 Sat Jan 31 01:31:27 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 1YHLy7-0007ZX-I2 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 01:31:23 +0100 Original-Received: from localhost ([::1]:39245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHLy6-0004nh-LS for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 19:31:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHLxw-0004na-61 for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 19:31:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHLxs-0007Jf-TD for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 19:31:12 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:35915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHLxs-0007JX-NN for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 19:31:08 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t0V0V6S5005936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 31 Jan 2015 00:31:06 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0V0V5SQ000647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 31 Jan 2015 00:31:06 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0V0V5dT015087; Sat, 31 Jan 2015 00:31:05 GMT In-Reply-To: <54CC1410.1050408@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: acsinet22.oracle.com [141.146.126.238] 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:102389 Archived-At: > > 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. >=20 > 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.