aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/androidselect.c')
-rw-r--r--src/androidselect.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/androidselect.c b/src/androidselect.c
index 4a71b376e28..2e2f2d7e483 100644
--- a/src/androidselect.c
+++ b/src/androidselect.c
@@ -213,6 +213,25 @@ DEFUN ("android-clipboard-exists-p", Fandroid_clipboard_exists_p,
213 return rc ? Qt : Qnil; 213 return rc ? Qt : Qnil;
214} 214}
215 215
216DEFUN ("android-browse-url", Fandroid_browse_url,
217 Sandroid_browse_url, 1, 1, 0,
218 doc: /* Start the system web browser.
219Then, point the web browser to URL, which should be a URL-encoded
220URL with a scheme specified. Signal an error upon failure. */)
221 (Lisp_Object url)
222{
223 Lisp_Object value;
224
225 CHECK_STRING (url);
226 value = android_browse_url (url);
227
228 /* Signal an error upon failure. */
229 if (!NILP (value))
230 signal_error ("Error browsing URL", value);
231
232 return Qnil;
233}
234
216 235
217 236
218void 237void
@@ -246,4 +265,5 @@ syms_of_androidselect (void)
246 defsubr (&Sandroid_set_clipboard); 265 defsubr (&Sandroid_set_clipboard);
247 defsubr (&Sandroid_get_clipboard); 266 defsubr (&Sandroid_get_clipboard);
248 defsubr (&Sandroid_clipboard_exists_p); 267 defsubr (&Sandroid_clipboard_exists_p);
268 defsubr (&Sandroid_browse_url);
249} 269}