From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.help Subject: Re: file opened in front buffer as argument ? Date: Sat, 21 Jul 2018 08:32:13 +0900 Message-ID: <2201B124-9244-4817-8743-E581FC58CB52@gmail.com> References: <5492F537-3D72-4F44-9D8F-19481AF77832@gmail.com> <83wotpzuqi.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532129461 32080 195.159.176.226 (20 Jul 2018 23:31:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2018 23:31:01 +0000 (UTC) Cc: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 21 01:30:57 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgerR-0008DC-Dh for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jul 2018 01:30:57 +0200 Original-Received: from localhost ([::1]:50142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgetW-00088Y-IF for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 19:33:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgesq-00088H-5g for help-gnu-emacs@gnu.org; Fri, 20 Jul 2018 19:32:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgesn-0001EH-1F for help-gnu-emacs@gnu.org; Fri, 20 Jul 2018 19:32:24 -0400 Original-Received: from mail-pl0-x229.google.com ([2607:f8b0:400e:c01::229]:41311) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgesm-0001Bo-Q9 for help-gnu-emacs@gnu.org; Fri, 20 Jul 2018 19:32:20 -0400 Original-Received: by mail-pl0-x229.google.com with SMTP id w8-v6so5784420ply.8 for ; Fri, 20 Jul 2018 16:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:in-reply-to:cc:references:message-id; bh=jOJx4+l8ywJo5QXF03U9MuRIobvM5dKT7pLzUxXTSOI=; b=CYCGGiXlGGbTRkBOxFcKRJHaiaxrsQ39SMiA5+oPmf8bugq2oaSLntC25kzbKxQ0d3 +DJSPrOsVpALo44tQhhzlhwLMPV0lV7pLFPeQ9sZyg1mUEOAFSdocI1DrMPYp2ticAbX /2/iQv+LGYeRgxzXbI23pxbuOIAA2eImhrcXOMXqBufS8KJxOjUMSaVhTW3eUP8gRsgU JUSdnfu5/WmpKV3DPuTnK/gse0uFg44SCvbB31JkOiuJwKBqhHJJ3qv3HajGqHJU0F8n dvR6CYCI09BAvbfX833HNJZEKiVuXGHiUhr8zbUiqARA3cumRmVUd6lpVTdk7m8A4zFI 62Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:in-reply-to:cc :references:message-id; bh=jOJx4+l8ywJo5QXF03U9MuRIobvM5dKT7pLzUxXTSOI=; b=l07hARewAP0w6yPuPjPNefEBcYZWCHYkhXnpY3p5J5A8IXPWCaqFK9KIN1bVbUZ6yT wyLWtrRpnuyPI0H+LT5/4Dc/ykRSfTd+xuYhZXWWNX2x+QrJL26Te4P1aS/wnOEiyS1o eJrYx34LFgqrEnMpTlBIHDFL58v6R6FvLrOEjKQ1BUDON5sP0QZ5HeQ0bt7MGVW4rUo0 5riqo+54buQyLy6Dgh8wBIrtU2Aqq6vRH6Ro9lD8TbCmN+aNCNKCGbGdVzp+6Xhm8jRG sd5Q4Sq56UWZU2zbNrPS+srI2BQ/2MoYB9xpHCxsnAUrxst96f7OtC3N1ElMGtg73xAU OEgg== X-Gm-Message-State: AOUpUlFeJkKtopVU3wWvytQbK/lur/5ft24ZSXaWy7Z+U2xXklajxwYT VSt4Wf4cfrLHfzxsJKM6V9rtkLS7T5Q= X-Google-Smtp-Source: AAOMgpcLveyvt3wOxbyaZqYJvYCBtzNHtwLGh+SDwy5OCYxZVAEeiM0MSFjJ2s8Ir25oiBr75GY5iw== X-Received: by 2002:a17:902:b708:: with SMTP id d8-v6mr3880321pls.184.1532129539530; Fri, 20 Jul 2018 16:32:19 -0700 (PDT) Original-Received: from [192.168.1.7] (pl36180.ag0304.nttpc.ne.jp. [133.232.212.84]) by smtp.gmail.com with ESMTPSA id n12-v6sm10317510pfh.146.2018.07.20.16.32.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 16:32:18 -0700 (PDT) In-Reply-To: <83wotpzuqi.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.9.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:117525 Archived-At: > On Jul 21, 2018, at 2:23, Eli Zaretskii wrote: >=20 >> From: Jean-Christophe Helary >> Date: Sat, 21 Jul 2018 01:00:00 +0900 >>=20 >> I want to launch a shell command always on the file that's opened in = the front buffer. >>=20 >> How can I systematically call that file without explicitly referring = to its path ? >=20 > Use buffer-file-name? :) Thank you ! Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune