Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1211de50
Commit
1211de50
authored
Jul 30, 2013
by
Lars Magne Ingebrigtsen
Browse files
* net/shr.el (shr-mouse-browse-url): Remove and use `shr-browse-url'.
parent
997798bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/net/shr.el
lisp/net/shr.el
+4
-3
No files found.
lisp/ChangeLog
View file @
1211de50
2013-07-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr-mouse-browse-url): Remove and use `shr-browse-url'.
* net/eww.el (eww-setup-buffer): Switching to the buffer seems
more natural than popping.
...
...
lisp/net/shr.el
View file @
1211de50
...
...
@@ -143,7 +143,7 @@ cid: URL as the argument.")
(
define-key
map
[tab]
'shr-next-link
)
(
define-key
map
[backtab]
'shr-previous-link
)
(
define-key
map
[follow-link]
'mouse-face
)
(
define-key
map
[mouse-2]
'shr-
mouse-
browse-url
)
(
define-key
map
[mouse-2]
'shr-browse-url
)
(
define-key
map
"I"
'shr-insert-image
)
(
define-key
map
"w"
'shr-copy-url
)
(
define-key
map
"u"
'shr-copy-url
)
...
...
@@ -664,10 +664,11 @@ size, and full-buffer size."
(
mouse-set-point
ev
)
(
shr-browse-url
))
(
defun
shr-browse-url
(
&optional
external
)
(
defun
shr-browse-url
(
&optional
external
mouse-event
)
"Browse the URL under point.
If EXTERNAL, browse the URL using `shr-external-browser'."
(
interactive
"P"
)
(
interactive
(
list
current-prefix-arg
last-nonmenu-event
))
(
mouse-set-point
mouse-event
)
(
let
((
url
(
get-text-property
(
point
)
'shr-url
)))
(
cond
((
not
url
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment