Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 163263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:32:12+00:00 2026-05-11T11:32:12+00:00

I’m forced to use ClearCase (Windows version) at work, and I want to use

  • 0

I’m forced to use ClearCase (Windows version) at work, and I want to use emacs ediff as a diff and merge tool. The problem with the ClearCase map file is that it requires .exe files – I’ve tried to specify a batch file calling ediff and it didn’t work.

I don’t want to write a C/C++ program (it’s been more than 10 years since I’ve coded anything in C for Win32) that will call ediff with the proper arguments. Is there a simpler way?

See also:

Any way to use a custom diff tool with cleartool/clearcase?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:32:13+00:00Added an answer on May 11, 2026 at 11:32 am

    As mentioned in this SO question, the map file allows you to call an external diff tool.

    For Windows, you should try first to call emacs in ediff mode:

       emacs --eval '(ediff-files \'file_1\' \'file_2\')'  

    or

       xemacs -eval '(ediff-files \'file_1\' \'file_2\')'  

    (should invoke a new instance of XEmacs ediff)

    If this works, you may write a .bat file called by the map file, and building the appropriate ‘emacs ediff‘ command line.

    Something along the lines of:

    @echo off set local if !%XEMACS_PATH%!==!! SET XEMACS_PATH=C:\<XEmacs-Path>\i586-pc-win32 set FILE1=%~1 set FILE2=%~2 REM * Bad habit - working on administrative shares.. Why is $->$$ not needed? REM SET FILE1=%FILE1:$=$$% REM SET FILE2=%FILE2:$=$$% REM * Escaping backslash.. SET FILE1=%FILE1:\=\\% SET FILE2=%FILE2:\=\\%  '%XEMACS_PATH:'=%\gnudoit.exe' '(ediff \'%FILE1%\' \'%FILE2%\')'  

    If map file is not at ease with calling a .bat file, simply generate an .exe from your .bat.


    I have done some tests and it turns out:

    • ‘compare with previous version’ actually calls:

      cleartool diff -graphical -pred myFile

    • calling the .bat through a cmd.exe call does not work

      c:\Program Files\Rational\ClearCase\lib\mgrs\map

      text_file_delta xcompare 'c:\WINDOWS\system32\cmd.exe /c c:\cc\test.bat'

      cleartool: Error: Operation 'xcompare' unavailable for manager 'text_file_delta' (Operation pathname was: 'C:\Program Files\Rational\ClearCase\lib\mgrs\'c:\WINDOWS\system32\cmd.exe /c c:\cc\test.bat'')

    • transforming the .bat in .exe does work

    • arg2 (%2) and arg4 (%4) are what you are looking for, with arg5 (%5) the name of the temporary file created for the content of the previous version (for snapshot view which can not access extended path name)

    So the following bat (transformed in exe) works from the command-line only (not from the ClearCase Explorer: DrWatson):

    'C:\Program Files\WinMerge\WinMergeU.exe' %4 %5 

    You should be able to adapt it to Xemacs, but Alex’s suggestion (working with Clearcase from Emacs) might be another more practical solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.