diff options
| author | Stefan Monnier | 2023-09-30 09:42:02 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-09-30 09:42:02 -0400 |
| commit | 63ddbcc0225bb888a82a3759abb7a5c64513e752 (patch) | |
| tree | 07e7244c0fbb5a93bc823f4a147ad554fbfff3ae /src | |
| parent | f7fd21b06865d20a16c11e20776e843db24d4b14 (diff) | |
| parent | 8db48d247b7fedab0aa1b2d8573ccc2b950ad545 (diff) | |
| download | emacs-63ddbcc0225bb888a82a3759abb7a5c64513e752.tar.gz emacs-63ddbcc0225bb888a82a3759abb7a5c64513e752.zip | |
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to 'src')
| -rw-r--r-- | src/androidmenu.c | 19 | ||||
| -rw-r--r-- | src/search.c | 10 | ||||
| -rw-r--r-- | src/sfntfont.c | 7 |
3 files changed, 24 insertions, 12 deletions
diff --git a/src/androidmenu.c b/src/androidmenu.c index 3b34f032c35..ed26bdafa85 100644 --- a/src/androidmenu.c +++ b/src/androidmenu.c | |||
| @@ -248,7 +248,6 @@ android_menu_show (struct frame *f, int x, int y, int menuflags, | |||
| 248 | jobject title_string, help_string, temp; | 248 | jobject title_string, help_string, temp; |
| 249 | size_t i; | 249 | size_t i; |
| 250 | Lisp_Object pane_name, prefix; | 250 | Lisp_Object pane_name, prefix; |
| 251 | const char *pane_string; | ||
| 252 | specpdl_ref count, count1; | 251 | specpdl_ref count, count1; |
| 253 | Lisp_Object item_name, enable, def, tem, entry, type, selected; | 252 | Lisp_Object item_name, enable, def, tem, entry, type, selected; |
| 254 | Lisp_Object help; | 253 | Lisp_Object help; |
| @@ -357,13 +356,21 @@ android_menu_show (struct frame *f, int x, int y, int menuflags, | |||
| 357 | /* Now figure out the title of this pane. */ | 356 | /* Now figure out the title of this pane. */ |
| 358 | pane_name = AREF (menu_items, i + MENU_ITEMS_PANE_NAME); | 357 | pane_name = AREF (menu_items, i + MENU_ITEMS_PANE_NAME); |
| 359 | prefix = AREF (menu_items, i + MENU_ITEMS_PANE_PREFIX); | 358 | prefix = AREF (menu_items, i + MENU_ITEMS_PANE_PREFIX); |
| 360 | pane_string = (NILP (pane_name) | 359 | |
| 361 | ? "" : SSDATA (pane_name)); | 360 | /* PANE_NAME may be nil, in which case it must be set to an |
| 362 | if ((menuflags & MENU_KEYMAPS) && !NILP (prefix)) | 361 | empty string. */ |
| 363 | pane_string++; | 362 | |
| 363 | if (NILP (pane_name)) | ||
| 364 | pane_name = empty_unibyte_string; | ||
| 365 | |||
| 366 | /* Remove the leading prefix character if need be. */ | ||
| 367 | |||
| 368 | if ((menuflags & MENU_KEYMAPS) && !NILP (prefix) | ||
| 369 | && SCHARS (prefix)) | ||
| 370 | pane_name = Fsubstring (pane_name, make_fixnum (1), Qnil); | ||
| 364 | 371 | ||
| 365 | /* Add the pane. */ | 372 | /* Add the pane. */ |
| 366 | temp = (*env)->NewStringUTF (env, pane_string); | 373 | temp = android_build_string (pane_name); |
| 367 | android_exception_check (); | 374 | android_exception_check (); |
| 368 | 375 | ||
| 369 | (*env)->CallNonvirtualVoidMethod (env, current_context_menu, | 376 | (*env)->CallNonvirtualVoidMethod (env, current_context_menu, |
diff --git a/src/search.c b/src/search.c index 014fd97d423..e9b29bb7179 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -3391,13 +3391,13 @@ If RAW is non-nil, just return the actual bytecode. */) | |||
| 3391 | !NILP (BVAR (current_buffer, | 3391 | !NILP (BVAR (current_buffer, |
| 3392 | enable_multibyte_characters))); | 3392 | enable_multibyte_characters))); |
| 3393 | if (!NILP (raw)) | 3393 | if (!NILP (raw)) |
| 3394 | return make_unibyte_string (cache_entry->buf.buffer, | 3394 | return make_unibyte_string ((char *) cache_entry->buf.buffer, |
| 3395 | cache_entry->buf.used); | 3395 | cache_entry->buf.used); |
| 3396 | else | 3396 | else |
| 3397 | { /* FIXME: Why ENABLE_CHECKING? */ | 3397 | { /* FIXME: Why ENABLE_CHECKING? */ |
| 3398 | #if !ENABLE_CHECKING | 3398 | #if !defined ENABLE_CHECKING |
| 3399 | error ("Not available: rebuild with --enable-checking"); | 3399 | error ("Not available: rebuild with --enable-checking"); |
| 3400 | #elsif HAVE_OPEN_MEMSTREAM | 3400 | #elif HAVE_OPEN_MEMSTREAM |
| 3401 | char *buffer = NULL; | 3401 | char *buffer = NULL; |
| 3402 | size_t size = 0; | 3402 | size_t size = 0; |
| 3403 | FILE* f = open_memstream (&buffer, &size); | 3403 | FILE* f = open_memstream (&buffer, &size); |
| @@ -3410,10 +3410,10 @@ If RAW is non-nil, just return the actual bytecode. */) | |||
| 3410 | Lisp_Object description = make_unibyte_string (buffer, size); | 3410 | Lisp_Object description = make_unibyte_string (buffer, size); |
| 3411 | free (buffer); | 3411 | free (buffer); |
| 3412 | return description; | 3412 | return description; |
| 3413 | #else | 3413 | #else /* ENABLE_CHECKING && !HAVE_OPEN_MEMSTREAM */ |
| 3414 | print_compiled_pattern (stderr, &cache_entry->buf); | 3414 | print_compiled_pattern (stderr, &cache_entry->buf); |
| 3415 | return build_string ("Description was sent to standard error"); | 3415 | return build_string ("Description was sent to standard error"); |
| 3416 | #endif | 3416 | #endif /* !ENABLE_CHECKING */ |
| 3417 | } | 3417 | } |
| 3418 | } | 3418 | } |
| 3419 | 3419 | ||
diff --git a/src/sfntfont.c b/src/sfntfont.c index d556092db12..3506742a92b 100644 --- a/src/sfntfont.c +++ b/src/sfntfont.c | |||
| @@ -545,6 +545,11 @@ sfnt_parse_style (Lisp_Object style_name, struct sfnt_font_desc *desc) | |||
| 545 | continue; | 545 | continue; |
| 546 | } | 546 | } |
| 547 | 547 | ||
| 548 | /* The adstyle must be a symbol, so intern it if it is set. */ | ||
| 549 | |||
| 550 | if (!NILP (desc->adstyle)) | ||
| 551 | desc->adstyle = Fintern (desc->adstyle, Qnil); | ||
| 552 | |||
| 548 | SAFE_FREE (); | 553 | SAFE_FREE (); |
| 549 | } | 554 | } |
| 550 | 555 | ||
| @@ -1655,7 +1660,7 @@ sfntfont_list_1 (struct sfnt_font_desc *desc, Lisp_Object spec, | |||
| 1655 | if (NILP (desc->instances)) | 1660 | if (NILP (desc->instances)) |
| 1656 | { | 1661 | { |
| 1657 | tem = AREF (spec, FONT_ADSTYLE_INDEX); | 1662 | tem = AREF (spec, FONT_ADSTYLE_INDEX); |
| 1658 | if (!NILP (tem) && NILP (Fequal (tem, desc->adstyle))) | 1663 | if (!NILP (tem) && !EQ (tem, desc->adstyle)) |
| 1659 | return 0; | 1664 | return 0; |
| 1660 | 1665 | ||
| 1661 | if (FONT_WIDTH_NUMERIC (spec) != -1 | 1666 | if (FONT_WIDTH_NUMERIC (spec) != -1 |