diff options
| author | Po Lu | 2023-04-22 09:21:25 +0800 |
|---|---|---|
| committer | Po Lu | 2023-04-22 09:21:25 +0800 |
| commit | 74fd40c030bace1e84a65be30f50a2d7e0f29596 (patch) | |
| tree | 19ebeb75776d29b91856e5e4dc779b33db929c85 /src | |
| parent | ed2f8c660bf501726e687552b56911283d637271 (diff) | |
| parent | 4f3dae2b0d5fc43e5e2effa6d36544b6de2a43d8 (diff) | |
| download | emacs-74fd40c030bace1e84a65be30f50a2d7e0f29596.tar.gz emacs-74fd40c030bace1e84a65be30f50a2d7e0f29596.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'src')
| -rw-r--r-- | src/fringe.c | 4 | ||||
| -rw-r--r-- | src/keymap.c | 19 | ||||
| -rw-r--r-- | src/term.c | 8 |
3 files changed, 22 insertions, 9 deletions
diff --git a/src/fringe.c b/src/fringe.c index ac7cb57695f..3452c8503f0 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 | */ |
| 223 | static unsigned short large_circle_bits[] = { | 223 | static 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 05163cce533..2fa06d71f03 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -4252,7 +4252,15 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\ | |||
| 4252 | tty->TS_enter_alt_charset_mode = tgetstr ("as", address); | 4252 | tty->TS_enter_alt_charset_mode = tgetstr ("as", address); |
| 4253 | tty->TS_exit_alt_charset_mode = tgetstr ("ae", address); | 4253 | tty->TS_exit_alt_charset_mode = tgetstr ("ae", address); |
| 4254 | tty->TS_exit_attribute_mode = tgetstr ("me", address); | 4254 | tty->TS_exit_attribute_mode = tgetstr ("me", address); |
| 4255 | #ifdef TERMINFO | ||
| 4256 | tty->TS_enter_strike_through_mode = tigetstr ("smxx"); | ||
| 4257 | if (tty->TS_enter_strike_through_mode == (char *) (intptr_t) -1) | ||
| 4258 | tty->TS_enter_strike_through_mode = NULL; | ||
| 4259 | #else | ||
| 4260 | /* FIXME: Is calling tgetstr here for non-terminfo case correct, | ||
| 4261 | even though "smxx" is more than 2 characters? */ | ||
| 4255 | tty->TS_enter_strike_through_mode = tgetstr ("smxx", address); | 4262 | tty->TS_enter_strike_through_mode = tgetstr ("smxx", address); |
| 4263 | #endif | ||
| 4256 | 4264 | ||
| 4257 | MultiUp (tty) = tgetstr ("UP", address); | 4265 | MultiUp (tty) = tgetstr ("UP", address); |
| 4258 | MultiDown (tty) = tgetstr ("DO", address); | 4266 | MultiDown (tty) = tgetstr ("DO", address); |