From: Josef.Bauer.nospam@web.de
Subject: Re: How to set ignored pattern in ediff in emacs
Date: 05 Dec 2004 22:25:50 +0100 [thread overview]
Message-ID: <wtpllcc4eu9.fsf@uhu.mchp.siemens.de> (raw)
In-Reply-To: 31c9m1F3776goU1@individual.net
gan> I have another small question: Is there a way to specify file1
gan> and file2 in command line when launch emacs, else I have to
gan> input the long filenames in emacs.
Kevin> Do you mean
Kevin> emacs long_file_name_1 long_file_name_2
Kevin> or
Kevin> emacs --eval '(ediff-files "long_file_name_1" "long_file_name_2")'
But who would want to start a _new_ emacs?
Here is a perl script that I use to ediff files in my (one-and-only
running) emacs:
---------------------------------------------------------------- edf.pl
#! /sw/local/bin/perl -w
sub filename2AbsFilename
{
my $fn = shift(@_);
if ( ! ($fn =~ '^/' ) )
{
return("$ENV{PWD}/$fn");
}
else
{
return($fn);
}
}
$hostopt = "-h uhu";
if ( $#ARGV != 1 )
{
print "$0: call ediff in emacs" , "\n";
print "$0 --- usage: $0 file1 file2" , "\n";
exit;
}
$file1 = shift;
$file2 = shift;
$file1 = filename2AbsFilename($file1);
$file2 = filename2AbsFilename($file2);
$COMMAND = "(raise-frame) (ediff-files \"$file1\" \"$file2\")";
system "gnudoit $hostopt \'$COMMAND\'";
----------------------------------------------------------------------
Maybe the hostname could be handeled in some more advanced way thatn
hard coding it in the script.
Best regards
Josef
next prev parent reply other threads:[~2004-12-05 21:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3395.1102102960.27204.help-gnu-emacs@gnu.org>
2004-12-03 23:03 ` How to set ignored pattern in ediff in emacs Kevin Rodgers
2004-12-05 21:25 ` Josef.Bauer.nospam [this message]
2004-12-03 19:32 gan_xiao_jun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wtpllcc4eu9.fsf@uhu.mchp.siemens.de \
--to=josef.bauer.nospam@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.