aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/androidselect.c')
-rw-r--r--src/androidselect.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/androidselect.c b/src/androidselect.c
index d1f2ebb52f9..f5371280457 100644
--- a/src/androidselect.c
+++ b/src/androidselect.c
@@ -232,11 +232,15 @@ DEFUN ("android-clipboard-exists-p", Fandroid_clipboard_exists_p,
232} 232}
233 233
234DEFUN ("android-browse-url", Fandroid_browse_url, 234DEFUN ("android-browse-url", Fandroid_browse_url,
235 Sandroid_browse_url, 1, 1, 0, 235 Sandroid_browse_url, 1, 2, 0,
236 doc: /* Start the system web browser. 236 doc: /* Open URL in an external application. URL should be a
237Then, point the web browser to URL, which should be a URL-encoded 237URL-encoded URL with a scheme specified unless SEND is non-nil.
238URL with a scheme specified. Signal an error upon failure. */) 238Signal an error upon failure.
239 (Lisp_Object url) 239
240If SEND is nil, start a program that is able to display the URL, such
241as a web browser. Otherwise, try to share URL using programs such as
242email clients. */)
243 (Lisp_Object url, Lisp_Object send)
240{ 244{
241 Lisp_Object value; 245 Lisp_Object value;
242 246
@@ -244,7 +248,7 @@ URL with a scheme specified. Signal an error upon failure. */)
244 error ("No Android display connection!"); 248 error ("No Android display connection!");
245 249
246 CHECK_STRING (url); 250 CHECK_STRING (url);
247 value = android_browse_url (url); 251 value = android_browse_url (url, send);
248 252
249 /* Signal an error upon failure. */ 253 /* Signal an error upon failure. */
250 if (!NILP (value)) 254 if (!NILP (value))