]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor cleanup of last change
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 Sep 2020 08:43:12 +0000 (11:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 18 Sep 2020 08:43:12 +0000 (11:43 +0300)
* src/termchar.h (struct tty_display_info):
* src/term.c (turn_on_face, tty_capable_p): Reformat new code.

src/term.c
src/termchar.h

index 22035f4fe3ac23df4a790c50970e3f040dac33ea..3f528585ba1356a8b05aad3bf3ec249b84e75df2 100644 (file)
@@ -1931,7 +1931,8 @@ turn_on_face (struct frame *f, int face_id)
   if (face->tty_underline_p && MAY_USE_WITH_COLORS_P (tty, NC_UNDERLINE))
     OUTPUT1_IF (tty, tty->TS_enter_underline_mode);
 
-  if (face->tty_strike_through_p && MAY_USE_WITH_COLORS_P (tty, NC_STRIKE_THROUGH))
+  if (face->tty_strike_through_p
+      && MAY_USE_WITH_COLORS_P (tty, NC_STRIKE_THROUGH))
     OUTPUT1_IF (tty, tty->TS_enter_strike_through_mode);
 
   if (tty->TN_max_colors > 0)
@@ -2010,12 +2011,20 @@ tty_capable_p (struct tty_display_info *tty, unsigned int caps)
   if ((caps & (cap)) && (!(TS) || !MAY_USE_WITH_COLORS_P(tty, NC_bit)))        \
     return 0;
 
-  TTY_CAPABLE_P_TRY (tty, TTY_CAP_INVERSE,       tty->TS_standout_mode,                NC_REVERSE);
-  TTY_CAPABLE_P_TRY (tty, TTY_CAP_UNDERLINE,     tty->TS_enter_underline_mode,         NC_UNDERLINE);
-  TTY_CAPABLE_P_TRY (tty, TTY_CAP_BOLD,                  tty->TS_enter_bold_mode,              NC_BOLD);
-  TTY_CAPABLE_P_TRY (tty, TTY_CAP_DIM,           tty->TS_enter_dim_mode,               NC_DIM);
-  TTY_CAPABLE_P_TRY (tty, TTY_CAP_ITALIC,        tty->TS_enter_italic_mode,            NC_ITALIC);
-  TTY_CAPABLE_P_TRY (tty, TTY_CAP_STRIKE_THROUGH, tty->TS_enter_strike_through_mode,   NC_STRIKE_THROUGH);
+  TTY_CAPABLE_P_TRY (tty,
+                    TTY_CAP_INVERSE,     tty->TS_standout_mode, NC_REVERSE);
+  TTY_CAPABLE_P_TRY (tty,
+                    TTY_CAP_UNDERLINE,   tty->TS_enter_underline_mode,
+                    NC_UNDERLINE);
+  TTY_CAPABLE_P_TRY (tty,
+                    TTY_CAP_BOLD,        tty->TS_enter_bold_mode, NC_BOLD);
+  TTY_CAPABLE_P_TRY (tty,
+                    TTY_CAP_DIM,         tty->TS_enter_dim_mode, NC_DIM);
+  TTY_CAPABLE_P_TRY (tty,
+                    TTY_CAP_ITALIC,      tty->TS_enter_italic_mode, NC_ITALIC);
+  TTY_CAPABLE_P_TRY (tty,
+                    TTY_CAP_STRIKE_THROUGH, tty->TS_enter_strike_through_mode,
+                    NC_STRIKE_THROUGH);
 
   /* We can do it!  */
   return 1;
index a8b30517677799a5ddd33e6a177953ca4368a514..c967e7d04f40d777bb8c0a125036640e710aaf4a 100644 (file)
@@ -136,7 +136,8 @@ struct tty_display_info
   const char *TS_enter_reverse_mode; /* "mr" -- enter reverse video mode.  */
   const char *TS_exit_underline_mode; /* "us" -- start underlining.  */
   const char *TS_enter_underline_mode; /* "ue" -- end underlining.  */
-  const char *TS_enter_strike_through_mode; /* "smxx" -- turn on strike-through mode.  */
+  const char *TS_enter_strike_through_mode; /* "smxx" -- turn on strike-through
+                                              mode.  */
 
   /* "as"/"ae" -- start/end alternate character set.  Not really
      supported, yet.  */