Re: darcs snapshot building error with lua 5.1

2006-05-18 Thread Matthieu Moy
csant [EMAIL PROTECTED] writes:

 Still failing with the same error after applying the patch to a clean
 tree  before running autoreconf.

Then, can you try this one (on a clean tree):

--- old-ion-3/configure.ac  2006-05-18 13:21:14.347139320 +0200
+++ new-ion-3/configure.ac  2006-05-18 13:21:14.400131264 +0200
@@ -244,14 +244,14 @@
 elif test x$with_lua_prefix != x; then
 LUA_LIBS=-L$with_lua_prefix/lib
 fi
+AC_CHECK_LIB([m], [exp], [lua_extra_libs=$lua_extra_libs -lm], [])
+AC_CHECK_LIB([dl], [dlopen], [lua_extra_libs=$lua_extra_libs -ldl], [])
 AC_CHECK_LIB([lua$with_lua_suffix],
  [lua_call],
- [LUA_LIBS=$LUA_LIBS -llua$with_lua_suffix],
+ [LUA_LIBS=$LUA_LIBS -llua$with_lua_suffix $lua_extra_libs],
  [AC_MSG_ERROR([*** Can't find lua_call in lua$with_lua_suffix.
   *** Check for liblua installation or --with-lua-libraries or 
--with-lua-suffix options])],
- [$LUA_LIBS])
-AC_CHECK_LIB([dl], [dlopen], [lua_extra_libs=$lua_extra_libs -ldl], [])
-AC_CHECK_LIB([m], [exp], [lua_extra_libs=$lua_extra_libs -lm], [])
+ [$LUA_LIBS $lua_extra_libs])
 dnl }}}
 
 dnl liblua_version {{{



If it doesn't work, it'd be great if you can investigate a bit on your
side. AIUI, you need to add -lm to the command line compiling the
test (the one that appears here in config.log:
configure:5837: checking for lua_call in -llua5.1
configure:5867: gcc -o conftest -g -O2   conftest.c -llua5.1  -lm  5
configure:5873: $? = 0
)

Thanks a lot,

-- 
Matthieu


Re: darcs snapshot building error with lua 5.1

2006-05-18 Thread Tuomo Valkonen
On 2006-05-18 10:03 +0200, Matthieu Moy wrote:
 csant [EMAIL PROTECTED] writes:
 
  Still failing with the same error after applying the patch to a clean
  tree  before running autoreconf.
 
 Then, can you try this one (on a clean tree):

If you people can fix this issue, I'll make a new release.

-- 
Tuomo


detach.lua broken after upgrade to lua 5.1

2006-05-18 Thread csant

Hi,

detach.lua script got broken after switching to lua 5.1 in late darcs  
pulls, with error
	/usr/local/bin/ion3: /home/csant/.ion3/default-session--0/detach.lua:192:  
attempt to call a table value



/c


Re: Lua 5.1 switch and the scripts repository

2006-05-18 Thread Jürgen Hötzel
On Thu, May 18, 2006 at 06:08:41PM +, Tuomo Valkonen wrote:
 Please notice that many of the scripts in the Ion scripts repository
 may have stopped working after the switch to Lua 5.1. They should
 be updated appropriately. The most important incompatibility is
 that the syntax
 
   for k, v in t do ... end
 
 for iterating the table t is no longer supported. Instead, one 
 must explicitly use an iterator:
 
   for k, vin ipairs(table) do ... end.
   ^^
this is only for iterating arrays. You probably want

for k, v in pairs(table) do ... end

if you have arbitrary keys instead of ordered integer index keys (1,2,3...)

Jürgen





Re: detach.lua broken after upgrade to lua 5.1

2006-05-18 Thread Matthieu Moy
csant [EMAIL PROTECTED] writes:

 Hi,

 detach.lua script got broken after switching to lua 5.1 in late darcs
 pulls, with error
   /usr/local/bin/ion3:
   /home/csant/.ion3/default-session--0/detach.lua:192:  attempt
   to call a table value

I have no time to fix this now, I'll probably do it when the snapshot
arrives in Debian if no one did it before.

-- 
Matthieu


ion-3ds-20060519

2006-05-18 Thread Tuomo Valkonen

Some notable changes in this release include

 * Lua 5.1 is now required.

 * Framed transients on by default now. New binding context
   WFrame.toplevel and WMPlex.toplevel were added to allow
   for separate sets of bindings for nested transient frames and
   top-level frames. Some of the bindings in the default binding
   maps that are likely to be unwanted on transient frames were
   moved to this contexts. Old custom bindings will continue to
   work unless they modify the defaults by unbinding some of the
   moved bindings.

 * Pressing Mod1+K K in the default bindings now switches to any
   region with the activity flag set (indicated by the a box
   at a corner of the screen), if there's one, before cycling to
   previously active region. The same effect can be achieved in
   your custom bindings with

ioncore.activity_goto() or ioncore.goto_previous()

-- 
Tuomo