From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alexander Klimov Newsgroups: gmane.emacs.devel Subject: Re: insert-file-name-into-minibuffer Date: Sat, 9 Feb 2019 21:30:20 +0000 Message-ID: References: <837ee9nhi6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="200037"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 09 22:31:37 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsaDm-000ppf-U2 for ged-emacs-devel@m.gmane.org; Sat, 09 Feb 2019 22:31:35 +0100 Original-Received: from localhost ([127.0.0.1]:50161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsaDl-0007LC-QI for ged-emacs-devel@m.gmane.org; Sat, 09 Feb 2019 16:31:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gsaD1-0007L6-AC for emacs-devel@gnu.org; Sat, 09 Feb 2019 16:30:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gsaCq-0007q6-5E for emacs-devel@gnu.org; Sat, 09 Feb 2019 16:30:39 -0500 Original-Received: from smtp32.i.mail.ru ([94.100.177.92]:44142) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gsaCn-0007ld-Pg for emacs-devel@gnu.org; Sat, 09 Feb 2019 16:30:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inbox.ru; s=mail; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:To:From:Date; bh=6ArP6Yc6Yhgon8L2/fpuJGROep586osd4WhgTYYecvo=; b=SOP2CzZmDcFXI0aZdoSJO+JrUVdj93kgu+9l7vmIhC7VspmGFuu6tjKdq2uTs2A85uDgFL0pLZYl4KPv4KYhzj5NQGcZHrAiGnPPwammKZ/KIIWs0EAeaixbtyKqriOPUr80YZoTqdB8jcVNmSpQQfkGoMGehqt6Zfhc7aemu18=; Original-Received: by smtp32.i.mail.ru with esmtpa (envelope-from ) id 1gsaCj-0001pr-5o for emacs-devel@gnu.org; Sun, 10 Feb 2019 00:30:29 +0300 In-Reply-To: <837ee9nhi6.fsf@gnu.org> Authentication-Results: smtp32.i.mail.ru; auth=pass smtp.auth=alserkli@inbox.ru smtp.mailfrom=alserkli@inbox.ru X-77F55803: 3FFC80838138E3AB5A78504BD2AC2941F7BEC2B511800C062A6412215FD617B50E645721990A3E091AEF00B626AA357F X-7FA49CB5: 0D63561A33F958A52838C3E7A2AE6E9E58459433AFEEFADDDBC10B01E092AC218941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249A83EE7D357862D6D3AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE768E75A379BAF682BB3661434B16C20ACE7DDDDC251EA7DABAAAE862A0553A39223F8577A6DFFEA7CB9984AADEEEFFC1FA1B0918FF893BDE5EFF80C71ABB335746BA297DBC24807EA27F269C8F02392CDCDCF839C8780CBD93C9F3DD0FB1AF5EB4E70A05D1297E1BBCB5012B2E24CD356 X-Mailru-Sender: 7A9A33E86992913287677A6A84364F8B02A0206828D695A92EB26D2138279730E13D01DA4558E801A7A2F54F497AA9E7B52423DB74AF18EAF4688292F5328C65EAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: OK X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.177.92 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233173 Archived-At: On Sat, 9 Feb 2019, Eli Zaretskii wrote: > > It is quite common to insert the name of the current file into the > > argument of shell-command or compile command (both use > > read-shell-command). I wonder what it the preferred way to do it? > > Doesn't M-n in the minibuffer already do that? Thanks, never knew it works in read-shell-command this way! OTOH, next-history-element replaces the whole line even if one already typed `gcc ...' and does not allow to insert the file name with full path. Speaking of buffer file names, probably there should also be a more direct way to copy the full path of the current file than C-x C-f M-n C-S-backspace. -- Regards, ASK