diff options
| author | Po Lu | 2022-09-20 03:00:10 +0000 |
|---|---|---|
| committer | Po Lu | 2022-09-20 03:00:10 +0000 |
| commit | 1b77f1981d8aa107becf571939f01ae04ed16873 (patch) | |
| tree | d5bae8bc0cbc66d46e515e2bb8f6232e5615277a /src | |
| parent | 132d5cb0a3ec94afbb49772631861e00160ffffb (diff) | |
| download | emacs-1b77f1981d8aa107becf571939f01ae04ed16873.tar.gz emacs-1b77f1981d8aa107becf571939f01ae04ed16873.zip | |
Remove intern calls with a static string from haiku*.c
* src/haikufns.c (Fx_show_tip, syms_of_haikufns):
* src/haikufont.c (haikufont_maybe_handle_special_family)
(syms_of_haikufont):
* src/haikuterm.c (haiku_term_init, syms_of_haikuterm): Replace
intern with real predefined symbols.
Diffstat (limited to 'src')
| -rw-r--r-- | src/haikufns.c | 6 | ||||
| -rw-r--r-- | src/haikufont.c | 3 | ||||
| -rw-r--r-- | src/haikuterm.c | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/src/haikufns.c b/src/haikufns.c index aaa4e866228..711202c5df3 100644 --- a/src/haikufns.c +++ b/src/haikufns.c | |||
| @@ -2636,8 +2636,7 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, | |||
| 2636 | 2636 | ||
| 2637 | start_timer: | 2637 | start_timer: |
| 2638 | /* Let the tip disappear after timeout seconds. */ | 2638 | /* Let the tip disappear after timeout seconds. */ |
| 2639 | tip_timer = call3 (intern ("run-at-time"), timeout, Qnil, | 2639 | tip_timer = call3 (Qrun_at_time, timeout, Qnil, Qx_hide_tip); |
| 2640 | intern ("x-hide-tip")); | ||
| 2641 | 2640 | ||
| 2642 | return unbind_to (count, Qnil); | 2641 | return unbind_to (count, Qnil); |
| 2643 | } | 2642 | } |
| @@ -3149,6 +3148,9 @@ syms_of_haikufns (void) | |||
| 3149 | DEFSYM (Qcancel_timer, "cancel-timer"); | 3148 | DEFSYM (Qcancel_timer, "cancel-timer"); |
| 3150 | DEFSYM (Qassq_delete_all, "assq-delete-all"); | 3149 | DEFSYM (Qassq_delete_all, "assq-delete-all"); |
| 3151 | 3150 | ||
| 3151 | DEFSYM (Qrun_at_time, "run-at-time"); | ||
| 3152 | DEFSYM (Qx_hide_tip, "x-hide-tip"); | ||
| 3153 | |||
| 3152 | DEFSYM (Qalways, "always"); | 3154 | DEFSYM (Qalways, "always"); |
| 3153 | DEFSYM (Qnot_useful, "not-useful"); | 3155 | DEFSYM (Qnot_useful, "not-useful"); |
| 3154 | DEFSYM (Qwhen_mapped, "when-mapped"); | 3156 | DEFSYM (Qwhen_mapped, "when-mapped"); |
diff --git a/src/haikufont.c b/src/haikufont.c index 3e7f6f86dcb..4af9ff9d77f 100644 --- a/src/haikufont.c +++ b/src/haikufont.c | |||
| @@ -370,7 +370,7 @@ haikufont_maybe_handle_special_family (Lisp_Object family, | |||
| 370 | BFont_populate_fixed_family (ptn); | 370 | BFont_populate_fixed_family (ptn); |
| 371 | return 1; | 371 | return 1; |
| 372 | } | 372 | } |
| 373 | else if (EQ (family, intern ("Sans Serif"))) | 373 | else if (EQ (family, QSans_Serif)) |
| 374 | { | 374 | { |
| 375 | BFont_populate_plain_family (ptn); | 375 | BFont_populate_plain_family (ptn); |
| 376 | return 1; | 376 | return 1; |
| @@ -1320,6 +1320,7 @@ syms_of_haikufont_for_pdumper (void) | |||
| 1320 | void | 1320 | void |
| 1321 | syms_of_haikufont (void) | 1321 | syms_of_haikufont (void) |
| 1322 | { | 1322 | { |
| 1323 | DEFSYM (QSans_Serif, "Sans Serif"); | ||
| 1323 | DEFSYM (Qfontsize, "fontsize"); | 1324 | DEFSYM (Qfontsize, "fontsize"); |
| 1324 | DEFSYM (Qfixed, "fixed"); | 1325 | DEFSYM (Qfixed, "fixed"); |
| 1325 | DEFSYM (Qplain, "plain"); | 1326 | DEFSYM (Qplain, "plain"); |
diff --git a/src/haikuterm.c b/src/haikuterm.c index df1c39974f8..b0832059bae 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c | |||
| @@ -4349,7 +4349,7 @@ haiku_term_init (void) | |||
| 4349 | emacs_abort (); | 4349 | emacs_abort (); |
| 4350 | 4350 | ||
| 4351 | color_file = Fexpand_file_name (build_string ("rgb.txt"), | 4351 | color_file = Fexpand_file_name (build_string ("rgb.txt"), |
| 4352 | Fsymbol_value (intern ("data-directory"))); | 4352 | Fsymbol_value (Qdata_directory)); |
| 4353 | color_map = Fx_load_color_file (color_file); | 4353 | color_map = Fx_load_color_file (color_file); |
| 4354 | 4354 | ||
| 4355 | if (NILP (color_map)) | 4355 | if (NILP (color_map)) |
| @@ -4634,6 +4634,8 @@ syms_of_haikuterm (void) | |||
| 4634 | DEFSYM (Qoption, "option"); | 4634 | DEFSYM (Qoption, "option"); |
| 4635 | DEFSYM (Qcommand, "command"); | 4635 | DEFSYM (Qcommand, "command"); |
| 4636 | 4636 | ||
| 4637 | DEFSYM (Qdata_directory, "data-directory"); | ||
| 4638 | |||
| 4637 | DEFVAR_LISP ("haiku-meta-keysym", Vhaiku_meta_keysym, | 4639 | DEFVAR_LISP ("haiku-meta-keysym", Vhaiku_meta_keysym, |
| 4638 | doc: /* Which key Emacs uses as the meta modifier. | 4640 | doc: /* Which key Emacs uses as the meta modifier. |
| 4639 | This is either one of the symbols `shift', `control', `command', and | 4641 | This is either one of the symbols `shift', `control', `command', and |