Xref: utzoo comp.emacs:7465 gnu.emacs.bug:1442 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!fluke!ssc-vax!voodoo!bhagwan From: bhagwan@voodoo.UUCP (The Bhagwan) Newsgroups: comp.emacs,gnu.emacs.bug Subject: (Major Minor) modeline problem solved (Apollo) Message-ID: <646@voodoo.UUCP> Date: 22 Dec 89 19:32:37 GMT Reply-To: bhagwan@voodoo.UUCP (The Bhagwan) Followup-To: comp.emacs Organization: Voodoo Graphics Project Lines: 49 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