From: tumashu <tumashu@163.com>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Subject: [PATCH] * lisp/xwidget.el (xwidget-webkit-browse-url): Remove space prefix of url.
Date: Thu, 11 Nov 2021 17:36:50 +0800 (CST) [thread overview]
Message-ID: <27840630.58e8.17d0e5b6389.Coremail.tumashu@163.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #1.2: Type: text/html, Size: 111 bytes --]
[-- Attachment #2: 0001-lisp-xwidget.el-xwidget-webkit-browse-url-Remove-spa.patch --]
[-- Type: application/octet-stream, Size: 831 bytes --]
From 2f460c83b4e304cb1f6df0f11d54e4cb0da0b223 Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@163.com>
Date: Thu, 11 Nov 2021 17:32:53 +0800
Subject: [PATCH] * lisp/xwidget.el (xwidget-webkit-browse-url): Remove space
prefix of url.
---
lisp/xwidget.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index 2c7b4dd83d..be5a510986 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -114,6 +114,7 @@ xwidget-webkit-browse-url
(or (featurep 'xwidget-internal)
(user-error "Your Emacs was not compiled with xwidgets support"))
(when (stringp url)
+ (setq url (replace-regexp-in-string "^[[:space:]]+" "" url))
;; If it's a "naked url", just try adding https: to it.
(unless (string-match "\\`[A-Za-z]+:" url)
(setq url (concat "https://" url)))
--
2.30.2
next reply other threads:[~2021-11-11 9:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-11 9:36 tumashu [this message]
2021-11-11 9:39 ` Subject: [PATCH] * lisp/xwidget.el (xwidget-webkit-browse-url): Remove space prefix of url Po Lu
2021-11-11 10:49 ` tumashu
2021-11-11 10:53 ` Po Lu
2021-11-11 10:53 ` Lars Ingebrigtsen
2021-11-11 11:15 ` Po Lu
2021-11-11 11:58 ` Lars Ingebrigtsen
2021-11-11 12:21 ` Po Lu
2021-11-11 12:25 ` Lars Ingebrigtsen
2021-11-13 1:08 ` Po Lu
2021-11-13 7:45 ` Eli Zaretskii
2021-11-13 9:34 ` Po Lu
2021-11-13 10:26 ` Eli Zaretskii
2021-11-13 10:45 ` Po Lu
2021-11-13 13:29 ` Eli Zaretskii
2021-11-13 15:32 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27840630.58e8.17d0e5b6389.Coremail.tumashu@163.com \
--to=tumashu@163.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.