stumpwm-devel
[Top][All Lists]
Advanced

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

Fwd: [STUMP] [PATCH] Allow access to time without invoking external date


From: Matt Spear
Subject: Fwd: [STUMP] [PATCH] Allow access to time without invoking external date
Date: Sun, 6 Mar 2011 10:53:00 -0800

Sorry, wasn't clear.  I wanted to have:
(setf *screen-mode-line-format*
     (list "[^B%n^b] %W ^> [%b] ^3*"
           '(:eval (stumpwm:time-format "%a %m/%e/%Y %I:%M%p"))))

so that I didn't have to invoke any external programs in the modeline
update.  I've included the patch for fixing the time.lisp to use the
new function.

Cheers, and thanks!!!
Matt Spear
address@hidden



On Sun, Mar 6, 2011 at 10:21 AM, Krzysztof Drewniak
<address@hidden> wrote:
> On Mon, 2011-02-28 at 10:12 -0800, Matt Spear wrote:
>> This is nice for the modeline so that it can have the time without
>> invoking the external date program.
>>
>> Cheers!!
>> Matt Spear
>> address@hidden
>> _______________________________________________
>> Stumpwm-devel mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/stumpwm-devel
>
> I looked over your patch and while it does add a nice convenience
> function (which is a good idea), StumpWM doesn't invoke an external
> program to get the time at all, it just uses internal lisp functions.
> So, the patch (though useful) doesn't fix the problem you set out to
> solve, because the problem doesn't really exist (unless I misunderstood
> the nature of your patch).
>
> I still think the patch will come in handy, especially if it if coupled
> with a rewrite of time.lisp to actually use the new function you
> defined.
>
> Happy hacking,
>
> Krzysztof Drewniak
> --
> X-Real-Email-With-Antispam: krzysdrewniak at gmail dot com
> pgp key on keyserver.ubuntu.com 2388E924
>
>

Attachment: time.new.patch
Description: Text Data


reply via email to

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