EMACS, Libraries, Examples

110 views
Skip to first unread message

ast

unread,
Dec 1, 2010, 1:39:10 AM12/1/10
to eql-user
Simple, but vital for novice questions:


= 1. EMACS =
From which point manage Emacs
Emacs not react to
c:\.emacs

File C:\Documents and Settings\Administrator\Application Data\.emacs
not exist (by coping also fron this directory not to act).


= 2. Libraries =

What to do with packages in file
http://createuniverses.googlecode.com/files/packages.zip

Where located lisp libraries in c:/ecl or c:/eql



= 3. Examples =

Not work 6-download.lisp

#<a SIMPLE-ERROR>
EQL module :network could not be found/loaded


In which and how file insert parameter XDG_CACHE_HOME
c:\ecl\contrib\asdf\asdf.lisp


Exist example aka (draw-line ...)

Polos Ruetz

unread,
Dec 1, 2010, 4:10:59 AM12/1/10
to eql-user
On 1 Dic, 07:39, ast <yli...@ya.ru> wrote:
> = 1. EMACS =
> From which point manage Emacs
> Emacs not react to
> c:\.emacs

This can not be generally answered (as there are many versions of
Emacs out there), and I'm no expert for Emacs on Windows.
Did you try this (as proposed in the "Windows Easy Guide"):

Run Emacs and select "Options / Save Options"; then create the file
".emacs" in the same directory where you find the ".emacs.d" directory
(it may be necessary to tweak the Windows Explorer options, in order
to see all system/hidden files).


> = 2. Libraries =
>
> What to do with packages in filehttp://createuniverses.googlecode.com/files/packages.zip
>
> Where located lisp libraries in c:/ecl or c:/eql

I would suggest do save them in a directory like "C:\ASDF". Anyway,
you will need to use ASDF for loading these packages, so please see
the ASDF documentation.


> = 3. Examples =
>
> Not work 6-download.lisp
>
> #<a SIMPLE-ERROR>
> EQL module :network could not be found/loaded

You need to build the network module first, see "QT MODULES" in "C:\eql
\README.txt".


> In which and how file insert parameter XDG_CACHE_HOME
> c:\ecl\contrib\asdf\asdf.lisp

In Windows you have a dialog where you can set your "environment
variables" (like Path, TEMP etc.).
In this dialog, add a new one, where the "name" is "XDG_CACHE_HOME"
and the "value" is any temporary path (without spaces), like "C:
\Temp".


> Exist example aka (draw-line ...)

Sorry, what do you mean exactly?


Paul

ast

unread,
Dec 1, 2010, 12:58:17 PM12/1/10
to eql-user
Dear Paul
Thanks for answer.
About result communicate later.

Then I ask about elementary graphic functions
such as: draw-line, draw-circle, draw-rectangle etc
therefore I can't seen it in Qt.

Vladimir

Polos Ruetz

unread,
Dec 1, 2010, 3:03:26 PM12/1/10
to eql-...@googlegroups.com
2010/12/1, ast <yli...@ya.ru>:

> Then I ask about elementary graphic functions
> such as: draw-line, draw-circle, draw-rectangle etc
> therefore I can't seen it in Qt.

Did you look at the code of the example "clock.lisp"? It uses e.g
"drawLine", "drawEllipse".

To learn more about graphics in Qt, search for QPainter and
QGraphicsView in Qt Assistant.

Paul

ast

unread,
Dec 2, 2010, 12:12:27 PM12/2/10
to eql-user
EMACS, Libraries, Examples II

Now clear all, and reinstall
(eql set in directory c:/ecl/eql/...).

All examples, without complex work from
eql gui. As I understand for complex example
and ALEXANDRIA need SLIME.

In Emacs by loading SLIME error:
After "M-x SLIME":



;;; End of Pass 1.
;;; Note:
;;; Invoking external command:
;;; cl -I"c:/ecl/msvc/package/" /EHsc /DGC_DLL /DGC_BUILD /nologo /
D_CRT_SECURE_NO_DEPRECATE /Zm300 /DNDEBUG /MD /O2 /O2 -w -c "C:/emacs/
slime/fasl/swank-backend.c" -Fo"C:/emacs/slime/fasl/swank-backend.obj"
;;; "cl" ­Ґ пў«пҐвбп ў­гв७­Ґ© Ё«Ё ў­Ґи­Ґ©
Є®¬ ­¤®©, ЁбЇ®«­пҐ¬®© Їа®Ја ¬¬®© Ё«Ё Ї ЄҐв­л¬ д ©«®¬.

