From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "KARR, DAVID" Newsgroups: gmane.emacs.help Subject: Function to parse a "diff" command line to load both files into buffers and ediff them Date: Thu, 10 May 2018 17:15:44 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1525973293 29751 195.159.176.226 (10 May 2018 17:28:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 May 2018 17:28:13 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 10 19:28:09 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 1fGpMO-0007eU-BK for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2018 19:28:08 +0200 Original-Received: from localhost ([::1]:34912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGpOV-00051Y-Gl for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2018 13:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGpAc-0006UK-1T for help-gnu-emacs@gnu.org; Thu, 10 May 2018 13:15:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGpAY-0006NH-19 for help-gnu-emacs@gnu.org; Thu, 10 May 2018 13:15:57 -0400 Original-Received: from mx0b-00191d01.pphosted.com ([67.231.157.136]:44586 helo=mx0a-00191d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGpAX-0006My-SQ for help-gnu-emacs@gnu.org; Thu, 10 May 2018 13:15:53 -0400 Original-Received: from pps.filterd (m0049459.ppops.net [127.0.0.1]) by m0049459.ppops.net-00191d01. (8.16.0.21/8.16.0.21) with SMTP id w4AH7r3T022892 for ; Thu, 10 May 2018 13:15:49 -0400 Original-Received: from flpd657.enaf.ffdc.sbc.com (sbcsmtp9.sbc.com [144.160.128.153]) by m0049459.ppops.net-00191d01. with ESMTP id 2hvs76a1sv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 10 May 2018 13:15:48 -0400 Original-Received: from enaf.ffdc.sbc.com (localhost [127.0.0.1]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id w4AHFl6G065615 for ; Thu, 10 May 2018 10:15:48 -0700 Original-Received: from zlp25947.vci.att.com (zlp25947.vci.att.com [135.213.92.137]) by flpd657.enaf.ffdc.sbc.com (8.14.5/8.14.5) with ESMTP id w4AHFjDa065581 for ; Thu, 10 May 2018 10:15:45 -0700 Original-Received: from zlp25947.vci.att.com (zlp25947.vci.att.com [127.0.0.1]) by zlp25947.vci.att.com (Service) with ESMTP id 1183A410F455 for ; Thu, 10 May 2018 17:15:45 +0000 (GMT) Original-Received: from CAFRFD1MSGHUBAD.ITServices.sbc.com (unknown [130.4.169.143]) by zlp25947.vci.att.com (Service) with ESMTPS id F26E3410F454 for ; Thu, 10 May 2018 17:15:44 +0000 (GMT) Original-Received: from CAFRFD1MSGUSRJH.ITServices.sbc.com ([169.254.7.6]) by CAFRFD1MSGHUBAD.ITServices.sbc.com ([130.4.169.143]) with mapi id 14.03.0389.001; Thu, 10 May 2018 10:15:44 -0700 Thread-Topic: Function to parse a "diff" command line to load both files into buffers and ediff them Thread-Index: AdPogbwBewm1AFRuQ+SF3ER55+SvSA== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [135.165.47.114] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-10_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805100161 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 67.231.157.136 X-Mailman-Approved-At: Thu, 10 May 2018 13:29:50 -0400 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:116705 Archived-At: Quite often I find myself in a situation where I have a "diff" command that= was run in a shell buffer, and I want to "transfer" that into ediff, by si= mply loading both of the files specified on the diff command line and then = running ediff to compare them. I could probably do this with a keyboard ma= cro, but this just seems like something that someone must have thought of d= oing before. I tried paging through the many functions that begin with "ed= iff-", but I didn't see anything that sounds like what I describe. I'm usi= ng version "2.81.5".