Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!amdahl!nsc!voder!apple!tomas From: tomas@Apple.COM (Tom Taylor) Newsgroups: comp.sys.mac Subject: Re: Is there a way to get line numbers in MPW? Message-ID: <7725@apple.Apple.Com> Date: 17 Mar 88 19:33:49 GMT References: <2060@phoenix.Princeton.EDU> Reply-To: tomas@apple.UUCP (Tom Taylor) Organization: Apple Computer Inc, Cupertino, CA Lines: 24 In article <2060@phoenix.Princeton.EDU> buzz@phoenix (Mahboud Zabetian) writes: >I'm sorry to be posting here, but we don't seem to have comp.sys.mac.programmer >anymore. > >How would I get line numbers for my source files in MPW? When I use the C >compiler, I get error messages and the lines that the errors occured in. >But how do I get the editor to show line numbers so that I can find my errors >more easily? > >I'm sure this is probably a stupid question. Forgive my ignorance. Simply select the error message that looks something like: File "foo.c"; Line 518 # ... and hit enter. The editor will bring foo.c to the front and select line 518 for you. File is aliased to Target, which makes the argument the front window. Line is a script (found in {Scripts}) which simply selects the line argument. You can manually go to any line in any file by bringing up the Find dialog, typing in the line number, clicking the Selection Expression radio button, and clicking the Find button. There is no way to make the editor display line numbers to the left of the source. Tom Taylor Development Systems Group