Giter VIP home page Giter VIP logo

Comments (10)

sshaw avatar sshaw commented on July 17, 2024

What version of emacs are you using?

v0.8.4 does not have this problem.

from git-link.

aureliar8 avatar aureliar8 commented on July 17, 2024

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.

bitti avatar bitti commented on July 17, 2024

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.

bitti avatar bitti commented on July 17, 2024

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.

sshaw avatar sshaw commented on July 17, 2024

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.

bitti avatar bitti commented on July 17, 2024

(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.

bitti avatar bitti commented on July 17, 2024

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.

sshaw avatar sshaw commented on July 17, 2024

If you could do a PR that would be —as the kids say: amaaaazing!

from git-link.

bitti avatar bitti commented on July 17, 2024

Ok, I opened #94 now. It's more or less a trivial fix.

from git-link.

sshaw avatar sshaw commented on July 17, 2024

Fixed in v0.8.6. Thanks again @bitti 💪:octocat:

from git-link.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.