Re: how to get a structure/module tree?



Am Tue, 23 Mar 2010 13:11:34 +0900 (JST)
schrieb Teika Kazura <teika lavabit com>:

> Guten tag, Clemens.
> 
> On Mon, 22 Mar 2010 22:53:54 +0100, clemens fischer wrote:
> > My original problem is very simple:
> > Do I need to start off my ~/.sawfish/rc file with "(require
> > 'apps-menu)"?  I want to set the symbol user-apps-menu.
> 
> (define-special-variable user-apps-menu value) does.  It's defvar +
> setq. Like emacs lisp, defvar doesn't change the value if it's already
> bound. But d-s-v always sets the value. In librep, defvar at the same
> time declares it's dynamically scoped. (I often say "it's global", but
> good programmers may frown. ;)
> 
> > Is there a tool giving a tree of modules, maybe starting with the
> > assumption that all exported symbols are required by the user?
> 
> So probably you don't need it, but as far as I know, no. (But boundp
> can be used.)
>  
> > Also:  to start an xterm, do I define a menu entry with
> > 
> >     ("_xterm" (system "xterm &"))
> > 
> > or better:
> > 
> >     ("_xterm" (run-shell-command "xterm &))?

besides, there's the `xterm' function. so you may also do:

(define-special-variable xterm-program "xterm &")
("_xterm" (xterm))

... if xterm-program is not customized and GNOME is running, it is set to
gnome-terminal.wrapper, if KDE is running, konsole, else - obviously - the user-set
value.

> Use 'system'. 'Command' in Sawfish is what's bindable to key / mouse
> event. They have different namespace from functions. (You can't run a
> function by key / mouse unless there's a wrapper command.)
> run-shell-command is a command wrapper of 'system' function, and it
> has a configurator support; when you choose that command in the
> configurator, you can enter the shell command name.
> 
> Glad you're intersted in Sawfish.
> 
> Regards,
> Teika (Teika kazura)
> 



-- 

BILD-Zeitung berichtet schockierendes:

WINTEREINBRUCH MITTEN IM WINTER - DAS GROẞDEUTSCHE REICH IST IM AUSNAHMEZUSTAND!
WIRD DAS JETZT JEDES JAHR SO? EXKLUSIVES FOTOMATERIAL AUS DER WEIẞEN HÖLLE!
Verpassen Sie nicht den Gefrierbrand-Ticker auf blöd.de!

C.R.B: Das ist ganz normal, deswegen heißt es ja Winter und Wintereinbruch. Oder
sind Sie auch überrascht, dass im Sommer die Temperaturen steigen, die Tage länger
und die Röcke kürzer werden?

BILD: Waaaas? Steigende Temperaturen im Sommer? Dann ist die Klimaveränderung ja
weit schlimmer als in all unseren Jüngster-Tag-Weltuntergangs-Armageddon-Fantasien.

C.R.B: :facepalm:

OPNN



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]