summaryrefslogtreecommitdiff
path: root/lisp/net
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2014-12-07 21:44:19 +0100
committerLars Magne Ingebrigtsen <larsi@gnus.org>2014-12-07 21:44:19 +0100
commita3ca30c8b5bd53a72590e57d30c0d98a877c8720 (patch)
tree1436edc2fd7579e6fef71cb96341fe1a35768c80 /lisp/net
parent06b5cfe498a971503dc7e223e9829d561a3883ac (diff)
downloademacs-a3ca30c8b5bd53a72590e57d30c0d98a877c8720.tar.gz
emacs-a3ca30c8b5bd53a72590e57d30c0d98a877c8720.tar.bz2
emacs-a3ca30c8b5bd53a72590e57d30c0d98a877c8720.zip
Revert prefix behavior in RET to previous behavior
* net/eww.el (eww-follow-link): Revert prefix behaviour to previous behavior.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/eww.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 8b7839701ec..139c0b1372d 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1315,8 +1315,8 @@ The browser to used is specified by the `shr-external-browser' variable."
(defun eww-follow-link (&optional external mouse-event)
"Browse the URL under point.
-If EXTERNAL is single prefix, browse in new buffer.
-If EXTERNAL is double prefix, browse the URL using `shr-external-browser'."
+If EXTERNAL is single prefix, browse the URL using `shr-external-browser'.
+If EXTERNAL is double prefix, browse in new buffer."
(interactive (list current-prefix-arg last-nonmenu-event))
(mouse-set-point mouse-event)
(let ((url (get-text-property (point) 'shr-url)))
@@ -1325,7 +1325,7 @@ If EXTERNAL is double prefix, browse the URL using `shr-external-browser'."
(message "No link under point"))
((string-match "^mailto:" url)
(browse-url-mail url))
- ((and (consp external) (< 4 (car external)))
+ ((and (consp external) (<= (car external) 4))
(funcall shr-external-browser url))
;; This is a #target url in the same page as the current one.
((and (url-target (url-generic-parse-url url))