Greetings folks,
I'm using Slickedit 12.0.0 on Linux and I've run into an irritating problem with Slickedit's diff.
We use ClearCase for version control which allows you to directly access specific versions of files by appending '@@' and the version information to the filename. This slightly confuses Slickedit's automatic file type detection as, for instance the '.c' is now in the middle of the filename, not at the end and it doesn't recognize the extension and doesn't set the highlighting mode for the file.
I've fixed this by adding a macro (_buffer_add_FixFileType) which auto-runs when a file is loaded (by virtue, I understand, of the _buffer_add prefix to the name), checks the name, strips off any '@@' suffix, and calls select_edit_mode() with the 'real' file extension
This works fine in Slickedit, but doesn't run when you load files into the diff software, so I don't get the highlighting in diffs.
I had a hunt through the Slickedit macro source and discovered that it seems to call a function userSelectEditMode, if it exists, when loading a file into diff, but I've tried writing a function with this name and it doesn't get called. It is in the same source file, and shares the same core code as my _buffer_add_FixFileType macro, which does work, so I'm a bit baffled as to why it doesn't work.
Anyone got any useful ideas?
John Skilleter