Search found 16 matches

by G-Brain
Sat Aug 09, 2008 10:23 am
Forum: Common Lisp
Topic: Define macro alias?
Replies: 4
Views: 14341

Re: Define macro alias?

Perfect! Thank you Geoff.

I actually tried that last method, but I suppose I already setf'd that funky character to a function before, so I couldn't setf it to a macro.
by G-Brain
Wed Aug 06, 2008 5:49 am
Forum: Common Lisp
Topic: Define macro alias?
Replies: 4
Views: 14341

Define macro alias?

I just switched my terminal to UTF-8 and got UTF-8 working in emacs and slime with SBCL. Now I want to write some funny lisp. I want λ to be interpreted as lambda, like an alias or something. I already figured out how to "alias" functions: (setf (symbol-function 'add) #'+) or (setf (symbo...
by G-Brain
Tue Aug 05, 2008 2:18 pm
Forum: The Lounge
Topic: Lispians (work-safe)
Replies: 2
Views: 6435

Re: Lispians (work-safe)

Your image host doesn't play nice. Here:

Image
by G-Brain
Sun Aug 03, 2008 12:50 pm
Forum: The Lounge
Topic: lispforums running PHP : bah !
Replies: 3
Views: 8959

Re: lispforums running PHP : bah !

I've thought about doing this myself using the Hunchentoot and Elephant libraries. I've never used UnCommon Web but I see it's worth looking in to. I remember looking at the phpBB table layout, writing BBS software in Python at the time. Anyway, from that experience, writing basic forum software isn...
by G-Brain
Sun Aug 03, 2008 4:57 am
Forum: Emacs
Topic: Indenting "HTML" S-expressions
Replies: 6
Views: 32255

Re: Indenting "HTML" S-expressions

Ahh, now I see your point. It automatically aligns nested tags under the first attribute of it's parent, instead of just indenting by a single column. I'll see if there's a way to turn that off.
by G-Brain
Sun Jul 20, 2008 4:46 am
Forum: Emacs
Topic: Indenting "HTML" S-expressions
Replies: 6
Views: 32255

Re: Indenting "HTML" S-expressions

The indentation makes perfect sense to me:

Code: Select all

(:div :class "whatever"
      "Text here")
Turns into this:

Code: Select all

<div class="whatever">
     Text here
</div>
Which is how I do my HTML, and I'm pretty sure that's the standard.
by G-Brain
Wed Jul 16, 2008 1:37 am
Forum: The Lounge
Topic: website mini-logo (the one in the toolbar)
Replies: 24
Views: 44540

Re: website mini-logo (the one in the toolbar)

Here's an idea: http://www.p01.org/releases/DHTML_conte ... e_favicon/

Okay, that might be overdoing it :D
by G-Brain
Thu Jul 10, 2008 9:28 am
Forum: Common Lisp
Topic: Gangs of GTA
Replies: 0
Views: 10417

Gangs of GTA

Gangs of GTA is an online text-based role playing game written in Common Lisp using the Hunchentoot and CL-WHO libraries. Home: http://www.g-brain.net/gangs-of-gta/ Online view of the source: http://www.g-brain.net/gangs-of-gta/source/ Development server: http://77.160.39.17:8080 Being fairly new to...
by G-Brain
Tue Jul 08, 2008 8:28 am
Forum: Emacs Lisp
Topic: Custom 'save-a-copy-as' interactive function begins to error
Replies: 2
Views: 9021

Re: Custom 'save-a-copy-as' interactive function begins to error

C-x C-w works for me.

Edit: Okay, that switches to the newly saved file. My bad.

Edit2: Google-fu

C-x h (mark-whole-buffer)
M-x write-region

or

Code: Select all

(defun save-in-other-file (new-filename)
  (interactive "FFilename:")
  (write-region (point-min) (point-max) new-filename))
by G-Brain
Tue Jul 01, 2008 2:09 am
Forum: Common Lisp
Topic: SBCL 1.0.18 released
Replies: 4
Views: 13979

Re: SBCL 1.0.18 released

Alexander Lehmann wrote:It's, however, not available via sbcl.sf.net. How can I get my hands on it?
It is available on sbcl.sf.net.
Older binaries and source releases are available on the SourceForge File Releases page.
http://sourceforge.net/project/showfile ... up_id=1373

You have to compile it from source.