Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cs.utexas.edu!sm.unisys.com!randvax!florman From: florman@randvax.UUCP (Bruce Florman) Newsgroups: comp.sys.mac.programmer Subject: Re: LSP 2.0 Keywords: features editor Message-ID: <1664@randvax.UUCP> Date: 26 Aug 88 22:42:10 GMT References: <450@umn-d-ub.D.UMN.EDU> <5116@husc6.harvard.edu> <11864@steinmetz.ge.com> <5131@husc6.harvard.edu> <464@umn-d-ub.D.UMN.EDU> Reply-To: florman@rand-unix.UUCP (Bruce Florman) Organization: Rand Corp., Santa Monica, Ca. Lines: 32 In article <464@umn-d-ub.D.UMN.EDU> gandreas@ub.d.umn.edu.UUCP (Glenn Andreas) writes: >At first I was disappointed. I couldn't handle the reserved words being in >lowercase and bold. Being bold they stuck out too much, and being in >lowercase, I couldn't scan for them (I'm use to uppercase letters for >reserved words - I guess that comes from reading the source for MacApp :-). >So I fixed that. I used fedit and found the reserve word, changed them to >uppercase. I used Macsbug and found where the trap for TextStyle was, and >changed it so it always is in plain (this also inhibits the outlining of >errors). Now I could stand using it. Now why didn't I think of that!?! I too have been bothered by the lowercase bold reserved words, but I never thought about doing anything about it. I applied your patches and I really like the results. However, I wanted to keep the outlining of lexical errors, so I looked a little closer at the code around the TextFace trap, and found the following: 123B 1007 MOVE.B 7(PC,D1.W),D1 ; fetch appropriate style 3F01 MOVE.W D1,-(A7) ; push it onto the stack A888 _TextFace ; call ROM routine 4E75 RTS ; exit 00 DC.B 0 ; plain 08 DC.B 8 ; outline 01 DC.B 1 ; bold Using Fedit I simply changed that last 01 byte to 00. Now the errors are still printed in the outline style, but the keywords are plain. Thanks for the good idea. -- florman@rand-unix.ARPA {decvax,sdcrdcf,trwrb,trwspf,vortex}!rand-unix!gnu!florman "There is no limit to the amount of good that people can accomplish, if they don't care who gets the credit." - Anonymous