Coder Social home page Coder Social logo

Comments (10)

marijnh avatar marijnh commented on August 19, 2024

Thanks for reporting this. Strange. url-http should be provided by the url-http package that tern.el requires at the top of the file (and which is supposed to be included in the Emacs distribution). If you do M-x apropos url-http, does it find anything (that actually starts with those words)?

from tern.

iwillig avatar iwillig commented on August 19, 2024

For some reason I don't have the normal url-http function installed, just url-https

url-https
Function: (not documented)
url-https-expand-file-name
Function: (not documented)
url-https-file-attributes
Function: (not documented)
url-https-file-exists-p
Function: (not documented)
url-https-file-readable-p
Function: (not documented)

from tern.

marijnh avatar marijnh commented on August 19, 2024

What happens when you evaluate (require 'url-http) in the *scratch* buffer? And is the url package shown as built-in when you browse to it under M-x package-list-packages?

from tern.

iwillig avatar iwillig commented on August 19, 2024

The first step works fine, in scratch

(require 'url-http)
M-x eval-buffer

And no errors

And the url package is the built in one, from what I can tell,
url built-in Uniform Resource Locator retrieval tool

from tern.

marijnh avatar marijnh commented on August 19, 2024

Well, that's getting more and more odd. Did you install emacs in some funky way, or is it a standard package? If so, where does it come from?

Does a file like /usr/share/emacs/24.1/lisp/url/url-http.elc exist on your system?

Did you try restarting emacs?

from tern.

iwillig avatar iwillig commented on August 19, 2024

I am using the emacs-snapshot package on debian.

Package: emacs-snapshot
New: yes
State: installed
Automatically installed: no
Version: 2:20130207-1
Priority: optional
Section: editors
Maintainer: Julien Danjou [email protected]
Architecture: amd64
Uncompressed Size: 14.7 M
Depends: emacs-snapshot-bin-common (= 2:20130207-1), libasound2 (>= 1.0.16), libc6 (>= 2.11), libcairo2 (>= 1.2.4),
libdbus-1-3 (>= 1.5.12), libfontconfig1 (>= 2.9.0), libfreetype6 (>= 2.2.1), libgdk-pixbuf2.0-0 (>= 2.22.0),
libgif4 (>= 4.1.4), libglib2.0-0 (>= 2.26.0), libgnutls26 (>= 2.12.17-0), libgpm2 (>= 1.20.4), libgtk-3-0
(>= 3.2.1), libice6 (>= 1:1.0.0), libjpeg8 (>= 8c), libm17n-0 (>= 1.6.1), libmagickcore5 (>= 8:6.7.7.10),
libmagickwand5 (>= 8:6.7.7.10), libotf0 (>= 0.9.11), libpango1.0-0 (>= 1.18.0), libpng12-0 (>= 1.2.13-4),
librsvg2-2 (>= 2.14.4), libselinux1 (>= 1.32), libsm6, libtiff4 (> 3.9.5-3~), libtinfo5, libx11-6, libxft2
(> 2.1.1), libxml2 (>= 2.7.4), libxpm4, libxrender1
PreDepends: dpkg (>= 1.15.6)
Conflicts: emacs-snapshot-gtk (<= 1:20070824-1), emacs-snapshot-gtk (<= 1:20070824-1), emacs-snapshot
Provides: editor, emacsen, info-browser, mail-reader, news-reader
Provided by: emacs-snapshot-lucid, emacs-snapshot-nox
Description: The GNU Emacs editor (development snapshot)
GNU Emacs is the extensible self-documenting text editor.
Homepage: http://www.gnu.org/software/emacs/

And I have two copies of that file on my system, because I have two copies of emacs installed.

/usr/share/emacs/23.4/lisp/url/url-http.elc
/usr/share/emacs/24.3.50/lisp/url/url-http.elc

Maybe I should uninstall both and compile from source?

from tern.

marijnh avatar marijnh commented on August 19, 2024

Having multiple Emacsen installed should usually work without trouble, and if you're using the snapshot package, I would hope that that is not a messed up version.

I must say I'm clueless what could be causing this. I don't have a deep grasp of emacs internals, but it seems that if the file is present, and the require call succeeds, there's something deeply wrong when that doesn't cause the actual function defined in that file to be defined.

from tern.

iwillig avatar iwillig commented on August 19, 2024

:(. Oh well maybe I will look into it more and see if I can fix it.

Thanks for taking a look at this.

from tern.

ozanmakes avatar ozanmakes commented on August 19, 2024

@marijnh tern.el doesn't seem to require url-http

from tern.

marijnh avatar marijnh commented on August 19, 2024

Indeed. I assumed this was implicit in requiring 'url. Maybe not. I've added it.

from tern.

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.