From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen 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 09:42:18 +0100 Message-ID: <87h9v8bqxh.fsf@web.de> 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 X-Trace: ger.gmane.org 1422607598 13336 80.91.229.3 (30 Jan 2015 08:46:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 08:46:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 30 09:46:37 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 1YH7Do-0002i4-LX for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 09:46:36 +0100 Original-Received: from localhost ([::1]:35499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH7Dn-0002CL-3a for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jan 2015 03:46:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH7A0-0004VY-Eu for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 03:42:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH79v-0002it-EW for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 03:42:40 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH79v-0002h2-8Y for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 03:42:35 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YH79t-0007tv-F5 for help-gnu-emacs@gnu.org; Fri, 30 Jan 2015 09:42:33 +0100 Original-Received: from ip-90-186-186-100.web.vodafone.de ([90.186.186.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Jan 2015 09:42:33 +0100 Original-Received: from michael_heerdegen by ip-90-186-186-100.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Jan 2015 09:42:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-90-186-186-100.web.vodafone.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:0GUoZ7LxCdlHJ3YFPyxehqJSLyI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:102381 Archived-At: Christian Seberino writes: > 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? Actually it is not hard, at least for this specific case and in Emacs >= 24 (didn't check older Emacsen): --8<---------------cut here---------------start------------->8--- (defun my-find-file-around-ad (origfun &rest args) (interactive (find-file-read-args "Open file: " (confirm-nonexistent-file-or-buffer))) (apply origfun args)) (advice-add 'find-file :around #'my-find-file-around-ad) --8<---------------cut here---------------end--------------->8--- But I think in the long term it's better to get used to the Emacs nomenclature. Michael.