;;; Note:
;;; Invoking external command:
;;; cl -Fe"C:/emacs/slime/fasl/swank-backend.fas" "C:/emacs/slime/
fasl/swank-backend.obj" /LD /link /incremental:no /nologo /
nodefaultlib:libcmt /nodefaultlib:libcmtd /nodefaultlib:libc /
nodefaultlib:libcd /nodefaultlib:msvcrtd.lib ecl.lib user32.lib
ws2_32.lib shell32.lib /EXPORT:init_fas_CODE /LIBPATH:c:/ecl/msvc/
package/ /IMPLIB:C:/emacs/slime/fasl/swank-backend.implib
;;; "cl" ­Ґ пў«пҐвбп ў­гв७­Ґ© Ё«Ё ў­Ґи­Ґ©
Є®¬ ­¤®©, ЁбЇ®«­пҐ¬®© Їа®Ја ¬¬®© Ё«Ё Ї ЄҐв­л¬ д ©«®¬.

;;; Error:
;;; * The C compiler failed to compile the intermediate file.;;
;; Error while compiling c:/emacs/slime/swank-backend.lisp:
;; COMPILE-FILE returned NIL.
;; Aborting.
;;

Restart ABORT is not active.

Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SWANK-LOADER::HANDLE-SWANK-LOAD-ERROR. In: #<process SI:TOP-
LEVEL 00e50fc0>.
File: #P"c:/emacs/slime/swank-loader.lisp" (Position #5821)
>>

Examples f.e.
(load "c:/ecl/eql/examples/1-hello-world.lisp")
by running appear windows and hang up.





Polos Ruetz

unread,
Dec 2, 2010, 2:28:41 PM12/2/10
to eql-...@googlegroups.com
2010/12/2, ast <yli...@ya.ru>:

> EMACS, Libraries, Examples II
>
> Now clear all, and reinstall
> (eql set in directory c:/ecl/eql/...).
>
> All examples, without complex work from
> eql gui. As I understand for complex example
> and ALEXANDRIA need SLIME.

Please note:

1) Only for the OpenGL example you need some external packages (like
alexandria...)

2) SLIME is only needed for interactive development (that is, having a
REPL while a program is running, processing Qt events)


> In Emacs by loading SLIME error:
> After "M-x SLIME":

> ;;; Error:
> ;;; * The C compiler failed to compile the intermediate file.;;
> ;; Error while compiling c:/emacs/slime/swank-backend.lisp:
> ;; COMPILE-FILE returned NIL.

Did you try with the original "swank-backend.lisp" file, or did you
apply the patch for EQL?

Please try with the original swank-backend.lisp first, and only if
this works, apply the EQL patch and try again.


> Examples f.e.
> (load "c:/ecl/eql/examples/1-hello-world.lisp")
> by running appear windows and hang up.

OK, you need to run the examples like this:

C:\eql\eql.exe examples/1-hello-world

That is, don't run EQL and then call LOAD, as this will *not* process
Qt events (that is, the program "freezes", even in summer).

Instead, start EQL and pass the file as command line argument, as in
the example above.
(And please note that you need a slash / and not a backslash \ in
"examples/1-hello-world".)

Paul

ast

unread,
Dec 3, 2010, 11:39:14 AM12/3/10
to eql-user
Dear Paul

What mean:
"Did you try with the original "swank-backend.lisp" file, or did you
apply the patch for EQL?"
"try with the original swank-backend.lisp first"

I not to do, only run from Emacs
M-x
and next enter
slime

Vladimir

ast

unread,
Dec 3, 2010, 11:51:57 AM12/3/10
to eql-user
As I understand by first call SLIME from Emacs
SLIME will compiled by Visual C++ and make .fasl.

So error in tuning Visual C++?

Possible download somewhere directory /SLIME/fasl/
with compiled SLIME?

Vladimir
Message has been deleted

ast

unread,
Dec 4, 2010, 1:12:41 AM12/4/10
to eql-user
Copy files:
swank-backend.c
swank-backend.data
swank-backend.h
swank-backend.obj

in directory:
c:/emacs/slime/fasl

But Emacs not alter its behavior.

My be is reason send all SLIME
with /fasl?


Vladimir

Polos Ruetz

