comparison src/redisplay.c @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents 1856695b1fa9
children 59463afc5666
comparison
equal deleted inserted replaced
148:f659db2a1f73 149:538048ae2ab8
57 #include "toolbar.h" 57 #include "toolbar.h"
58 #include "window.h" 58 #include "window.h"
59 59
60 #ifdef MULE 60 #ifdef MULE
61 #include "mule-coding.h" 61 #include "mule-coding.h"
62 #endif
63
64 #ifdef HAVE_TTY
65 #include "console-tty.h"
62 #endif 66 #endif
63 67
64 /* Note: We have to be careful throughout this code to properly handle 68 /* Note: We have to be careful throughout this code to properly handle
65 and differentiate between Bufbytes and Emchars. 69 and differentiate between Bufbytes and Emchars.
66 70
5765 /* print value of mode-name (obsolete) */ 5769 /* print value of mode-name (obsolete) */
5766 case 'm': 5770 case 'm':
5767 obj = b->mode_name; 5771 obj = b->mode_name;
5768 break; 5772 break;
5769 5773
5774 /* print hyphen and frame number, if != 1 */
5775 case 'N':
5776 #ifdef HAVE_TTY
5777 {
5778 struct frame *f = XFRAME (w->frame);
5779 if (FRAME_TTY_P (f) && f->order_count > 1)
5780 {
5781 str = alloca (10);
5782 sprintf (str, "-%d", f->order_count);
5783 }
5784 }
5785 #endif
5786 break;
5787
5770 /* print Narrow if appropriate */ 5788 /* print Narrow if appropriate */
5771 case 'n': 5789 case 'n':
5772 if (BUF_BEGV (b) > BUF_BEG (b) 5790 if (BUF_BEGV (b) > BUF_BEG (b)
5773 || BUF_ZV (b) < BUF_Z (b)) 5791 || BUF_ZV (b) < BUF_Z (b))
5774 str = " Narrow"; 5792 str = " Narrow";