diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 7 | ||||
| -rw-r--r-- | src/android.c | 4 | ||||
| -rw-r--r-- | src/androidfns.c | 4 | ||||
| -rw-r--r-- | src/androidfont.c | 6 | ||||
| -rw-r--r-- | src/androidselect.c | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 6 | ||||
| -rw-r--r-- | src/sfntfont.c | 6 | ||||
| -rw-r--r-- | src/textconv.c | 3 |
8 files changed, 19 insertions, 21 deletions
diff --git a/src/alloc.c b/src/alloc.c index 82b1c6b0355..c77bdc6372d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -6195,14 +6195,15 @@ static Lisp_Object | |||
| 6195 | android_make_lisp_symbol (struct Lisp_Symbol *sym) | 6195 | android_make_lisp_symbol (struct Lisp_Symbol *sym) |
| 6196 | { | 6196 | { |
| 6197 | intptr_t symoffset; | 6197 | intptr_t symoffset; |
| 6198 | Lisp_Object a; | ||
| 6199 | 6198 | ||
| 6200 | symoffset = (intptr_t) sym; | 6199 | symoffset = (intptr_t) sym; |
| 6201 | INT_SUBTRACT_WRAPV (symoffset, (intptr_t) &lispsym, | 6200 | INT_SUBTRACT_WRAPV (symoffset, (intptr_t) &lispsym, |
| 6202 | &symoffset); | 6201 | &symoffset); |
| 6203 | 6202 | ||
| 6204 | a = TAG_PTR (Lisp_Symbol, symoffset); | 6203 | { |
| 6205 | return a; | 6204 | Lisp_Object a = TAG_PTR (Lisp_Symbol, symoffset); |
| 6205 | return a; | ||
| 6206 | } | ||
| 6206 | } | 6207 | } |
| 6207 | 6208 | ||
| 6208 | #endif | 6209 | #endif |
diff --git a/src/android.c b/src/android.c index 43122f73be1..67590ae373d 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -6495,8 +6495,8 @@ android_exception_check_1 (jobject object) | |||
| 6495 | } | 6495 | } |
| 6496 | } | 6496 | } |
| 6497 | 6497 | ||
| 6498 | /* Like android_exception_check_one, except it takes more than one | 6498 | /* Like android_exception_check_1, except it takes more than one local |
| 6499 | local reference argument. */ | 6499 | reference argument. */ |
| 6500 | 6500 | ||
| 6501 | void | 6501 | void |
| 6502 | android_exception_check_2 (jobject object, jobject object1) | 6502 | android_exception_check_2 (jobject object, jobject object1) |
diff --git a/src/androidfns.c b/src/androidfns.c index 60b0549e7d1..cc48de1a359 100644 --- a/src/androidfns.c +++ b/src/androidfns.c | |||
| @@ -2885,7 +2885,7 @@ android_set_no_focus_on_map (struct frame *f, Lisp_Object new_value, | |||
| 2885 | if (!EQ (new_value, old_value)) | 2885 | if (!EQ (new_value, old_value)) |
| 2886 | { | 2886 | { |
| 2887 | android_set_dont_focus_on_map (FRAME_ANDROID_WINDOW (f), | 2887 | android_set_dont_focus_on_map (FRAME_ANDROID_WINDOW (f), |
| 2888 | new_value); | 2888 | !NILP (new_value)); |
| 2889 | FRAME_NO_FOCUS_ON_MAP (f) = !NILP (new_value); | 2889 | FRAME_NO_FOCUS_ON_MAP (f) = !NILP (new_value); |
| 2890 | } | 2890 | } |
| 2891 | } | 2891 | } |
| @@ -2897,7 +2897,7 @@ android_set_no_accept_focus (struct frame *f, Lisp_Object new_value, | |||
| 2897 | if (!EQ (new_value, old_value)) | 2897 | if (!EQ (new_value, old_value)) |
| 2898 | { | 2898 | { |
| 2899 | android_set_dont_accept_focus (FRAME_ANDROID_WINDOW (f), | 2899 | android_set_dont_accept_focus (FRAME_ANDROID_WINDOW (f), |
| 2900 | new_value); | 2900 | !NILP (new_value)); |
| 2901 | FRAME_NO_ACCEPT_FOCUS (f) = !NILP (new_value); | 2901 | FRAME_NO_ACCEPT_FOCUS (f) = !NILP (new_value); |
| 2902 | } | 2902 | } |
| 2903 | } | 2903 | } |
diff --git a/src/androidfont.c b/src/androidfont.c index 1a09027bca7..db2f94008f2 100644 --- a/src/androidfont.c +++ b/src/androidfont.c | |||
| @@ -636,7 +636,7 @@ androidfont_match (struct frame *f, Lisp_Object font_spec) | |||
| 636 | androidfont_from_java (result, entity); | 636 | androidfont_from_java (result, entity); |
| 637 | info->object = (*android_java_env)->NewGlobalRef (android_java_env, | 637 | info->object = (*android_java_env)->NewGlobalRef (android_java_env, |
| 638 | (jobject) result); | 638 | (jobject) result); |
| 639 | android_exception_check_2 (entity, result); | 639 | android_exception_check_1 (result); |
| 640 | ANDROID_DELETE_LOCAL_REF (result); | 640 | ANDROID_DELETE_LOCAL_REF (result); |
| 641 | 641 | ||
| 642 | return entity; | 642 | return entity; |
| @@ -713,10 +713,6 @@ androidfont_open_font (struct frame *f, Lisp_Object font_entity, | |||
| 713 | pixel_size = 12; | 713 | pixel_size = 12; |
| 714 | } | 714 | } |
| 715 | 715 | ||
| 716 | __android_log_print (ANDROID_LOG_DEBUG, __func__, | ||
| 717 | "opening font entity %"pI"x:%d", | ||
| 718 | (EMACS_INT) font_entity, pixel_size); | ||
| 719 | |||
| 720 | entity = (struct androidfont_entity *) XFONT_ENTITY (font_entity); | 716 | entity = (struct androidfont_entity *) XFONT_ENTITY (font_entity); |
| 721 | 717 | ||
| 722 | block_input (); | 718 | block_input (); |
diff --git a/src/androidselect.c b/src/androidselect.c index 54c712ca93b..d1f2ebb52f9 100644 --- a/src/androidselect.c +++ b/src/androidselect.c | |||
| @@ -208,7 +208,7 @@ Alternatively, return nil if the clipboard is empty. */) | |||
| 208 | ANDROID_DELETE_LOCAL_REF (bytes); | 208 | ANDROID_DELETE_LOCAL_REF (bytes); |
| 209 | 209 | ||
| 210 | /* Now decode the resulting string. */ | 210 | /* Now decode the resulting string. */ |
| 211 | return code_convert_string_norecord (string, Qutf_8, Qnil); | 211 | return code_convert_string_norecord (string, Qutf_8, false); |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | DEFUN ("android-clipboard-exists-p", Fandroid_clipboard_exists_p, | 214 | DEFUN ("android-clipboard-exists-p", Fandroid_clipboard_exists_p, |
| @@ -304,7 +304,7 @@ data type available from the clipboard. */) | |||
| 304 | 304 | ||
| 305 | /* Decode the string. */ | 305 | /* Decode the string. */ |
| 306 | tem = make_unibyte_string ((char *) data, length1); | 306 | tem = make_unibyte_string ((char *) data, length1); |
| 307 | tem = code_convert_string_norecord (tem, Qutf_8, Qnil); | 307 | tem = code_convert_string_norecord (tem, Qutf_8, false); |
| 308 | targets = Fcons (tem, targets); | 308 | targets = Fcons (tem, targets); |
| 309 | 309 | ||
| 310 | /* Delete the retrieved data. */ | 310 | /* Delete the retrieved data. */ |
diff --git a/src/keyboard.c b/src/keyboard.c index 364f26f421d..ec9a6dc712a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6569,7 +6569,7 @@ make_lispy_event (struct input_event *event) | |||
| 6569 | menu bar event. */ | 6569 | menu bar event. */ |
| 6570 | menu_bar_touch_id = Qnil; | 6570 | menu_bar_touch_id = Qnil; |
| 6571 | 6571 | ||
| 6572 | if (f->menu_bar_window) | 6572 | if (!NILP (f->menu_bar_window)) |
| 6573 | { | 6573 | { |
| 6574 | x_y_to_hpos_vpos (XWINDOW (f->menu_bar_window), XFIXNUM (x), | 6574 | x_y_to_hpos_vpos (XWINDOW (f->menu_bar_window), XFIXNUM (x), |
| 6575 | XFIXNUM (y), &column, &row, NULL, NULL, | 6575 | XFIXNUM (y), &column, &row, NULL, NULL, |
| @@ -13465,12 +13465,12 @@ This usually happens as a result of `select-active-regions'. The hook | |||
| 13465 | is called with one argument, the string that was selected. */); | 13465 | is called with one argument, the string that was selected. */); |
| 13466 | Vpost_select_region_hook = Qnil; | 13466 | Vpost_select_region_hook = Qnil; |
| 13467 | 13467 | ||
| 13468 | DEFVAR_LISP ("disable-inhibit-text-conversion", | 13468 | DEFVAR_BOOL ("disable-inhibit-text-conversion", |
| 13469 | disable_inhibit_text_conversion, | 13469 | disable_inhibit_text_conversion, |
| 13470 | doc: /* Don't disable text conversion inside `read-key-sequence'. | 13470 | doc: /* Don't disable text conversion inside `read-key-sequence'. |
| 13471 | If non-nil, text conversion will continue to happen after a prefix | 13471 | If non-nil, text conversion will continue to happen after a prefix |
| 13472 | key has been read inside `read-key-sequence'. */); | 13472 | key has been read inside `read-key-sequence'. */); |
| 13473 | disable_inhibit_text_conversion = false; | 13473 | disable_inhibit_text_conversion = false; |
| 13474 | 13474 | ||
| 13475 | pdumper_do_now_and_after_load (syms_of_keyboard_for_pdumper); | 13475 | pdumper_do_now_and_after_load (syms_of_keyboard_for_pdumper); |
| 13476 | } | 13476 | } |
diff --git a/src/sfntfont.c b/src/sfntfont.c index 71399b890d2..826c830ece5 100644 --- a/src/sfntfont.c +++ b/src/sfntfont.c | |||
| @@ -991,7 +991,7 @@ sfnt_enum_font_1 (int fd, const char *file, | |||
| 991 | style1 = sfnt_decode_instance_name (&fvar->instance[i], | 991 | style1 = sfnt_decode_instance_name (&fvar->instance[i], |
| 992 | name); | 992 | name); |
| 993 | 993 | ||
| 994 | if (!style1) | 994 | if (NILP (style1)) |
| 995 | continue; | 995 | continue; |
| 996 | 996 | ||
| 997 | /* Now parse the style. */ | 997 | /* Now parse the style. */ |
| @@ -1520,8 +1520,8 @@ sfntfont_list_1 (struct sfnt_font_desc *desc, Lisp_Object spec, | |||
| 1520 | 1520 | ||
| 1521 | if (STRINGP (XCAR (XCAR (tail))) | 1521 | if (STRINGP (XCAR (XCAR (tail))) |
| 1522 | && STRINGP (XCDR (XCAR (tail))) | 1522 | && STRINGP (XCDR (XCAR (tail))) |
| 1523 | && Fstring_equal (SYMBOL_NAME (tem), | 1523 | && !NILP (Fstring_equal (SYMBOL_NAME (tem), |
| 1524 | XCAR (XCAR (tail)))) | 1524 | XCAR (XCAR (tail))))) |
| 1525 | { | 1525 | { |
| 1526 | /* Special family found. */ | 1526 | /* Special family found. */ |
| 1527 | tem = Fintern (XCDR (XCAR (tail)), Qnil); | 1527 | tem = Fintern (XCDR (XCAR (tail)), Qnil); |
diff --git a/src/textconv.c b/src/textconv.c index 1530cc0ce32..a2c790d5374 100644 --- a/src/textconv.c +++ b/src/textconv.c | |||
| @@ -1022,7 +1022,8 @@ really_set_point_and_mark (struct frame *f, ptrdiff_t point, | |||
| 1022 | /* Set the point. */ | 1022 | /* Set the point. */ |
| 1023 | Fgoto_char (make_fixnum (point)); | 1023 | Fgoto_char (make_fixnum (point)); |
| 1024 | 1024 | ||
| 1025 | if (mark == point && BVAR (current_buffer, mark_active)) | 1025 | if (mark == point |
| 1026 | && !NILP (BVAR (current_buffer, mark_active))) | ||
| 1026 | call0 (Qdeactivate_mark); | 1027 | call0 (Qdeactivate_mark); |
| 1027 | else | 1028 | else |
| 1028 | call1 (Qpush_mark, make_fixnum (mark)); | 1029 | call1 (Qpush_mark, make_fixnum (mark)); |