Re: [Ecls-list] slime-edit-definition does not work perfectly with ECL

2012-12-02 Thread Juan Jose Garcia-Ripoll
On Fri, Nov 30, 2012 at 1:31 PM, Stanislav Frolov frolosof...@gmail.comwrote:

 slime-edit-definition foo - No known definition for: foo
 The expected behavior - move cursor to start of (defun foo...


https://sourceforge.net/p/ecls/bugs/220/
Thanks for reporting

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
Keep yourself connected to Go Parallel: 
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net/___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SLIME, WITH-OPEN-FILE: error in process filter: Wrong number of arguments: nil, 127

2012-10-30 Thread Juan Jose Garcia-Ripoll
On Tue, Oct 30, 2012 at 2:41 AM, Matthew Mondor mm_li...@pulsar-zone.netwrote:

 With in swank-ecl.lisp:

 (defimplementation arglist (name)
   (let ((arglist (ext:get-annotation name :lambda-list nil)))
 (if (null arglist)
 :not-available
 arglist)))

 And your latest changes, it's very nice so far.


The original code works for me just fine

(defimplementation arglist (name)
  (multiple-value-bind (arglist foundp)
  (ext:function-lambda-list name)
(if foundp arglist :not-available)))

Does it not in your system?

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SLIME, WITH-OPEN-FILE: error in process filter: Wrong number of arguments: nil, 127

2012-10-30 Thread Matthew Mondor
On Tue, 30 Oct 2012 11:50:17 +0100
Juan Jose Garcia-Ripoll juanjose.garciarip...@gmail.com wrote:

 The original code works for me just fine
 
 (defimplementation arglist (name)
   (multiple-value-bind (arglist foundp)
   (ext:function-lambda-list name)
 (if foundp arglist :not-available)))
 
 Does it not in your system?

I confirm it works fine again, thanks!
-- 
Matt

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SLIME, WITH-OPEN-FILE: error in process filter: Wrong number of arguments: nil, 127

2012-10-27 Thread Juan Jose Garcia-Ripoll
On Tue, Oct 23, 2012 at 5:54 PM, Matthew Mondor mm_li...@pulsar-zone.netwrote:


 So I today had some time to do a small test and the following function
 indeed seems to work better in general.

 (defimplementation arglist (name)
   (let ((arglist (ext:get-annotation name :lambda-list nil)))
 (if (or (null arglist) (stringp arglist))
 :not-available
 arglist)))


I have fixed instead the ECL documentation database so that _all_ lambda
lists are kept as lists, including those that describe the syntax of
special operators. Please test and report whether this works for you.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SLIME, WITH-OPEN-FILE: error in process filter: Wrong number of arguments: nil, 127

2012-10-23 Thread Matthew Mondor
On Sun, 21 Oct 2012 12:20:33 -0400
Matthew Mondor mm_li...@pulsar-zone.net wrote:

 On Sat, 20 Oct 2012 22:19:46 +0400
 Stas Boukarev stass...@gmail.com wrote:
 
   The problem is that sys:function-lambda-list doesn't like macros or
   special operators anymore. Clearly, the name suggests that it takes
   functions, but it used to work on non-functions before this change:
   http://sourceforge.net/p/ecls/ecl/ci/b1ec23bce8a385251f14b278c080e22e459cc70f/tree/src/lsp/top.lsp?diff=8b1c6a203919bdfd6da989565e53bd149dad7e1b
  It's possible to use (ext:get-annotation operator :lambda-list nil), but
  it returns a string for LET
  (ext:get-annotation 'let :lambda-list nil)
  =
  (let ({var | (var [init])}*) {decl}* {form}*)
 
 Thanks for the details.  Although I don't get errors for other common
 macros, I noticed that documentation is not shown for macros such as
 PUSH or PUSHNEW as well, which this also explains.

So I today had some time to do a small test and the following function
indeed seems to work better in general.

(defimplementation arglist (name)
  (let ((arglist (ext:get-annotation name :lambda-list nil)))
(if (or (null arglist) (stringp arglist))
:not-available
arglist)))

Thanks again,
-- 
Matt

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


[Ecls-list] SLIME, WITH-OPEN-FILE: error in process filter: Wrong number of arguments: nil, 127

2012-10-15 Thread Matthew Mondor
Hello,

Anyone also experience the above error, along with a delay, and if
typing during that delay, lost characters?  Most notably when typing
inside a WITH-OPEN-FILE macro, but I know it also happened in a few
other cases, although I forgot where.


This is using a fairly recent SLIME and quite recent ECL (although that
problem exists since some time).  In case it matters, this is using
emacs-23 (console/nox11), attached is ~/.emacs


And the .emacsrc only has: (require :asdf)


In the extra lisp buffers I can see:

error in process filter: if: Wrong number of arguments: nil, 137
error in process filter: Wrong number of arguments: nil, 137

(:emacs-rex
 (swank:autodoc
  '(defun test nil
(with-open-file
 (s \/tmp/crow-httpd-logo.png\ :direction :input)
  swank::%cursor-marker%))
  :print-right-margin 239)
 :gd t 4966)
(:return
 (:ok Arglist Error: \In function STRUCTURE-REF, the value of the first 
argument is\n  :NOT-AVAILABLE\nwhich is not of the expected type ARGLIST\)
 4966)
(:emacs-rex
 (swank:autodoc
  '(defun test nil
(with-open-file
 (s \/tmp/crow-httpd-logo.png\ :direction :input)
  swank::%cursor-marker%))
  :print-right-margin 239)
 :gd t 4967)
