stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] My .stumpwmrc and a modified display-keybinding


From: Luca Capello
Subject: Re: [STUMP] My .stumpwmrc and a modified display-keybinding
Date: Tue, 09 Jan 2007 23:57:11 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

Hello!

On Fri, 05 Jan 2007 17:53:07 +0100, gwern branwen wrote:
> I guess you are already using Slime? It's good for nonfatal stuff,
> but I really haven't found a way to work with Stump when you are
> poking around with fatal errors. :) I suppose you could always have
> .xinitrc fire up Emacs and work from there.

Apart from Shawn's comment (working on an Xnest and then "committing"
only the safest changes), I was also thinking of running Emacs (well,
screen starting Emacs, actually), but the major problem I found is
that detaching the screen session started by .xinitrc logs out from
X11.

Another solution would be to start stumpwm by an Emacs function (Emacs
started by .xinitrc: the major drawback is that you cannot restart
Emacs :-(

> On a stylistic note, you probably replace stuff like the 'substitute'
> you are running on shell output with a pipeline to 'tr'; this is
> probably more portable - where would you run Stumpwm where there
> *isn't* the basic complement of Unix commands? And it makes the output
> useful for non-Stumpwm purposes. Similarly, your 'show-time' command
> is better done by a call to 'date', in my opinion.

Maybe it's my tr knowledge, but I cannot obtain the same result (empty
lines added for better reading):
=====
STUMPWM> (defun test-newline-cl ()
  (remove #\Newline (run-shell-command "echo -e \"Hello,\n world\"" t)))
TEST-NEWLINE-CL

STUMPWM> (test-newline-cl)
"Hello,n world"

STUMPWM> (defun test-newline-tr ()
  (run-shell-command "echo -e \"Hello,\n world\" | tr -d '\n'" t))
TEST-NEWLINE-TR

STUMPWM> (test-newline-tr)
"Hello, world
"
STUMPWM>
=====

> I've isolated the Swank and Slime stuff in my .sbclrc instead of
> putting them in my .stumpwmrc. Just seemed a more appropriate place.

IMHO keeping Swank/SLIME stuff inside .stumpwmrc is better if you use
different lisps or different Swanks (let's say you want a Swank per
project you're working on).  But I agree that in an ideal world you'd
want only one Swank ;-)

Thx, bye,
Gismo / Luca

Attachment: pgpzetQM8ZT0S.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]