Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5924259f
Commit
5924259f
authored
Jun 27, 2018
by
Vincent Belaïche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow 'file:' protocol for Info-follow-nearest-node.
parent
513b97c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
etc/NEWS
etc/NEWS
+6
-0
lisp/info.el
lisp/info.el
+2
-2
No files found.
etc/NEWS
View file @
5924259f
...
...
@@ -84,6 +84,12 @@ work right without some adjustment:
*
Changes
in
Emacs
27.1
---
***
Info
browser
can
follow
``
file
:
''
protocol
URL
's URL created with
The URL'
s
created
by
the
@
url
Texinfo
command
,
and
followed
with
the
Info
-
follow
-
nearest
-
node
function
,
can
now
have
'file:'
prototype
and
are
passed
to
'browse-url'
function
,
like
were
the
other
Web
protocols
(
namely
ftp
,
http
,
and
https
).
---
**
New
variable
'xft-ignore-color-fonts'
.
Default
t
means
don
't try to load color fonts when using Xft, as they
...
...
lisp/info.el
View file @
5924259f
...
...
@@ -3938,8 +3938,8 @@ If FORK is a string, it is the name to use for the new buffer."
If FORK is non-nil, it is passed to `Info-goto-node'."
(
let
(
node
)
(
cond
((
setq
node
(
Info-get-token
(
point
)
"
[hf]t?
tps?://"
"\\(
[hf]t?
tps?://[^ \t\n\"`‘({<>})’']+\\)"
))
((
setq
node
(
Info-get-token
(
point
)
"
\\(?:f\\(?:ile\\|tp\\)\\|ht
tps?
\\)
://"
"\\(
\\(?:f\\(?:ile\\|tp\\)\\|ht
tps?
\\)
://[^ \t\n\"`‘({<>})’']+\\)"
))
(
browse-url
node
)
(
setq
node
t
))
((
setq
node
(
Info-get-token
(
point
)
"\\*note[ \n\t]+"
...
...
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