aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fringe.c4
-rw-r--r--src/keymap.c19
-rw-r--r--src/term.c8
3 files changed, 22 insertions, 9 deletions
diff --git a/src/fringe.c b/src/fringe.c
index 5fcb1b27272..ed257c073b9 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -211,14 +211,14 @@ static unsigned short right_curly_arrow_bits[] = {
211 211
212/* Large circle bitmap. */ 212/* Large circle bitmap. */
213/* 213/*
214 ........
215 ..xxxx.. 214 ..xxxx..
216 .xxxxxx. 215 .xxxxxx.
217 xxxxxxxx 216 xxxxxxxx
218 xxxxxxxx 217 xxxxxxxx
218 xxxxxxxx
219 xxxxxxxx
219 .xxxxxx. 220 .xxxxxx.
220 ..xxxx.. 221 ..xxxx..
221 ........
222*/ 222*/
223static unsigned short large_circle_bits[] = { 223static unsigned short large_circle_bits[] = {
224 0x3c, 0x7e, 0xff, 0xff, 0xff, 0xff, 0x7e, 0x3c}; 224 0x3c, 0x7e, 0xff, 0xff, 0xff, 0xff, 0x7e, 0x3c};
diff --git a/src/keymap.c b/src/keymap.c
index efac410d317..7f5777c9251 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -3308,13 +3308,18 @@ describe_vector (Lisp_Object vector, Lisp_Object prefix, Lisp_Object args,
3308 if (this_shadowed) 3308 if (this_shadowed)
3309 { 3309 {
3310 SET_PT (PT - 1); 3310 SET_PT (PT - 1);
3311 static char const fmt[] = " (currently shadowed by `%s')"; 3311 if (SYMBOLP (shadowed_by))
3312 USE_SAFE_ALLOCA; 3312 {
3313 char *buffer = SAFE_ALLOCA (sizeof fmt + 3313 static char const fmt[] = " (currently shadowed by `%s')";
3314 SBYTES (SYMBOL_NAME (shadowed_by))); 3314 USE_SAFE_ALLOCA;
3315 esprintf (buffer, fmt, SDATA (SYMBOL_NAME (shadowed_by))); 3315 char *buffer =
3316 insert_string (buffer); 3316 SAFE_ALLOCA (sizeof fmt + SBYTES (SYMBOL_NAME (shadowed_by)));
3317 SAFE_FREE(); 3317 esprintf (buffer, fmt, SDATA (SYMBOL_NAME (shadowed_by)));
3318 insert_string (buffer);
3319 SAFE_FREE();
3320 }
3321 else /* Could be a keymap, a lambda, or a keyboard macro. */
3322 insert_string (" (currently shadowed)");
3318 SET_PT (PT + 1); 3323 SET_PT (PT + 1);
3319 } 3324 }
3320 } 3325 }
diff --git a/src/term.c b/src/term.c
index d881dee39fe..53ba2a231e4 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4163,7 +4163,15 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\
4163 tty->TS_enter_alt_charset_mode = tgetstr ("as", address); 4163 tty->TS_enter_alt_charset_mode = tgetstr ("as", address);
4164 tty->TS_exit_alt_charset_mode = tgetstr ("ae", address); 4164 tty->TS_exit_alt_charset_mode = tgetstr ("ae", address);
4165 tty->TS_exit_attribute_mode = tgetstr ("me", address); 4165 tty->TS_exit_attribute_mode = tgetstr ("me", address);
4166#ifdef TERMINFO
4167 tty->TS_enter_strike_through_mode = tigetstr ("smxx");
4168 if (tty->TS_enter_strike_through_mode == (char *) (intptr_t) -1)
4169 tty->TS_enter_strike_through_mode = NULL;
4170#else
4171 /* FIXME: Is calling tgetstr here for non-terminfo case correct,
4172 even though "smxx" is more than 2 characters? */
4166 tty->TS_enter_strike_through_mode = tgetstr ("smxx", address); 4173 tty->TS_enter_strike_through_mode = tgetstr ("smxx", address);
4174#endif
4167 4175
4168 MultiUp (tty) = tgetstr ("UP", address); 4176 MultiUp (tty) = tgetstr ("UP", address);
4169 MultiDown (tty) = tgetstr ("DO", address); 4177 MultiDown (tty) = tgetstr ("DO", address);