[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Icicles
From: |
Drew Adams |
Subject: |
RE: [External] : Icicles |
Date: |
Sun, 29 Jan 2023 16:04:45 +0000 |
> I installed Icicles in Emacs and Emacs put it in the
> home/gfp/.config/emacs/elpa directory
> but when I want to run it, it said:
> did not find file/directory
> message:
> Leaving directory ‘/home/gfp/.config/emacs/elpa/icicles-2022.1.26’
> Compiling file /home/gfp/.config/emacs/elpa/icicles-2022.1.26/icicles.el
> at Sun Jan 29 13:31:14 2023
> Entering directory ‘/home/gfp/.config/emacs/elpa/icicles-2022.1.26/’
> icicles.el:1695:16: Error: Cannot open load file: Datei oder Verzeichnis
> nicht gefunden, icicles-mac
>
> How can I solve the problem?
You don't say exactly what you did. Or what Emacs
version you have.
A guess is that you just didn't add the directory
where you have the source files to your value of
variable `load-path'. Emacs can't know where to
find libraries if you don't tell it.
[ Caveat: I don't have or use Emacs 29, which includes
native compilation, so I can't help you there -
except to say that you can, I expect, still follow
the regular directions (see below). If it for some
reason needs the macros file (`icicles-mac.el')
loaded first, then do that. ]
___
Normally all you need to do is add the directory
where you have the Icicles files to the value of
your `load-path' variable:
(add-to-list 'load-path
"/wherever/you/have/Icicles/files/")
Then (require 'icicles) or `M-x load-library icicles'.
This is described here:
https://www.emacswiki.org/emacs/Icicles#ObtainingAndInstalling
___
Of course, it's better to byte-compile the files,
if you want to do more than just give Icicles a
quick try.
You can byte-compile Icicles after you've loaded
it (source files).
Or you can do it anytime. But you must always
have loaded `icicles-mac.el', to be able to
byte-compile any of the source files (including
`icicles-mac.el' itself).
This is described here:
https://www.emacswiki.org/emacs/Icicles_-_Libraries#byte-compile
E.g., just Dired the directory with the files,
mark them, and `B' to byte-compile them.
(After having loaded `icicles-mac.el'.)
You can see other reminders of the need to first
load `icicles-mac.el' in the source files. E.g.:
;; ******************
;; NOTE: Whenever you update Icicles (i.e., download
;; new versions of Icicles source files), I recommend
;; that you do the following:
;;
;; 1. Delete all existing byte-compiled Icicles
;; files (icicles*.elc).
;; 2. Load Icicles (`load-library' or `require').
;; 3. Byte-compile the source files.
;;
;; In particular, always load `icicles-mac.el' (not
;; `icicles-mac.elc') before you byte-compile new
;; versions of the files, in case there have been any
;; changes to Lisp macros (in `icicles-mac.el').
;; ******************
(This isn't special to Icicles; it's just standard
Lisp practice.)
___
FYI: This is the code in `icicles.el' that loads
the other files when you load it:
;;; Load other Icicles files
(eval-when-compile
(or (condition-case nil
;; Use load-library to ensure latest .elc.
(load-library "icicles-mac")
(error nil))
;; Require, so can load separately if not on `load-path'.
(require 'icicles-mac)))
(require 'icicles-face)
(require 'icicles-opt) ;; Requires face
(require 'icicles-var) ;; Requires opt
(require 'icicles-fn) ;; Requires mac, opt, var
(require 'icicles-mcmd) ;; Requires mac, opt, var, fn
(require 'icicles-cmd1) ;; Requires mac, opt, var, fn, mcmd
(require 'icicles-cmd2) ;; Requires mac, opt, var, fn, mcmd, cmd1
(require 'icicles-mode) ;; Requires mac, face, opt, cmd1, cmd2
___
HTH. If you have some follow-up, I think you
can drop the ccing of help-gnu-emacs@gnu.org.
- Icicles, Gottfried, 2023/01/29
- RE: [External] : Icicles,
Drew Adams <=