Comments (10)
What version of emacs are you using?
v0.8.4 does not have this problem.
from git-link.
emacs-version
gives GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian
I'm on ubuntu 20.04.3, emacs installed via apt install emacs
from git-link.
I'm sorry, I didn't realize that. Maybe we need to add an explicit (require 'url-util)
. If you do that manually does the error go away?
from git-link.
Oops, (require 'url-util)
is already included as it should be, otherwise it should have failed previously already for you, since url-hexify-string
is already used for the branchname and the error message would be different anyway. So I suppose it's related to the Emacs Version. Let me see if I can find out.
from git-link.
Hi @bitti, it's because on 26 url-hexify-string
requires a vector and the position of elements in the vector must correspond to the character code (if I recall, read this this morning) to be escaped.
For 26 support we could rebuild this structure that, I assume, will also work with 27+
from git-link.
(url-hexify-string filename)
works for me (it doesn't crash anymore and I get a valid github link)
Yes at least for github not escaping /
is merely a cosmetic thing. I'm not sure how other git repo hosting providers would handle it though, therefore I think it's safer to not escape it.
from git-link.
For 26 support we could rebuild this structure that, I assume, will also work with 27+
I see, seems there was a bug which got fixed in Emacs 27.0.90: emacs-mirror/emacs@9aa13cd. So we'd have to wrap the second argument explicitly with url--allowed-chars
to avoid a regression for earlier versions. Do you want me to do the PR or do you handle it?
from git-link.
If you could do a PR that would be —as the kids say: amaaaazing!
from git-link.
Ok, I opened #94 now. It's more or less a trivial fix.
from git-link.
Fixed in v0.8.6. Thanks again @bitti 💪:octocat:
from git-link.
Related Issues (20)
- Feature request: support for Gitiles HOT 5
- Support not stripping ".git" from directory name
- Feature request: Add custom macro or function to define a custom git forge. HOT 4
- Fails to resolve insteadOf directives when looking up remote URLs HOT 1
- Feature Request: Choose from multiple remotes HOT 2
- support for http HOT 2
- support 'Gitea' 's (and its fokr : Forgejo ?) server ? HOT 3
- How to call git-link from another interactive function? HOT 1
- Git link from buffer created by `log-view-find-revision` goes to page not found on Github
- Control over whether to link to a file in a branch or a file in a commit HOT 2
- Add support for Savannah HOT 1
- Proper sourcehut link HOT 2
- Move CI to GitHub Actions or CircleCI HOT 1
- Support custom HTTP scheme HOT 3
- Support for Linking to `git blame` Page & Linking to Documentation Files like Org and Markdown Files on Bitbucket HOT 2
- not working for files in an auxiliary worktree (using git-worktree) HOT 4
- Regression - incorrect directory passed to function in "git-link-remote-alist" HOT 2
- replaces / in branch name with %2F but github URL retains the / HOT 2
- Trailing slash quirk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-link.