Comments (7)
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.
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.
Hi, I use Emacs 25.0.92.1 (MS Windows x64 version). I have some packages switched off, another have added. Do you disableido
package ? 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.
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 usesfourth
. Contact the package developer to add(require 'cl)
to their package; or even better use equivalent function from the newercl-lib
library (which gets autoloaded). Thecl
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.
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.
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.
Thank you! All things work out fine now.
from .emacs.d.
Related Issues (20)
- find the current instance block HOT 3
- Add bash version of git_force_update.csh HOT 14
- projectile is adding .git folders to the list of known projects HOT 4
- Use a regular org comment instead of #+HEADER to mark images needing pdf2png conversion HOT 7
- Do not set Slant face property to italics in term mode HOT 1
- Suggestion to improve HOT 4
- Dedicated repo for eless? HOT 1
- eless: Doesn't preserve view-mode when opening file from dired HOT 1
- remove assignment of eww-search-prefix in modi/eww--go-to-first-search-result HOT 1
- seems modi/eww--go-to-first-search-result not working properly HOT 5
- modi/eww-im-feeling-lucky can be improved
- Error modi/temporary-file-directory HOT 7
- Replace focus-in-hook with new hook [emacs 27.x]
- File permissions HOT 2
- manually-synced directory HOT 4
- Opening executable tcl-files HOT 5
- Changing the hugo mode load HOT 1
- Loading 'iy-go-to-char' package HOT 1
- Loading 'interleave' package HOT 1
- Issues setting up emacs (version < 27) HOT 2
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 .emacs.d.