diff options
| author | Po Lu | 2023-01-24 21:37:22 +0800 |
|---|---|---|
| committer | Po Lu | 2023-01-24 21:37:22 +0800 |
| commit | 9082b4e6ee27b995cbb61668cb437d7b91c7f5f8 (patch) | |
| tree | 675d45a080d0e03d3d55542a0416e080be3839eb /src | |
| parent | 54836c47c76f655a7e3d6cf28f0cf27b8d9f3cdd (diff) | |
| download | emacs-9082b4e6ee27b995cbb61668cb437d7b91c7f5f8.tar.gz emacs-9082b4e6ee27b995cbb61668cb437d7b91c7f5f8.zip | |
Make binaries distributed with Emacs work on Android
* doc/lispref/processes.texi (Subprocess Creation): Document
variables containing program names.
* etc/NEWS: Document new variables.
* java/Makefile.in (CROSS_BINS): Add missing etags binary.
* lisp/cedet/semantic/db-ebrowse.el
(semanticdb-create-ebrowse-database):
* lisp/gnus/mail-source.el (mail-source-movemail-program):
* lisp/hexl.el (hexl-program):
* lisp/htmlfontify.el (hfy-etags-bin):
* lisp/ielm.el (inferior-emacs-lisp-mode):
* lisp/mail/rmail.el (rmail-autodetect):
(rmail-insert-inbox-text):
* lisp/org/org-ctags.el (org-ctags-path-to-ctags):
* lisp/progmodes/cperl-mode.el (cperl-etags):
* lisp/speedbar.el (speedbar-fetch-etags-command):
* lisp/textmodes/reftex-global.el (reftex-create-tags-file): Use
new variables.
* src/callproc.c (syms_of_callproc): New variables naming
binaries redistributed with Emacs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/callproc.c b/src/callproc.c index 5e1e1a8cc0a..85895a7d9f2 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -2110,6 +2110,69 @@ use. | |||
| 2110 | See `setenv' and `getenv'. */); | 2110 | See `setenv' and `getenv'. */); |
| 2111 | Vprocess_environment = Qnil; | 2111 | Vprocess_environment = Qnil; |
| 2112 | 2112 | ||
| 2113 | DEFVAR_LISP ("ctags-program-name", Vctags_program_name, | ||
| 2114 | doc: /* Name of the `ctags' program distributed with Emacs. | ||
| 2115 | Use this instead of calling `ctags' directly, as `ctags' may have been | ||
| 2116 | renamed to comply with executable naming restrictions on the system. */); | ||
| 2117 | #if !defined HAVE_ANDROID || defined ANDROID_STUBIFY | ||
| 2118 | Vctags_program_name = build_pure_c_string ("ctags"); | ||
| 2119 | #else | ||
| 2120 | Vctags_program_name = build_pure_c_string ("libctags.so"); | ||
| 2121 | #endif | ||
| 2122 | |||
| 2123 | DEFVAR_LISP ("etags-program-name", Vetags_program_name, | ||
| 2124 | doc: /* Name of the `etags' program distributed with Emacs. | ||
| 2125 | Use this instead of calling `etags' directly, as `etags' may have been | ||
| 2126 | renamed to comply with executable naming restrictions on the system. */); | ||
| 2127 | #if !defined HAVE_ANDROID || defined ANDROID_STUBIFY | ||
| 2128 | Vetags_program_name = build_pure_c_string ("etags"); | ||
| 2129 | #else | ||
| 2130 | Vetags_program_name = build_pure_c_string ("libetags.so"); | ||
| 2131 | #endif | ||
| 2132 | |||
| 2133 | DEFVAR_LISP ("hexl-program-name", Vhexl_program_name, | ||
| 2134 | doc: /* Name of the `hexl' program distributed with Emacs. | ||
| 2135 | Use this instead of calling `hexl' directly, as `hexl' may have been | ||
| 2136 | renamed to comply with executable naming restrictions on the system. */); | ||
| 2137 | #if !defined HAVE_ANDROID || defined ANDROID_STUBIFY | ||
| 2138 | Vhexl_program_name = build_pure_c_string ("hexl"); | ||
| 2139 | #else | ||
| 2140 | Vhexl_program_name = build_pure_c_string ("libhexl.so"); | ||
| 2141 | #endif | ||
| 2142 | |||
| 2143 | DEFVAR_LISP ("emacsclient-program-name", Vemacsclient_program_name, | ||
| 2144 | doc: /* Name of the `emacsclient' program distributed with Emacs. | ||
| 2145 | Use this instead of calling `emacsclient' directly, as `emacsclient' | ||
| 2146 | may have been renamed to comply with executable naming restrictions on | ||
| 2147 | the system. */); | ||
| 2148 | #if !defined HAVE_ANDROID || defined ANDROID_STUBIFY | ||
| 2149 | Vemacsclient_program_name = build_pure_c_string ("emacsclient"); | ||
| 2150 | #else | ||
| 2151 | Vemacsclient_program_name = build_pure_c_string ("libemacsclient.so"); | ||
| 2152 | #endif | ||
| 2153 | |||
| 2154 | DEFVAR_LISP ("movemail-program-name", Vmovemail_program_name, | ||
| 2155 | doc: /* Name of the `movemail' program distributed with Emacs. | ||
| 2156 | Use this instead of calling `movemail' directly, as `movemail' | ||
| 2157 | may have been renamed to comply with executable naming restrictions on | ||
| 2158 | the system. */); | ||
| 2159 | #if !defined HAVE_ANDROID || defined ANDROID_STUBIFY | ||
| 2160 | Vmovemail_program_name = build_pure_c_string ("movemail"); | ||
| 2161 | #else | ||
| 2162 | Vmovemail_program_name = build_pure_c_string ("libmovemail.so"); | ||
| 2163 | #endif | ||
| 2164 | |||
| 2165 | DEFVAR_LISP ("ebrowse-program-name", Vebrowse_program_name, | ||
| 2166 | doc: /* Name of the `ebrowse' program distributed with Emacs. | ||
| 2167 | Use this instead of calling `ebrowse' directly, as `ebrowse' | ||
| 2168 | may have been renamed to comply with executable naming restrictions on | ||
| 2169 | the system. */); | ||
| 2170 | #if !defined HAVE_ANDROID || defined ANDROID_STUBIFY | ||
| 2171 | Vebrowse_program_name = build_pure_c_string ("ebrowse"); | ||
| 2172 | #else | ||
| 2173 | Vebrowse_program_name = build_pure_c_string ("libebrowse.so"); | ||
| 2174 | #endif | ||
| 2175 | |||
| 2113 | defsubr (&Scall_process); | 2176 | defsubr (&Scall_process); |
| 2114 | defsubr (&Sgetenv_internal); | 2177 | defsubr (&Sgetenv_internal); |
| 2115 | defsubr (&Scall_process_region); | 2178 | defsubr (&Scall_process_region); |