Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!emv From: bhagwan@voodoo.UUCP (The Bhagwan) Newsgroups: alt.sources.patches Subject: (Major Minor) modeline problem solved (Apollo) [comp.emacs,gnu.emacs.bug] Message-ID: <10453@stag.math.lsa.umich.edu> Date: 25 Dec 89 22:11:52 GMT References: <646@voodoo.UUCP> Sender: news@math.lsa.umich.edu Reply-To: bhagwan@voodoo.UUCP (The Bhagwan) Followup-To: comp.emacs Lines: 57 Archive-name: emacs-modeline/apollo Original-posting-by: bhagwan@voodoo.UUCP (The Bhagwan) Original-subject: (Major Minor) modeline problem solved (Apollo) Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti) [This is a patch to from comp.emacs,gnu.emacs.bug.] Hello, A few days ago I posted a bug notice (query) to comp.emacs concerning mode line problems in 18.55 (and epoch). I have found a fix. Summary of problem: Hardware: Apollo DN3550, 8MB OS: SR10.2 beta2, cc (no ansi) Config: m-apollo.h s-bsd4-3.h X11 support (no menus) Bug (?): Recursive edit string (%[ or %]) screws up everything following in mode line. Removing %[ and %] from mode-line-format produces a clean mode line. Solution: In xdisp.c: case '[': if (RecurseDepth - MinibufDepth > 10) return "[[[... "; else return ((char *)"[[[[[[[[[[" + 10 - (RecurseDepth - MinibufDepth)); --add cast here:^^^^^^^^-- case '%': return "%"; case ']': if (RecurseDepth - MinibufDepth > 10) return " ...]]]"; else return ((char *)"]]]]]]]]]]" + 10 - (RecurseDepth - MinibufDepth)); --add cast here:^^^^^^^^-- Don't ask me, I'm no language lawyer. For your information only. I have to get ot the books and see if Apollo has a compiler problem or if this piece of code is not portable without the casts. I really like GNU Emacs. Thanks for the efforts. Happy Holidays, -- Al McPherson Member Holstein Aerobatic Team Boeing Computer Services ...uw-beaver!ssc-vax!voodoo!bhagwan P.O. Box 24346 MS: 6M-49 Seattle, WA 98124 (206) 234-7825