* bug#16277: 24.3.50; [PATCH] eww: Cannot use double/single quote for search words.
@ 2013-12-28 11:36 Kenjiro NAKAYAMA
2014-01-05 9:25 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Kenjiro NAKAYAMA @ 2013-12-28 11:36 UTC (permalink / raw)
To: 16277
This report includes a patch to the bug. Please, review and install it
to the official tree if appreciated.
* Reproduce the bug.
step 1. M-x eww
step 2. input "eww.el" to mini-buffer. (eg. sEnter URL or keywords: "eww.el")
(Result)-> Error will occure (eg. error "eww.el/80 Name or service not known").
The cause is that eww cannot treat double quote or single quote.
(Therefore, eww cannot search the word which has "." dot like eww.el.)
I send the patch to fix it.
Signed-off-by: Kenjiro NAKAYAMA <nakayamakenjiro@gmail.com>
* net/eww.el (eww): Support single/double quote for search.
---
lisp/net/eww.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 25309d1..578032b 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -157,8 +157,9 @@ word(s) will be searched for via `eww-search-prefix'."
(user-error "FTP is not supported."))
(t
(if (and (= (length (split-string url)) 1)
- (or (> (length (split-string url "\\.")) 1)
- (string-match eww-local-regex url)))
+ (or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url))
+ (> (length (split-string url "\\.")) 1))
+ (string-match eww-local-regex url)))
(progn
(unless (string-match-p "\\`[a-zA-Z][-a-zA-Z0-9+.]*://" url)
(setq url (concat "http://" url)))
--
1.8.3.1
Regards,
Kenjiro
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-05 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-28 11:36 bug#16277: 24.3.50; [PATCH] eww: Cannot use double/single quote for search words Kenjiro NAKAYAMA
2014-01-05 9:25 ` Lars Magne Ingebrigtsen
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.