(Major Minor) modeline problem solved (Apollo) [comp.emacs,gnu.emacs.bug]

The Bhagwan bhagwan at voodoo.UUCP
Tue Dec 26 09:11:52 AEST 1989


Archive-name: emacs-modeline/apollo
Original-posting-by: bhagwan at voodoo.UUCP (The Bhagwan)
Original-subject: (Major Minor) modeline problem solved (Apollo)
Reposted-by: emv at 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



More information about the Alt.sources.patches mailing list