Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/redisplay.c Mon Aug 13 09:35:15 2007 +0200 +++ b/src/redisplay.c Mon Aug 13 09:36:16 2007 +0200 @@ -61,6 +61,10 @@ #include "mule-coding.h" #endif +#ifdef HAVE_TTY +#include "console-tty.h" +#endif + /* Note: We have to be careful throughout this code to properly handle and differentiate between Bufbytes and Emchars. @@ -5767,6 +5771,20 @@ obj = b->mode_name; break; + /* print hyphen and frame number, if != 1 */ + case 'N': +#ifdef HAVE_TTY + { + struct frame *f = XFRAME (w->frame); + if (FRAME_TTY_P (f) && f->order_count > 1) + { + str = alloca (10); + sprintf (str, "-%d", f->order_count); + } + } +#endif + break; + /* print Narrow if appropriate */ case 'n': if (BUF_BEGV (b) > BUF_BEG (b)