unread,
Dec 4, 2010, 5:25:32 AM12/4/10
to eql-...@googlegroups.com
2010/12/4, ast <yli...@ya.ru>:

> My be is reason send all SLIME
> with /fasl?

Yes, sorry (I should have thought about that), attached you find the
whole thing.

Paul

SLIME-compiled-win32.zip

ast

unread,
Dec 4, 2010, 9:25:53 AM12/4/10
to eql-user
Try 4 Emacs's. As new SLIME directory, as compiled directory appear
error.

If new SLIME directory:
..................................................
;;; End of Pass 1.
;;; Note:
;;; Invoking external command:
;;; cl -I"c:/ecl/msvc/package/" /EHsc /DGC_DLL /DGC_BUILD /nologo /
D_CRT_SECURE_NO_DEPRECATE /Zm300 /DNDEBUG /MD /O2 /O2 -w -c "C:/
TMP/.slime/fasl/2010-11-13/ecl-10.4.1-windows-pentium4/swank-
backend.c" -Fo"C:/TMP/.slime/fasl/2010-11-13/ecl-10.4.1-windows-
pentium4/swank-backend.obj"
;;; "cl" ­? ??«????? ?­????­­?© ?«? ?­??­?©
?®¬ ­¤®©, ???®«­??¬®© ??®?? ¬¬®© ?«? ? ???­?¬ ? ©«®¬.

;;; Note:
;;; Invoking external command:
;;; cl -Fe"C:/TMP/.slime/fasl/2010-11-13/ecl-10.4.1-windows-pentium4/
swank-backend.fas" "C:/TMP/.slime/fasl/2010-11-13/ecl-10.4.1-windows-
pentium4/swank-backend.obj" /LD /link /incremental:no /nologo /
nodefaultlib:libcmt /nodefaultlib:libcmtd /nodefaultlib:libc /
nodefaultlib:libcd /nodefaultlib:msvcrtd.lib ecl.lib user32.lib
ws2_32.lib shell32.lib /EXPORT:init_fas_CODE /LIBPATH:c:/ecl/msvc/
package/ /IMPLIB:C:/TMP/.slime/fasl/2010-11-13/ecl-10.4.1-windows-
pentium4/swank-backend.implib
;;; "cl" ­? ??«????? ?­????­­?© ?«? ?­??­?©
?®¬ ­¤®©, ???®«­??¬®© ??®?? ¬¬®© ?«? ? ???­?¬ ? ©«®¬.

;;; Error:
;;; * The C compiler failed to compile the intermediate file.;;
;; Error while compiling c:/emacs/slime/swank-backend.lisp:
;; COMPILE-FILE returned NIL.
;; Aborting.
;;

Restart ABORT is not active.

Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SWANK-LOADER::HANDLE-SWANK-LOAD-ERROR. In: #<process SI:TOP-
LEVEL 00e50fc0>.
File: #P"c:/emacs/slime/swank-loader.lisp" (Position #5576)
>>
...................................................



If compiled SLIME directory:


.............................................
;;; Loading "C:/emacs/slime/fasl/swank-rpc.fas"
;;; Loading "C:/emacs/slime/fasl/swank.fas"
;;; Warning: These Swank interfaces are unimplemented:
(ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER DUP EXEC-IMAGE
FRAME-CALL
LIST-CALLEES LIST-CALLERS MACROEXPAND-ALL MAKE-FD-STREAM REMOVE-FD-
HANDLERS
REMOVE-SIGIO-HANDLERS RESTART-FRAME RETURN-FROM-FRAME SAVE-IMAGE
SLDB-BREAK-AT-START SLDB-BREAK-ON-RETURN SLDB-STEP-INTO SLDB-STEP-
NEXT
SLDB-STEP-OUT TOGGLE-TRACE)

