From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Seberino 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 17:30:24 -0600 Message-ID: <54CC1410.1050408@gmail.com> 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=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1422660651 26336 80.91.229.3 (30 Jan 2015 23:30:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 23:30:51 +0000 (UTC) To: Drew Adams , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 00:30:50 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 1YHL1U-0006oH-1O for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 00:30:48 +0100 Original-Received: from localhost ([::1]:39105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHL1T-0000No-Ei for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 18:30:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHL1D-0000NU-RT for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 18:30:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHL19-0005Rx-NX for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 18:30:31 -0500 Original-Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:48155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHL19-0005Rn-Cm for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 18:30:27 -0500 Original-Received: by mail-ob0-f182.google.com with SMTP id nt9so5399679obb.13 for ; Fri, 30 Jan 2015 15:30:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=SKmwbiI89kijMUhM6i47iq1VLK1xs9IGevVt4A386iM=; b=LkUlpGxcoLSRsGe6jqanBmY/PgBhbeDavB4jmNpLgpxx4fbfgcsGQWiYT2sEloTuZm hrh95KqNNWI+hvzdCaREFzDKhwOjGp/PVVp6NPhzF8SfV4rpedMoyDtRB+99mIdb6hST leeCOv6tpPaKZjsI9mf8yliQS1J9KO9X7hsE3F2daQFMLN5J9ZViPRH4oLaybwTiKf6Y yvRAb3uEskisOVhYxJN2jkbGV1dGJt1GH8O0aR37hyX48II0nXb/lloRTCNp3hRj7HsP jqUb6KD3iEFxm3ttD6h8CI4GfZIZ8muyKqEf6fNOqpxYKthMtl6r8a/321bZLUX0CGmu H9MQ== X-Received: by 10.182.33.138 with SMTP id r10mr5253967obi.67.1422660626729; Fri, 30 Jan 2015 15:30:26 -0800 (PST) Original-Received: from [192.168.1.104] (r74-193-13-167.cnrocmta01.conrtx.tl.dh.suddenlink.net. [74.193.13.167]) by mx.google.com with ESMTPSA id b192sm5941712oih.4.2015.01.30.15.30.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jan 2015 15:30:25 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::236 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:102387 Archived-At: On 01/30/2015 08:41 AM, 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)) The TAB completion for abbreviations works great with one problem....the TAB is not removed but APPENDED to end of replacement. So after pressing day "d" + "TAB" instead of getting this... "/ssh:me@example.com:/home/me/some/path" I see this "/ssh:me@example.com:/home/me/some/path " (Notice the TAB at end!) How remove the TAB? Somehow the insert works differently when a custom interactive file is called versus when find-file does it? cs