diff options
| author | Mattias EngdegÄrd | 2022-06-16 14:11:03 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2022-06-16 14:49:58 +0200 |
| commit | 946d70a8910a827d74a384ff6421b9e952e0df2e (patch) | |
| tree | 455daa0feaa6cd7edf01a14a697bf7be5d77d0b2 /src/doc.c | |
| parent | decb64fd835ef1740d720ff877788eb0626737b5 (diff) | |
| download | emacs-946d70a8910a827d74a384ff6421b9e952e0df2e.tar.gz emacs-946d70a8910a827d74a384ff6421b9e952e0df2e.zip | |
Use BASE_EQ instead of EQ where obviously safe
* src/alloc.c (deadp):
* src/buffer.c (reset_buffer_local_variables, candidate_buffer)
(Fkill_buffer, Fbuffer_swap_text, Fmake_overlay, Fmove_overlay):
* src/callint.c (Fcall_interactively):
* src/coding.c (decode_coding_object, encode_coding_object)
(code_convert_region, Ffind_operation_coding_system):
* src/comp.c (Fcomp_el_to_eln_rel_filename):
* src/conf_post.h (RE_TRANSLATE_P):
* src/data.c (Fkill_local_variable, Fash, expt_integer):
* src/dired.c (file_name_completion):
* src/dispnew.c (set_window_cursor_after_update, update_frame_1)
(Fframe_or_buffer_changed_p):
* src/doc.c (Fdocumentation, Fdocumentation_property)
(default_to_grave_quoting_style):
* src/editfns.c (Fconstrain_to_field, save_excursion_save)
(save_excursion_restore, Fngettext):
* src/eval.c (Fautoload, un_autoload, specbind):
* src/fileio.c (Fmake_temp_file_internal):
* src/fns.c (string_char_to_byte, string_byte_to_char)
(Fnthcdr, Fnreverse):
* src/indent.c (vmotion):
* src/inotify.c (add_watch):
* src/keyboard.c (command_loop_1, read_char)
(read_char_minibuf_menu_prompt):
* src/lread.c (oblookup):
* src/macfont.m (macfont_descriptor_entity, macfont_open):
* src/minibuf.c (Finnermost_minibuffer_p, Ftry_completion)
(Ftest_completion):
* src/nsfns.m (ns_set_icon_name):
* src/pdumper.c (dump_queue_dequeue):
* src/pgtkfns.c (pgtk_set_icon_type, pgtk_set_icon_name):
* src/process.c (Faccept_process_output):
* src/textprop.c (set_text_properties):
* src/w32fns.c (w32_set_icon_type, w32_set_icon_name):
* src/w32select.c (validate_coding_system):
* src/window.c (decode_next_window_args, window_loop)
(save_window_save):
* src/xdisp.c (wset_redisplay):
* src/xfaces.c (Fx_family_fonts, resolve_face_name)
(gui_supports_face_attributes_p):
* src/xfns.c (x_set_icon_type, x_set_icon_name):
* src/xselect.c (clean_local_selection_data):
Use BASE_EQ instead of EQ where it is obvious that neither argument
can be a symbol with properties or at least one argument is a
non-symbol.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -346,7 +346,7 @@ string is passed through `substitute-command-keys'. */) | |||
| 346 | 346 | ||
| 347 | /* If DOC is 0, it's typically because of a dumped file missing | 347 | /* If DOC is 0, it's typically because of a dumped file missing |
| 348 | from the DOC file (bug in src/Makefile.in). */ | 348 | from the DOC file (bug in src/Makefile.in). */ |
| 349 | if (EQ (doc, make_fixnum (0))) | 349 | if (BASE_EQ (doc, make_fixnum (0))) |
| 350 | doc = Qnil; | 350 | doc = Qnil; |
| 351 | if (FIXNUMP (doc) || CONSP (doc)) | 351 | if (FIXNUMP (doc) || CONSP (doc)) |
| 352 | { | 352 | { |
| @@ -400,7 +400,7 @@ aren't strings. */) | |||
| 400 | tem = Fget (indirect, prop); | 400 | tem = Fget (indirect, prop); |
| 401 | } | 401 | } |
| 402 | 402 | ||
| 403 | if (EQ (tem, make_fixnum (0))) | 403 | if (BASE_EQ (tem, make_fixnum (0))) |
| 404 | tem = Qnil; | 404 | tem = Qnil; |
| 405 | 405 | ||
| 406 | /* See if we want to look for the string in the DOC file. */ | 406 | /* See if we want to look for the string in the DOC file. */ |
| @@ -637,7 +637,7 @@ default_to_grave_quoting_style (void) | |||
| 637 | Lisp_Object dv = DISP_CHAR_VECTOR (XCHAR_TABLE (Vstandard_display_table), | 637 | Lisp_Object dv = DISP_CHAR_VECTOR (XCHAR_TABLE (Vstandard_display_table), |
| 638 | LEFT_SINGLE_QUOTATION_MARK); | 638 | LEFT_SINGLE_QUOTATION_MARK); |
| 639 | return (VECTORP (dv) && ASIZE (dv) == 1 | 639 | return (VECTORP (dv) && ASIZE (dv) == 1 |
| 640 | && EQ (AREF (dv, 0), make_fixnum ('`'))); | 640 | && BASE_EQ (AREF (dv, 0), make_fixnum ('`'))); |
| 641 | } | 641 | } |
| 642 | 642 | ||
| 643 | DEFUN ("text-quoting-style", Ftext_quoting_style, | 643 | DEFUN ("text-quoting-style", Ftext_quoting_style, |