Filesystem error with pathname "c:\\Documents and Settings\
\Администратор\\Local Settings\\Temp;C!\\Program Files\\Microsoft
Visual Studio 9.0\\VC\\bin;C!\\ecl\\msvc\\package;C!\\qt\\4.7.1\\bin\
\slime.3580".
Either
1) the file does not exist, or
2) we are not allow to access the file, or
3) the pathname points to a broken symbolic link.
Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SWANK::ANNOUNCE-SERVER-PORT. In: #<process SI:TOP-LEVEL
00e50fc0>.
File: "c:/emacs/slime/swank.lisp" (Position #34963)
>>
.............................

Polos Ruetz

unread,
Dec 4, 2010, 11:04:18 AM12/4/10
to eql-user
On Dec 4, 3:25 pm, ast <yli...@ya.ru> wrote:
> Try 4 Emacs's. As new SLIME directory, as compiled directory appear
> error.

(So, it's Saturday, and the only reason I find myself still in front
of some electronic device is -- [me, putting a finger outside an open
window] -- oh, now I remember! Yess, it's really cold outside..)

OK, your SLIME should *not* *compile* *anything* (given our machines
are approximately identical).
If you unzip the compiled SLIME files (from the attachment) into e.g
"C:\emacs", and have a working ".emacs" file, containing:

(add-to-list 'load-path "C:/emacs/slime/")

then, after starting Emacs and starting SLIME, your SLIME should
simply run *without* compiling.

Paul

P.S. Maybe you're trying to learn too many things at once...

I just updated the new example 9 (a simple Lisp editor).
For a newbie, maybe it would be better to just play around with this
example.. [me, saying this for the only egoistical reason to get some
precious feedback..].

;-)

ast

unread,
Dec 4, 2010, 12:05:12 PM12/4/10
to eql-user
Try new example:

Error:
"The function QMETA-ENUMS is undefined."
C:\ecl\eql\eql.exe c:/ecl/eql/examples/9-simple-lisp-editor/
editor.lisp

Work:
C:\ecl\eql\eql.exe c:/ecl/eql/examples/9-simple-lisp-editor/my.lisp

ast

unread,
Dec 4, 2010, 12:15:31 PM12/4/10
to eql-user
Trying Example#9 from OS Windows

/eql/eql.exe -qq
Error: #File not exist"


In EQL>> (EQL:QQ)
Fall out from EQL.

Vladimir

Polos Ruetz

unread,
Dec 4, 2010, 12:16:38 PM12/4/10
to eql-...@googlegroups.com
2010/12/4, ast <yli...@ya.ru>:

> Try new example:
>
> Error:
> "The function QMETA-ENUMS is undefined."
> C:\ecl\eql\eql.exe c:/ecl/eql/examples/9-simple-lisp-editor/
> editor.lisp

Oh, I forgot to mention that you need the new version of EQL from today:

eql.exe --version

should give: EQL 10.12.2 (or use (QVERSION) while running EQL).

So, please download & build the new version from today (please read
the eql/README.txt for the "rebuild" instructions).

Paul

ast

unread,
Dec 4, 2010, 12:33:35 PM12/4/10
to eql-user
"Your SLIME should *not* *compile* *anything* (given our machines
are approximately identical)."

Apparently I destroyed some directory in /Documents and Settings/...
(For this reason reinstal Visual C++.)

I thing this situation connected with mistical Emacs-variable ~
*HOME*.
From some reason in Emacs deep environment probable engade *HOME*,
or other
variable.
Somewhere in Emacs grounded wired directory /Documents and
Settings/...


"P.S. Maybe you're trying to learn too many things at once..."
Now standing two tasks:
1. SLIME
2. Alexandria
I want to start Lisp IDE, next carefully explore its.
This is logical contradiction, first need have working system.

I can explore:
1. Working Tq-examples
2. Emacs

ast

unread,
Dec 4, 2010, 1:27:14 PM12/4/10
to eql-user
First impression from simple editor:

1. In top menu need option "Create file", "Close".

2. In window not work choose by double clicks.

3. c:\ecl\eql\eql -qq not work

3. Work:
c:\ecl\eql\eql.exe --qgui and next
(load "c:/ecl/eql/examples/9-simple-lisp-editor/editor.lisp")

4. File proba.lisp: contain (car '(a b c))
Save an Run - freeze up.

5. Will be command "Eval region"? Eval in prompt?
Message has been deleted
Message has been deleted

ast

unread,
Dec 6, 2010, 2:10:04 PM12/6/10
to eql-user
Dear Paul

After my games with Emacs and cleaning directories
/Documents and Settings/... not connectet with any
Emacs in:
- EQL
- Cabinet
- Lispbox


in Emacs after M-x SLIME appear error:

------
Loading cl-seq...done
Loading c:/Program Files/Lisp Cabinet/cabinet/site/.emacs.d/lisp-
cabinet/set-environment.el (source)...
Loading c:/Program Files/Lisp Cabinet/cabinet/site/.emacs.d/lisp-
cabinet/alien-bind.el (source)...done
save-current-buffer: Opening output file: invalid argument, c:/
Documents and Settings/Администратор/Local Settings/Temp;C:/Program
Files/Microsoft Visual Studio 9.0/VC/bin;C:/ecl/msvc/package;C:/qt/
4.7.1/bin/alien-bind-el.G16900
------

What this means and whaty do me do?

Vladimir

Polos Ruetz

unread,
Dec 6, 2010, 5:47:39 PM12/6/10
to eql-...@googlegroups.com
2010/12/6, ast <yli...@ya.ru>:

> in Emacs after M-x SLIME appear error:
>
> ------
> Loading cl-seq...done
> Loading c:/Program Files/Lisp Cabinet/cabinet/site/.emacs.d/lisp-
> cabinet/set-environment.el (source)...
> Loading c:/Program Files/Lisp Cabinet/cabinet/site/.emacs.d/lisp-
> cabinet/alien-bind.el (source)...done
> save-current-buffer: Opening output file: invalid argument, c:/
> Documents and Settings/Администратор/Local Settings/Temp;C:/Program
> Files/Microsoft Visual Studio 9.0/VC/bin;C:/ecl/msvc/package;C:/qt/
> 4.7.1/bin/alien-bind-el.G16900
> ------
>
> What this means and whaty do me do?

Sorry, I don't know Lisp Cabinet.
Maybe you should ask its author, his mail address is at the bottom of this page:

http://lispcabinet.sourceforge.net/

Paul

Polos Ruetz

unread,
Dec 7, 2010, 3:34:57 PM12/7/10
to eql-user
On Dec 4, 7:27 pm, ast <yli...@ya.ru> wrote:
> First impression from simple editor:

Your feedback has been useful, so if you want to try it out, there is
a fresh new version (still very experimental) on gitorious (EQL
10.12.3, you'll need to rebuild EQL):

- you now can easily build a EXE for the editor
- a simple "Eval Region" works now

A simple example:

- run the "my.lisp" example
- type some text in the QLineEdit
- change the line
(qset *line-edit* "echoMode" "Password") to:
(qset *line-edit* "echoMode" "Normal")
- move the cursor to the closing right paren of the above line
- hit keys: Ctrl+Return
- what happens?

Paul

ast

unread,
Dec 8, 2010, 12:39:55 PM12/8/10
to eql-user
1. Anywhere not indicated version EQL.

2. I think such project need some great
fascination idea f.e. visualisation
artistic rebdering 3D semantic nets.

3. (qq) - fall out
eql> eql - fall uot
(load "c:/ecl/eql/examples/9-simple-lisp-editor/editor.lisp") - not
find file from qgui
in ecl promt not work

4. First time work qgui, after try qq
next not work qgui.

5. Its good write operation chain after compilation
in operation system and alternative in ecl.

Polos Ruetz

unread,
Dec 9, 2010, 3:49:22 AM12/9/10
to eql-...@googlegroups.com
2010/12/8, ast <yli...@ya.ru>:

> 1. Anywhere not indicated version EQL.

variant 1:
eql.exe --version

variant 2: (will print both EQL and Qt version)
> (eql:qversion)


> 3. (qq) - fall out
> eql> eql - fall uot
> (load "c:/ecl/eql/examples/9-simple-lisp-editor/editor.lisp") - not
> find file from qgui

It's simple:

- make sure you have the EQL directory in your Path environment
variable (the directory containing both eql.exe and eql.dll)

- change to the directory of the example:
cd C:\eql\examples\9-simple-lisp-editor

- start the editor with:
eql.exe run.lisp

Paul

Polos Ruetz

unread,
Dec 9, 2010, 4:17:08 AM12/9/10
to eql-user
On 8 Dic, 18:39, ast <yli...@ya.ru> wrote:
> 1. Anywhere not indicated version EQL.

OK thanks, but I will not manually add it somewhere, and then forget
to update it...
But there is a simple solution:

http://gitorious.com/eql/eql/blobs/master/src/eql.cpp

Run this pseudo code in your brain:

GOTO LINE 10
READ

Paul

ast

unread,
Dec 14, 2010, 12:10:10 AM12/14/10
to eql-user
First time run /bin/emacs.exe from command line Visual Studio for
compiling SLIME.
Reply all
Reply to author
Forward
0 new messages