Giter Site home page Giter Site logo

my fork don't work :) about .emacs.d HOT 7 CLOSED

kaushalmodi avatar kaushalmodi commented on July 21, 2024
my fork don't work :)

from .emacs.d.

Comments (7)

kaushalmodi avatar kaushalmodi commented on July 21, 2024

Hi,

I removed those requires for emacs 25+ because I am using the latest build
of emacs from git and it works fine without requiring cl and cl-lib. I used
to require them unconditionally earlier. But as I don't use emacs 24.5, I
haven't tested thoroughly without those requires on those older versions.
So I decided to keep things as they were on the older versions.

Now I let the packages requiring cl/cl-lib require them. That way the
cl/cl-lib are loaded only when that package is autoloaded.

What version of emacs are you on? What error do you see that traced the
problem to those lines?

I have tested the current state of my config to work fine with emacs 24.5
and emacs 25.0.92 as of today morning.

UPDATE

Also cl-lib would be auto-loaded when you use functions like cl-case, etc. So there is no need to require cl-lib explicitly.

from .emacs.d.

kaushalmodi avatar kaushalmodi commented on July 21, 2024

I have updated my config and removed those unnecessary requires ( 976e1e4 ). I have tested the config to work fine without those cl/cl-lib requires for both emacs 24.5 and emacs 25.0.92.

My guess is that you are using emacs older than 24.5 (probably older than 24.3) and that's why it threw error as it was unable to find the cl-lib library. The cl-lib library is built into emacs from version 24.3 onwards. To get it, the best way is to upgrade to version 24.5 (or install cl-lib from elpa using the package manager).

from .emacs.d.

smithx avatar smithx commented on July 21, 2024

Hi, I use Emacs 25.0.92.1 (MS Windows x64 version). I have some packages switched off, another have added. Do you disableidopackage ? I use it. Without cl, cl-lib requires: after Emacs start,ido-find-file function (binded to "C-x C-f") doesn't working: "Symbol’s function definition is void: fourth". Some time later, after yasnippet loaded (defer: 20) ido-find-file is working.

from .emacs.d.

kaushalmodi avatar kaushalmodi commented on July 21, 2024

Do you disable ido package?

ido is disabled by default. I simply do not enable it using (ido-mode 1). I use ivy/counsel instead. If you use this config as it is, C-x C-f is bound to counsel-find-file.

I also tried the below in my config:

(ivy-mode -1)
(ido-mode 1)

and after that, ido-find-file works fine, without the error related to fourth.

Also, M-x ido-mode followed by M-x ido-find-file works fine in emacs -Q.

On further investigation, none of the packages installed from Melpa/GNU Elpa using my config use fourth. Also fourth is defined in the cl library.

So it is one of the packages that you have installed and I don't that's using fourth. My guess would be one of the 3rd-party packages associated to ido.

What you need to do?

  • Grep for \(fourth in your elpa directory (where all 3rd party packages are installed) and figure out which package uses fourth. Contact the package developer to add (require 'cl) to their package; or even better use equivalent function from the newer cl-lib library (which gets autoloaded). The cl library does not get autoloaded as it is deprecated as of emacs 24.3.
  • In the meanwhile, doing just (require 'cl) in your config should fix this problem.

from .emacs.d.

smithx avatar smithx commented on July 21, 2024

Thank you! You are right, I've found fourth call here:setup-ido.el and I've found

(require 'cl)
(require 'cl-lib)

at begining of yasnippet.el package

from .emacs.d.

kaushalmodi avatar kaushalmodi commented on July 21, 2024

Thanks for pointing out the issue!

I have updated setup-ido and removed cl dependency ( 4eb4f86 ). Please update and see if things now work out fine for you.

As I have switched to ivy from ido for quite few months, setup-ido is not being frequently maintained.

from .emacs.d.

smithx avatar smithx commented on July 21, 2024

Thank you! All things work out fine now.

from .emacs.d.

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.