comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Fix for IDL 5.0 breaking idl-shell

Fix for IDL 5.0 breaking idl-shell
type: item
description: This is a multi-part message in MIME format. --------------167E2781446B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, everyone, I have attached a new idl-shell.el (version 2.3), that fixes the problem posted to this newsgroup last week, in which idl-shell was incorrectly parsing the breakpoint message, and was opening a new buffer instead of the correct buffer with the appropriate .pro file to debug. Many thanks to Chris Chase for the fix! Chris developed and until recently has been maintaining idl-shell, but is no longer able to do so, having recently accepted a job with no access to IDL. Chris asked me to post this fix, along with the following information: From Chris: > A new variable `idl-shell-fix-inserted-breaks' and function > `idl-shell-remove-breaks' were added. These fix up the original > function `idl-shell-parse-line' which grabs the file, line number and > module information. `idl-shell-file-line-message' is the regular > expression that matches the necessary components. It has not changed. > Instead, `idl-shell-remove-breaks' massages the output before the > matching is done. > > This fix depends on the file name ending in ".pro" and that no ".pro" > followed by whitespace appears previously to the end of the file name. > > So this fix is not robust, but it should work most of the time. > The fix also assumes that IDL 5.0 is inserting two spaces along with a newline in the output message. If this changes at some time in the future, Chris has inserted an alternative solution that is clearly commented. To use it, put the following in your .emacs or idl-shell-mode-hook: > (setq idl-shell-fix-inserted-breaks t) > > This could be made the default. I think that it should work with IDL 4, > but > just in case I put the above switch in. If you decide it works well > with both IDL 4 and 5 then just make 't' the default for > `idl-shell-fix-inserted-breaks' in idl-shell.el. From what Chris tells me, this latest idl-shell.el is…
creator: Mary Jo Brodzik
date: 1997-07-03T07:00:00-00:00