From deepak at gnumonk.com Tue Dec 6 12:55:57 2011 From: deepak at gnumonk.com (Deepak Tripathi) Date: Tue, 06 Dec 2011 18:25:57 +0530 Subject: [clfswm-devel] clfswm and FreeBSD Message-ID: <87ehwhrh9e.fsf@debian.jnpr.net> Team, I have tried clfswm on FreeBSD and found that after configure the generated shell file is only meant for GNU systems. I have made a patch to work with FreeBSD box. --- clfswm 2011-12-06 17:46:35.000000000 +0530 +++ clfswm.orig 2011-12-01 14:56:44.000000000 +0530 @@ -1,4 +1,4 @@ -#!/usr/local/bin/bash -e +#!/bin/bash -e # # (C) 2008 Xavier Maillard # @@ -37,7 +37,7 @@ lisp="clisp" # +config+ lisp_bin="" # +config+ lisp_opt="" # +config+ -dump_path="$HOME/clfswm/" # +config+ +dump_path="$XDG_CACHE_HOME/clfswm/" # +config+ clfswm_asd_path="/home/gnmk/clfswm/lib/clfswm" # +config+ asdf_path="/home/gnmk/clfswm/lib/clfswm/contrib" # +config+ I don't find $XDG_CACHE_HOME, also i have chooses sblc to run clfwsm. -- ,---- | Life's Too Short, Write Fast Code, Use emacs :) | Deepak Tripathi(gnumonk) | irc: irc.debian.org | nick: deepak, gnumonk | irc: irc.freenode.com | nick: gnumonk | web: http://www.gnumonk.com `---- From pbrochard at common-lisp.net Tue Dec 6 22:51:09 2011 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Tue, 06 Dec 2011 23:51:09 +0100 Subject: [clfswm-devel] clfswm and FreeBSD In-Reply-To: <87ehwhrh9e.fsf@debian.jnpr.net> (Deepak Tripathi's message of "Tue, 06 Dec 2011 18:25:57 +0530") References: <87ehwhrh9e.fsf@debian.jnpr.net> Message-ID: <87hb1dmi02.fsf@common-lisp.net> Deepak Tripathi writes: > Team, > Hi, welcome on this list. > I have tried clfswm on FreeBSD and found that after configure the > generated shell file is only meant for GNU systems. > > I have made a patch to work with FreeBSD box. > Thanks, what about a platform specific test ? if $XDG_CACHE_HOME is defined, use it else switch to $HOME/.clfswm Note that you can change this at configure time with the -d or --dump-path options. [...] > I don't find $XDG_CACHE_HOME, also i have chooses sblc to run clfwsm. > There is (at least) another thing which is maybe platform specific. Please can you test the standard menu (Second Mode, Control+m, d). clfswm use the content of the $XDG_DATA_DIRS (bound normally to /usr/share/applications/). Thanks a lot for your report. Philippe From deepak at gnumonk.com Wed Dec 7 08:40:28 2011 From: deepak at gnumonk.com (Deepak Tripathi) Date: Wed, 07 Dec 2011 14:10:28 +0530 Subject: [clfswm-devel] clfswm and FreeBSD In-Reply-To: <87hb1dmi02.fsf@common-lisp.net> (Philippe Brochard's message of "Tue, 06 Dec 2011 23:51:09 +0100") References: <87ehwhrh9e.fsf@debian.jnpr.net> <87hb1dmi02.fsf@common-lisp.net> Message-ID: <87aa74ixkz.fsf@debian.jnpr.net> Hi Philippe, > Deepak Tripathi writes: > >> Team, >> > Hi, welcome on this list. Thanks > >> I have tried clfswm on FreeBSD and found that after configure the >> generated shell file is only meant for GNU systems. >> >> I have made a patch to work with FreeBSD box. >> > Thanks, what about a platform specific test ? > if $XDG_CACHE_HOME is defined, use it else switch to $HOME/.clfswm > Note that you can change this at configure time with the -d or > --dump-path options. Ok I can make it work while using ./configure , but it should be automate, since newbie user will not think about changing the source file, he/she will just run the file with either .xinitrc or .xsession, and the error you will get that "you don't have permission to create dir". > > [...] > >> I don't find $XDG_CACHE_HOME, also i have chooses sblc to run clfwsm. >> > There is (at least) another thing which is maybe platform specific. > Please can you test the standard menu (Second Mode, Control+m, d). > clfswm use the content of the $XDG_DATA_DIRS (bound normally to > /usr/share/applications/). I have tried Alt +T , Control+m, d, Nothing is happening, frame stays in Second mode only. > > Thanks a lot for your report. > > Philippe > > _______________________________________________ > clfswm-devel mailing list > clfswm-devel at common-lisp.net > http://lists.common-lisp.net/cgi-bin/mailman/listinfo/clfswm-devel -- ,---- | Life's Too Short, Write Fast Code, Use emacs :) | Deepak Tripathi(gnumonk) | irc: irc.debian.org | nick: deepak, gnumonk | irc: irc.freenode.com | nick: gnumonk | web: http://www.gnumonk.com `---- From pbrochard at common-lisp.net Wed Dec 7 09:11:37 2011 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Wed, 07 Dec 2011 10:11:37 +0100 Subject: [clfswm-devel] clfswm and FreeBSD In-Reply-To: <87aa74ixkz.fsf@debian.jnpr.net> (Deepak Tripathi's message of "Wed, 07 Dec 2011 14:10:28 +0530") References: <87ehwhrh9e.fsf@debian.jnpr.net> <87hb1dmi02.fsf@common-lisp.net> <87aa74ixkz.fsf@debian.jnpr.net> Message-ID: <878vmoagqe.fsf@common-lisp.net> Deepak Tripathi writes: > Hi Philippe, >> Deepak Tripathi writes: >> >>> Team, >>> >> Hi, welcome on this list. > Thanks >> >>> I have tried clfswm on FreeBSD and found that after configure the >>> generated shell file is only meant for GNU systems. >>> >>> I have made a patch to work with FreeBSD box. >>> >> Thanks, what about a platform specific test ? >> if $XDG_CACHE_HOME is defined, use it else switch to $HOME/.clfswm >> Note that you can change this at configure time with the -d or >> --dump-path options. > Ok I can make it work while using ./configure , but it should be > automate, since newbie user will not think about changing the source > file, he/she will just run the file with either .xinitrc or .xsession, > and the error you will get that "you don't have permission to create > dir". > I'll change this behaviour and some minor things as soon as I have some time. Indeed, this is not an acceptable error for system other than GNU. >> >> [...] >> >>> I don't find $XDG_CACHE_HOME, also i have chooses sblc to run clfwsm. >>> >> There is (at least) another thing which is maybe platform specific. >> Please can you test the standard menu (Second Mode, Control+m, d). >> clfswm use the content of the $XDG_DATA_DIRS (bound normally to >> /usr/share/applications/). > I have tried Alt +T , Control+m, d, Nothing is happening, frame stays in > Second mode only. > Sorry, it's Alt +T , m, d. Not control+m. From deepak at gnumonk.com Thu Dec 8 10:18:57 2011 From: deepak at gnumonk.com (Deepak Tripathi) Date: Thu, 08 Dec 2011 15:48:57 +0530 Subject: [clfswm-devel] clfswm and FreeBSD In-Reply-To: <878vmoagqe.fsf@common-lisp.net> (Philippe Brochard's message of "Wed, 07 Dec 2011 10:11:37 +0100") References: <87ehwhrh9e.fsf@debian.jnpr.net> <87hb1dmi02.fsf@common-lisp.net> <87aa74ixkz.fsf@debian.jnpr.net> <878vmoagqe.fsf@common-lisp.net> Message-ID: <87hb1bpdri.fsf@debian.jnpr.net> Thanks Philippe, Alt +T, m, d will open an menu bar with information from a-r like "a " but without any information, I am assuming that it should update the list of existing installed packages. Ok, I have some questions (If you don't mind ) 1) Why the menu bar is getting populated with predefined values. for example "a , b ". It should be dynamic depends upon the existing system. 2) Do we have something like mode-line in StumpWM 3) Alt +T , ! opens run query box, but it does not auto complete, for example i can't just type ema to complete emacs-24-0-92 etc. > Deepak Tripathi writes: > >> Hi Philippe, >>> Deepak Tripathi writes: >>> >>>> Team, >>>> >>> Hi, welcome on this list. >> Thanks >>> >>>> I have tried clfswm on FreeBSD and found that after configure the >>>> generated shell file is only meant for GNU systems. >>>> >>>> I have made a patch to work with FreeBSD box. >>>> >>> Thanks, what about a platform specific test ? >>> if $XDG_CACHE_HOME is defined, use it else switch to $HOME/.clfswm >>> Note that you can change this at configure time with the -d or >>> --dump-path options. >> Ok I can make it work while using ./configure , but it should be >> automate, since newbie user will not think about changing the source >> file, he/she will just run the file with either .xinitrc or .xsession, >> and the error you will get that "you don't have permission to create >> dir". >> > I'll change this behaviour and some minor things as soon as I have some > time. Indeed, this is not an acceptable error for system other than GNU. > >>> >>> [...] >>> >>>> I don't find $XDG_CACHE_HOME, also i have chooses sblc to run clfwsm. >>>> >>> There is (at least) another thing which is maybe platform specific. >>> Please can you test the standard menu (Second Mode, Control+m, d). >>> clfswm use the content of the $XDG_DATA_DIRS (bound normally to >>> /usr/share/applications/). >> I have tried Alt +T , Control+m, d, Nothing is happening, frame stays in >> Second mode only. >> > Sorry, it's Alt +T , m, d. Not control+m. > > > _______________________________________________ > clfswm-devel mailing list > clfswm-devel at common-lisp.net > http://lists.common-lisp.net/cgi-bin/mailman/listinfo/clfswm-devel -- ,---- | Life's Too Short, Write Fast Code, Use emacs :) | Deepak Tripathi(gnumonk) | irc: irc.debian.org | nick: deepak, gnumonk | irc: irc.freenode.com | nick: gnumonk | web: http://www.gnumonk.com `---- From pbrochard at common-lisp.net Thu Dec 8 19:56:45 2011 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Thu, 08 Dec 2011 20:56:45 +0100 Subject: [clfswm-devel] clfswm and FreeBSD In-Reply-To: <87hb1bpdri.fsf@debian.jnpr.net> (Deepak Tripathi's message of "Thu, 08 Dec 2011 15:48:57 +0530") References: <87ehwhrh9e.fsf@debian.jnpr.net> <87hb1dmi02.fsf@common-lisp.net> <87aa74ixkz.fsf@debian.jnpr.net> <878vmoagqe.fsf@common-lisp.net> <87hb1bpdri.fsf@debian.jnpr.net> Message-ID: <87zkf2hm6a.fsf@common-lisp.net> Deepak Tripathi writes: > Thanks Philippe, > > Alt +T, m, d will open an menu bar with information from a-r like "a > " but without any information, I am assuming that it should > update the list of existing installed packages. > Ok, it's normal seen how the standard menu is actually coded. > Ok, I have some questions (If you don't mind ) > No problem, on the contrary. > 1) Why the menu bar is getting populated with predefined values. for > example "a , b ". It should be dynamic depends > upon the existing system. > I've coded them like this so they're always on this order (there is even an Archlinux entry even on my Debian system :). They follow the XDG specifications. But the content is dynamically generated from the content of the $XDG_DATA_DIRS which is /usr/share/applications/**/*.desktop on my system. I've to reinstall a BSD system to test those differences. And be far less GNU specific. > 2) Do we have something like mode-line in StumpWM > No we don't, but this is very welcome as a contrib module. > 3) Alt +T , ! opens run query box, but it does not auto complete, for > example i can't just type ema to complete emacs-24-0-92 etc. > Same thing here, there is no auto completion system in clfswm for now. This can be something to add in clfswm core. I know stumpwm do that but I haven't looked how it do. Clfswm lacks also to be more ICCCM compliant and must follow the freedesktop recommendations (http://standards.freedesktop.org//wm-spec/). There is a beginning of code but nothing finished (I don't feel the need for it). For example, interacting with the taskbar can be a little tricky since there is some concepts in clfswm not present in other wm (like groups in other groups). If someone feels some needs for this behaviours, any code is very welcome. And I can give some hints to begin. Philippe From deepak at gnumonk.com Mon Dec 12 11:59:18 2011 From: deepak at gnumonk.com (Deepak Tripathi) Date: Mon, 12 Dec 2011 17:29:18 +0530 Subject: [clfswm-devel] clfswm and FreeBSD In-Reply-To: <878vmoagqe.fsf@common-lisp.net> (Philippe Brochard's message of "Wed, 07 Dec 2011 10:11:37 +0100") References: <87ehwhrh9e.fsf@debian.jnpr.net> <87hb1dmi02.fsf@common-lisp.net> <87aa74ixkz.fsf@debian.jnpr.net> <878vmoagqe.fsf@common-lisp.net> Message-ID: <87obveuhk9.fsf@debian.jnpr.net> Hi, Since i am new to lisp world and going through lisp manual etc, If i will get time i will probably help here. Also i tested Alt+t m d in Debian and found that apart from opening menubar nothing is happening , i am assuming that it should populate menu list with appropriate application. Please note that i am using .deb binary from Debian unstable. PS: Let me know any good book for lisp as newbie . > Deepak Tripathi writes: > >> Hi Philippe, >>> Deepak Tripathi writes: >>> >>>> Team, >>>> >>> Hi, welcome on this list. >> Thanks >>> >>>> I have tried clfswm on FreeBSD and found that after configure the >>>> generated shell file is only meant for GNU systems. >>>> >>>> I have made a patch to work with FreeBSD box. >>>> >>> Thanks, what about a platform specific test ? >>> if $XDG_CACHE_HOME is defined, use it else switch to $HOME/.clfswm >>> Note that you can change this at configure time with the -d or >>> --dump-path options. >> Ok I can make it work while using ./configure , but it should be >> automate, since newbie user will not think about changing the source >> file, he/she will just run the file with either .xinitrc or .xsession, >> and the error you will get that "you don't have permission to create >> dir". >> > I'll change this behaviour and some minor things as soon as I have some > time. Indeed, this is not an acceptable error for system other than GNU. > >>> >>> [...] >>> >>>> I don't find $XDG_CACHE_HOME, also i have chooses sblc to run clfwsm. >>>> >>> There is (at least) another thing which is maybe platform specific. >>> Please can you test the standard menu (Second Mode, Control+m, d). >>> clfswm use the content of the $XDG_DATA_DIRS (bound normally to >>> /usr/share/applications/). >> I have tried Alt +T , Control+m, d, Nothing is happening, frame stays in >> Second mode only. >> > Sorry, it's Alt +T , m, d. Not control+m. > > > _______________________________________________ > clfswm-devel mailing list > clfswm-devel at common-lisp.net > http://lists.common-lisp.net/cgi-bin/mailman/listinfo/clfswm-devel -- ,---- | Life's Too Short, Write Fast Code, Use emacs :) | Deepak Tripathi(gnumonk) | irc: irc.debian.org | nick: deepak, gnumonk | irc: irc.freenode.com | nick: gnumonk | web: http://www.gnumonk.com `---- From pbrochard at common-lisp.net Wed Dec 14 20:50:42 2011 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Wed, 14 Dec 2011 21:50:42 +0100 Subject: [clfswm-devel] clfswm and FreeBSD In-Reply-To: <87obveuhk9.fsf@debian.jnpr.net> (Deepak Tripathi's message of "Mon, 12 Dec 2011 17:29:18 +0530") References: <87ehwhrh9e.fsf@debian.jnpr.net> <87hb1dmi02.fsf@common-lisp.net> <87aa74ixkz.fsf@debian.jnpr.net> <878vmoagqe.fsf@common-lisp.net> <87obveuhk9.fsf@debian.jnpr.net> Message-ID: <87aa6ug9nh.fsf@common-lisp.net> Deepak Tripathi writes: > Hi, > Hi, > Since i am new to lisp world and going through lisp manual etc, If i > will get time i will probably help here. > Thanks. Any help or remark will be greatly appreciated. > Also i tested Alt+t m d in Debian and found that apart from opening > menubar nothing is happening , i am assuming that it should populate > menu list with appropriate application. > Yes, the menu entries are created from directories listed in the XDG_DATA_DIRS environment variable. I've to rework this part since this variable is not set in many distributions. > Please note that i am using .deb binary from Debian unstable. > > PS: Let me know any good book for lisp as newbie . > Well, I like the Practial Common Lisp (PCL) from Peter Seibel, the Paul Graham ANSI Common Lisp and OnLisp. And the Paradigms of Artificial Intelligence Programming: Case Studies in Common Lisp (PAIP) from Peter Norvig. The Doug Hoyte Let Over Lambda is also very impressive. You can read PCL and OnLisp online. You'll find more information on the cliki: http://www.cliki.net/Lisp%20books The Hyperspec, the CLTL2 and the CLX Manual are also indispensable. http://www.lispworks.com/documentation/common-lisp.html http://www.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl/cltl2.html http://www.stud.uni-karlsruhe.de/~unk6/clxman/index.html From dochang at gmail.com Mon Dec 19 17:14:45 2011 From: dochang at gmail.com (Desmond O. Chang) Date: Tue, 20 Dec 2011 01:14:45 +0800 Subject: [clfswm-devel] Type Error in CLFSWM::ADAPT-CHILD-TO-RECT Message-ID: Hi all, Did anyone get an error like "-63634 isn't a CARD16." when using clfswm with clisp/new-clx? This bug doesn't occur so often. I made a screenshot [1]. The error is from the SETF sexp in CLFSWM::ADAPT-CHILD-TO-RECT: (setf (xlib:drawable-x window) (child-rect-x rect) (xlib:drawable-y window) (child-rect-y rect) (xlib:drawable-width window) (child-rect-w rect) (xlib:drawable-height window) (child-rect-h rect))) clisp/new-clx [2] requires that the types of the values of CHILD-RECT-* must be: CHILD-RECT-X: INT16 CHILD-RECT-Y: INT16 CHILD-RECT-W: CARD16 CHILD-RECT-H: CARD16 INT16 is (SIGNED-BYTE 16) and CARD16 is (UNSIGNED-BYTE 16) [3]. When CHILD-RECT-W returns -63634 which isn't CARD16, the error will occur. To fix this bug, I convert -63634 to 1902, by redefining the function. A simple patch is on the branch 'fix-type-error' at [4]. It's just my workaround and should not be merged. A better solution may be redefining CHILD-RECT-* or else. [1] http://i39.tinypic.com/2wrnkvd.jpg [2] clx.f : line 2618 - 2622 [3] clx.lisp : line 203 & 197 [4] git://github.com/dochang/clfswm.git Thanks, Des From pbrochard at common-lisp.net Thu Dec 22 22:40:51 2011 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Thu, 22 Dec 2011 23:40:51 +0100 Subject: [clfswm-devel] Type Error in CLFSWM::ADAPT-CHILD-TO-RECT In-Reply-To: (Desmond O. Chang's message of "Tue, 20 Dec 2011 01:14:45 +0800") References: Message-ID: <87ipl8w7po.fsf@common-lisp.net> Desmond O. Chang writes: > Hi all, > Hi, > Did anyone get an error like "-63634 isn't a CARD16." when using > clfswm with clisp/new-clx? > Yes I got this error with clisp/new-clx. But not with clisp/mit-clx or portable-clx. The problem comes from the layout manager which set a negative width. Have you seen which layout causes the trouble? And which application? I've written a wrapper to all xlib:drawable-* functions to prevent this and report errors. It's in the fix-type-error branch in the common-lisp.net git repository: git://common-lisp.net/projects/clfswm/clfswm.git I don't think it's a good solution, a better one will be to see which layout cause this trouble and with which application. But I'll merge it in the master branch if we find nothing better. > This bug doesn't occur so often. I made a screenshot [1]. > I got this too. > The error is from the SETF sexp in CLFSWM::ADAPT-CHILD-TO-RECT: > > (setf (xlib:drawable-x window) (child-rect-x rect) > (xlib:drawable-y window) (child-rect-y rect) > (xlib:drawable-width window) (child-rect-w rect) > (xlib:drawable-height window) (child-rect-h rect))) > > clisp/new-clx [2] requires that the types of the values of > CHILD-RECT-* must be: > > CHILD-RECT-X: INT16 > CHILD-RECT-Y: INT16 > CHILD-RECT-W: CARD16 > CHILD-RECT-H: CARD16 > > INT16 is (SIGNED-BYTE 16) and CARD16 is (UNSIGNED-BYTE 16) [3]. > > When CHILD-RECT-W returns -63634 which isn't CARD16, the error will > occur. To fix this bug, I convert -63634 to 1902, by redefining the > function. A simple patch is on the branch 'fix-type-error' at [4]. > > It's just my workaround and should not be merged. A better solution > may be redefining CHILD-RECT-* or else. > child-rect-* are just here to store windows and frames placement and to calculate children order. They're set by the layout manager. It'll be better to change the layout functions. Please, can you use the fix-type-error branch on the common-lisp.net git repo to see if you can isolate a layout which cause this error. It'll be really useful if you have found an application which cause this error in all cases. I haven't found one. Thanks a lot for this report, Regards, Philippe From pbrochard at common-lisp.net Tue Dec 27 14:31:26 2011 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Tue, 27 Dec 2011 15:31:26 +0100 Subject: [clfswm-devel] Type Error in CLFSWM::ADAPT-CHILD-TO-RECT In-Reply-To: <87ipl8w7po.fsf@common-lisp.net> (Philippe Brochard's message of "Thu, 22 Dec 2011 23:40:51 +0100") References: <87ipl8w7po.fsf@common-lisp.net> Message-ID: <87vcp23x35.fsf@common-lisp.net> Philippe Brochard writes: > Desmond O. Chang writes: > >> Hi all, >> > Hi, > >> Did anyone get an error like "-63634 isn't a CARD16." when using >> clfswm with clisp/new-clx? >> > Yes I got this error with clisp/new-clx. But not with clisp/mit-clx or > portable-clx. > The problem comes from the layout manager which set a negative width. > Have you seen which layout causes the trouble? And which application? > > I've written a wrapper to all xlib:drawable-* functions to prevent this > and report errors. It's in the fix-type-error branch in the > common-lisp.net git repository: git://common-lisp.net/projects/clfswm/clfswm.git > > I don't think it's a good solution, a better one will be to see which > layout cause this trouble and with which application. But I'll merge it > in the master branch if we find nothing better. > I've replaced the copy/paste with a macrology and merge it in the master branch. I've removed the fix-type-error branch. Feel free to log clfswm output and report any suspect behaviour. Regards, Philippe