(:return
 (:ok Arglist Error: \In function STRUCTURE-REF, the value of the first 
argument is\n  :NOT-AVAILABLE\nwhich is not of the expected type ARGLIST\)
 4967)


Thanks,
-- 
Matt

(defun myframes-3 ()
  (split-window-horizontally 78)
  (other-window 1)
  (split-window-horizontally 78)
  (other-window 1)
  (split-window-vertically 40)
  (other-window 1))

(defun myframes-2 ()
  (split-window-horizontally 80)
  (other-window 1)
  (split-window-vertically 40)
  (other-window 1))

(defun myframes-1 ()
  (split-window-vertically 40)
  (other-window 1))

(defun myframes ()
  Restores custom frame layout.
  (interactive)
  (delete-other-frames)
  (let ((width (frame-width (selected-frame
(cond
 (( width 164) (myframes-3))
 (( width 118) (myframes-2))
 (t (myframes-1)
(myframes)

(global-set-key [begin] 'beginning-of-line)


(set-language-environment UTF-8)
(setq slime-net-coding-system 'utf-8-unix)

(setq common-lisp-hyperspec-root
  file:///data/doc/CommonLisp/HyperSpec/HyperSpec/)
(setq browse-url-browser-function 'browse-url-generic
  browse-url-generic-program /usr/local/libexec/tmux-lynx.sh)
(setq inferior-lisp-program /usr/local/ecl/bin/ecl)
(add-to-list 'load-path ~/emacs-scripts)
(add-to-list 'load-path ~/emacs-scripts/slime)
(require 'slime)
(slime-setup '(slime-fancy slime-asdf))
(slime)

(autoload 'paredit-mode paredit
  Minor mode for pseudo-structurally editing Lisp code.
  t)

(global-font-lock-mode t)
(show-paren-mode t)

(require 'parenface)
(load-file /usr/share/misc/NetBSD.el)

(menu-bar-mode nil)
(iswitchb-mode t)
(line-number-mode t)
(column-number-mode t)
(transient-mark-mode t)

(require 'font-lock)
(font-lock-add-keywords
'c-mode
'(((XXX\\) 1 highlight t)))
(font-lock-add-keywords
'lisp-mode
'(((XXX\\) 1 highlight t)))

(setq inhibit-splash-screen t)

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] Slime question: running swank in thread: Linux :) Windows :(

2012-08-18 Thread Polos Ruetz
2012/8/18, Juan Jose Garcia-Ripoll juanjose.garciarip...@gmail.com:
 The problem was with LISTEN. On Windows sockets it was broken and returned
 true when it shouldn't.

 Slime now works for me on the Windows box (MSVC port).

Thanks, confirmed: it works for me too!

Paul

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


[Ecls-list] Slime lambda-list auto-help

2012-05-16 Thread Matthew Mondor
Hello again,

Although it's a minor issue, I noticed lately that when entering Lisp
the following form using latest ECL (head) and latest Slime, I'm
getting the following error in the command buffer:

(with-open-file 

error in process filter: Wrong number of arguments: nil, 137

I'm not sure if the problem is in Slime or in ECL.

Also, is it expected that this help only is available for
implementation functions and bytecode compiled custom fonctions?  I
built my code with the debug level 3, but I cannot get that automatic
interactive help for the functions of those files.

Example:

(defun foo (a b c)
  (list a b c))

(foospace[I get the lambda-list help here]

(compile 'foo)

(foospace[I no longer get it]

Thanks,
-- 
Matt

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] SLIME miscompiled in ECL 12.2.1

2012-04-20 Thread Juan Jose Garcia-Ripoll
On Sun, Feb 5, 2012 at 1:51 PM, Xiaofeng Yang n.akr.aki...@gmail.comwrote:

 The problem occurs in the newest SLIME (snapshot 2012-01-06) and the
 snapshot on 2011-10-19(this one can be compiled using C compiler of ECL
 11.1.1), using bytecode compiler.
 Both of the snapshots I fetched from
 http://common-lisp.net/project/slime/snapshots/slime-current.tgz .


I am sorry for the long delay. I have been using successfully both Slime
and ECL from git/CVS in bytecompiled mode. Previous problems have been
solved and only the unstable version of Slime includes the fixes needed to
work with ECL.

Note however that those claims of stability only apply to my current
development platform (OS X + Aquamacs). I still need to do further testing
on the remaining platforms.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


[Ecls-list] SLIME miscompiled in ECL 12.2.1

2012-02-05 Thread Xiaofeng Yang
The problem occurs in the newest SLIME (snapshot 2012-01-06) and the
snapshot on 2011-10-19(this one can be compiled using C compiler of ECL
11.1.1), using bytecode compiler.
Both of the snapshots I fetched from
http://common-lisp.net/project/slime/snapshots/slime-current.tgz .

(progn (load c:/mefcl/emacs/home/slime-current/swank-loader.lisp :verbose
t) (funcall (read-from-string swank-loader:init)) (funcall
(read-from-string swank:start-server)
c:/Users/stlxv/AppData/Local/Temp/slime.5548))

ECL (Embeddable Common-Lisp) 12.2.1 (git:UNKNOWN)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.
Top level in: #process TOP-LEVEL.

;;; Loading c:/mefcl/emacs/home/slime-current/swank-loader.lisp
;;; Compiling c:/mefcl/emacs/home/slime-current/swank-backend.lisp
;;; Compiling #input stream
c:/mefcl/emacs/home/slime-current/swank-backend.lisp
;;; Loading
C:/mefcl/emacs/home/.slime/fasl/2012-01-06/ecl-12.2.1-windows-pentium3/swank-backend.fasc
;;; Compiling
c:/mefcl/emacs/home/slime-current/swank-source-path-parser.lisp
;;; Compiling #input stream
c:/mefcl/emacs/home/slime-current/swank-source-path-parser.lisp
;;; Loading
C:/mefcl/emacs/home/.slime/fasl/2012-01-06/ecl-12.2.1-windows-pentium3/swank-source-path-parser.fasc
;;; Compiling c:/mefcl/emacs/home/slime-current/swank-source-file-cache.lisp
;;; Compiling #input stream
c:/mefcl/emacs/home/slime-current/swank-source-file-cache.lispNo class
named SWANK-BACKEND::SOURCE-CACHE-ENTRY.
NIL
Condition of type: SIMPLE-CONDITION
Break

Available restarts:

1. (CONTINUE) Return from BREAK.
2. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SWANK-LOADER::COMPILE-FILES. In: #process TOP-LEVEL.
 File: #Pc:/mefcl/emacs/home/slime-current/swank-loader.lisp (Position
#6094)


I don't know how to find the source code at (Position #6094), but I found
the definition of SOURCE-CACHE-ENTRY in the file
`swank-source-file-cache.lisp'. That is,
(defstruct (source-cache-entry
 (:conc-name source-cache-entry.)
 (:constructor make-source-cache-entry (text date)))
  text date)



 Best regards,
Xiaofeng Yang


swank-source-file-cache.lisp
Description: Binary data
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] slime

2012-01-15 Thread Alessandro Serra
Hi Juanjo,
it is the package named swank. It downloads all slime files.
Or, to install and configure SLIME in one step, you can use:
(ql:quickload quicklisp-slime-helper)

Alessandro

On Sun, Jan 15, 2012 at 12:55 AM, Juan Jose Garcia-Ripoll
juanjose.garciarip...@googlemail.com wrote:
 Thanks for reporting this problem, Alessandro. I will look into it.

 BTW, how does one use the slime from quicklisp? I have always relied on
 the CVS version, but it would be nice to be able to test the one in this
 distribution as well.

 Juanjo

 --
 Instituto de Física Fundamental, CSIC
 c/ Serrano, 113b, Madrid 28006 (Spain)
 http://juanjose.garciaripoll.googlepages.com



-- 
The basic tool for the manipulation of reality is the manipulation of
words. If you can control the meaning of words, you can control the
people who must use the words.
                   How To Build A Universe That Doesn't Fall Apart Two
Days Later
                   Philip K. Dick

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


[Ecls-list] slime

2012-01-14 Thread Alessandro Serra
Hi all,
I had a problem with the last version of slime (the one used by
quickload) and the cvs of ecl.
Ecl generates a memory condition in cl-peek-char.
I fixed it adding the :element-type key to the socket-accept function
in the swank-ecl.lisp.

-
 (defimplementation accept-connection (socket
  key external-format
  buffering timeout)
  (declare (ignore timeout))
  (sb-bsd-sockets:socket-make-stream (accept socket)
 :output t
 :input t
 :buffering (ecase buffering
  ((t) :full)
  ((nil) :none)
  (:line line))
 :external-format external-format
 :element-type '(unsigned-byte 8)))


You can test the bug using the following code:


(defun accept-connection (socket)
  (sb-bsd-sockets:socket-make-stream
   (sb-bsd-sockets:socket-accept socket)
   :output t
   :input t
   :buffering :full
   :external-format nil
;   :element-type '(unsigned-byte 8)))
   ))

(defun resolve-hostname (name)
  (car (sb-bsd-sockets:host-ent-addresses
(sb-bsd-sockets:get-host-by-name name

(defun create-socket ()
  (let ((socket (make-instance 'sb-bsd-sockets:inet-socket
   :type :stream
   :protocol :tcp)))
(setf (sb-bsd-sockets:sockopt-reuse-address socket) t)
(sb-bsd-sockets:socket-bind socket (resolve-hostname 127.0.0.1) 5000)
(sb-bsd-sockets:socket-listen socket 1)
socket))

(defun test ()
  (let ((socket (create-socket)))
(format t created~%)
(let ((stream (accept-connection socket))
  (length 5))
  (format t accepted~%)
  (let* ((buffer (make-array length
 :initial-element 0
 :element-type '(unsigned-byte 8)))
 (count (read-sequence buffer stream)))
(format t ~A~% buffer)))
(sb-bsd-sockets:socket-close socket)))

(test)
---

Best Regards,
Alessandro

-- 
The basic tool for the manipulation of reality is the manipulation of
words. If you can control the meaning of words, you can control the
people who must use the words.
                   How To Build A Universe That Doesn't Fall Apart Two
Days Later
                   Philip K. Dick

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] Slime build failure (Was: Project status)

2010-12-12 Thread Juan Jose Garcia-Ripoll
On Sun, Dec 12, 2010 at 5:23 AM, Matthew Mondor mm_li...@pulsar-zone.netwrote:

 On Sat, 11 Dec 2010 14:55:21 -0500
 Matthew Mondor mm_li...@pulsar-zone.net wrote:

  I'll also try with an up to date slime when I have more time, but I
  wanted to post this in case the origin of the problem seems obvious to
  others.

 It also happens with today's SLIME CVS HEAD and an empty ~/.eclrc


I identified the problem and fixed it. Slime is building pathnames with
components of type (array character (*)) while the operating system (or at
least the ECL routines) only accept (array base-char (*)). I have added a
filter that coerces all strings in pathnames to the second type if possible.
If it is not possible, then those filenames are using characters beyond the
256 lowest Unicode codepoints, which is not accepted by ECL.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev ___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] Slime build failure (Was: Project status)

2010-12-11 Thread Matthew Mondor
On Sat, 11 Dec 2010 14:55:21 -0500
Matthew Mondor mm_li...@pulsar-zone.net wrote:

 I'll also try with an up to date slime when I have more time, but I
 wanted to post this in case the origin of the problem seems obvious to
 others.

It also happens with today's SLIME CVS HEAD and an empty ~/.eclrc
-- 
Matt

--
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list


Re: [Ecls-list] Slime ECL

2010-09-28 Thread Alexander Gavrilov
Hi,

I've noticed that the slime debugger crashes when attempting
to display the variables for some bytecode compiled function.
This happens because bytecode closures for local flets appear
in the variable binding list. I have patched it in my local
copy of slime, but it would be nice if a permanent fix could
be developed:

@@ -440,11 +440,11 @@
 (defun frame-decode-env (frame)
   (let ((functions '())
 (blocks '())
 (variables '()))
 (setf frame (si::decode-ihs-env (second frame)))
-(dolist (record frame)
+(dolist (record (remove-if-not #'consp frame))
   (let* ((record0 (car record))
 (record1 (cdr record)))
(cond ((or (symbolp record0) (stringp record0))
   (setq variables (acons record0 record1 variables)))
  ((not (si::fixnump record0))

Alexander

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list