Re: Quoted text in the dbg REPL

2010-04-26 Thread Alexander Burger
Hi Jon,

 printing quoted text using dbg (not p), the text is automatically
 underlined, and the quotes removed. Is this a feature added
 recently?

This is, in fact, the official representation of transient symbols.

It is a mechanism called transient symbol markup (TSM), originally
introduced with picoLisp-2.2.2 (March 2006), but then removed in
picoLisp-2.2.6 (Apr 2007).

After lengthy discussions in IRC, we re-introduced it with
picoLisp-3.0.1 (December 2009, see ReleaseNotes).

TSM is controlled by the global variable '*Tsm'. See
doc/ref.html#transient-io and doc/refT.html#*Tsm .


 Is this a unique PicoLisp feature, or is it used in other
 Lisps/languages? What's the motivation behind it?

It is most probably a unique feature of PicoLisp.


The motivation is to make it visually clear that transient symbols are
_not_ strings, but full-featured symbols. It is just that they can be
used like strings in other languages. Also, as transient symbols are
often used for function parameters and local variables, they look ugly
when shown in double quotes.

Underlines were chosen (above coloring or special fonts etc.) because
they are - perhaps besides reverse graphics - the only terminal markup
that also applies to white space.

tc.rucho made plmod which correctly handles transient symbols in
Emacs.

I have a vim-tsm (not released yet) describing a way to do the same
acceptably in 'vim'. Requires a patch to 'vim', however. Should I
include it into the release?

Up until picoLisp-3.0.2 I had also changed the complete reference
documenation to show transient symbols with u and /u. There were
complaints, however, that this makes copy/paste of the examples
difficult, so I reverted the reference to double quote display.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe


Re: ./dbg (Was: Code highlighting in the wiki?)

2010-04-26 Thread Henrik Sarvell
I'll fix this one, however my plan is to try and move this stuff to the
picolisp wiki so that anyone can fix anything.


On Sun, Apr 25, 2010 at 5:01 PM, Alexander Burger a...@software-lab.dewrote:

 Hi Henrik,

 just a minor detail: In

   http://www.prodevtips.com/2008/03/29/registers-and-quoting-in-pico-lisp

 you mention to start the system as

   ./p dbg.l

 This is the way it used to be. However, while this is not really wrong,
 the recommended way in the docu is now to use

   ./dbg

 The reason is that 'dbg' switches on the '*Dbg' flag immediately, while
 the above case first loads the whole 'p' and then switches to debug
 mode. This results in all symbols loaded by 'p' having no debug info.

 For example,

   (vi 'task)

 works only when started as ./dbg

 Cheers,
 - Alex
 --
 UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe



Re: ./dbg (Was: Code highlighting in the wiki?)

2010-04-26 Thread Alexander Burger
On Mon, Apr 26, 2010 at 10:07:20AM +0200, Henrik Sarvell wrote:
 I'll fix this one, however my plan is to try and move this stuff to the
 picolisp wiki so that anyone can fix anything.

Yes, good idea. Thanks.

- Alex
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe