Re: Emacs REPL not "full-featured"?

2016-01-02 Thread Alexis


Lawrence Bottorff  writes:

I've got a REPL started in Emacs (called from ELPA version of 
picolisp major mode with run-picolisp)


The only picolisp-mode i'm aware of that's on an ELPA is my 
picolisp-mode on MELPA:


http://melpa.org/#/picolisp-mode

As the documentation on that page notes, this mode is not related 
to the one bundled with PicoLisp[1]. In particular, it does not 
contain a command `run-picolisp` (such non-namespace-prefixed 
names are nowadays considered poor ELisp programming style). So it 
sounds like you're actually using the bundled-with-PicoLisp mode, 
not the mode available on MELPA, i.e. the former is loaded and 
shadowing the latter.



Alexis.

[1] For a discussion on why my package on MELPA still has the same 
name as the one bundled with PicoLisp, 
cf. https://github.com/milkypostman/melpa/issues/2514.

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Emacs REPL not "full-featured"?

2016-01-02 Thread Henrik Sarvell
If the issue is only about jumping to docs perhaps picolisp-jump in my
emacs init file might be of help:
http://www.prodevtips.com/2015/02/18/my-emacs-init-file-for-2015/

On Sat, Jan 2, 2016 at 11:43 AM, Alexis  wrote:

>
> Lawrence Bottorff  writes:
>
> I've got a REPL started in Emacs (called from ELPA version of picolisp
>> major mode with run-picolisp)
>>
>
> The only picolisp-mode i'm aware of that's on an ELPA is my picolisp-mode
> on MELPA:
>
> http://melpa.org/#/picolisp-mode
>
> As the documentation on that page notes, this mode is not related to the
> one bundled with PicoLisp[1]. In particular, it does not contain a command
> `run-picolisp` (such non-namespace-prefixed names are nowadays considered
> poor ELisp programming style). So it sounds like you're actually using the
> bundled-with-PicoLisp mode, not the mode available on MELPA, i.e. the
> former is loaded and shadowing the latter.
>
>
> Alexis.
>
> [1] For a discussion on why my package on MELPA still has the same name as
> the one bundled with PicoLisp, cf.
> https://github.com/milkypostman/melpa/issues/2514.
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Emacs REPL not "full-featured"?

2016-01-02 Thread Alexis


Lawrence Bottorff  writes:


Yes, I've got this going in my init (*and *the ELPA installed)

(add-to-list 'load-path "/home/hercynian/opt/picoLisp/lib/el") 
(load "tsm.el") ;; Picolisp TransientSymbolsMarkup (*Tsm) 
(autoload 'run-picolisp "inferior-picolisp") (autoload 
'picolisp-mode "picolisp" "Major mode for editing Picolisp." t)


*nod* Well, my recommendation is to either uninstall my MELPA 
package, or remove the above from your config - otherwise you'll 
probably start encountering all sorts of odd issues, and it might 
be difficult for people familiar with either package to help you 
untangle what's going on.



Alexis.
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Emacs REPL not "full-featured"?

2016-01-02 Thread Lawrence Bottorff
Yes, I've got this going in my init (*and *the ELPA installed)

(add-to-list 'load-path "/home/hercynian/opt/picoLisp/lib/el")
(load "tsm.el") ;; Picolisp TransientSymbolsMarkup (*Tsm)
(autoload 'run-picolisp "inferior-picolisp")
(autoload 'picolisp-mode "picolisp" "Major mode for editing Picolisp." t)

Docs say to have tsm.el, but then I guess I need more advice on the optimal
Emacs config for picolisp. . . .

On Sat, Jan 2, 2016 at 10:43 AM, Alexis  wrote:

>
> Lawrence Bottorff  writes:
>
> I've got a REPL started in Emacs (called from ELPA version of picolisp
>> major mode with run-picolisp)
>>
>
> The only picolisp-mode i'm aware of that's on an ELPA is my picolisp-mode
> on MELPA:
>
> http://melpa.org/#/picolisp-mode
>
> As the documentation on that page notes, this mode is not related to the
> one bundled with PicoLisp[1]. In particular, it does not contain a command
> `run-picolisp` (such non-namespace-prefixed names are nowadays considered
> poor ELisp programming style). So it sounds like you're actually using the
> bundled-with-PicoLisp mode, not the mode available on MELPA, i.e. the
> former is loaded and shadowing the latter.
>
>
> Alexis.
>
> [1] For a discussion on why my package on MELPA still has the same name as
> the one bundled with PicoLisp, cf.
> https://github.com/milkypostman/melpa/issues/2514.
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>


Re: Emacs REPL not "full-featured"?

2016-01-01 Thread Thorsten Jolitz
Lawrence Bottorff 
writes:

> I've got a REPL started in Emacs (called from ELPA version of picolisp
> major mode with run-picolisp), but I'm noticing it doesn't have such
> features as more, edit, what, etc. Starting picolisp from the command
> line with pil is however "full-featured". What am I missing here?

IIRC even when all libraries are loaded, there remain a few things that
don't work (correctly), e.g.  (doc 'pp)

1. Emacs REPL (prints unreadable results):

,
| : (doc 'pp)
| (doc 'pp)
| 
1,03kbloadedinstead,itshouldbearangeofnumberswhicharetriedinturn.Whenvarisgiven,itisboundtotheportnumber.:(port0'A)#Allocatefreeport->4:A->1034#Got1034:(port(4000.4008)'A)#Tryoneoftheseports->5:A->4002(pp
| 'sym) -> sym (pp 'sym 'cls) -> sym (pp '(sym . cls)) ->
| 
symPretty-printsthefunctionormethoddefinitionofsym.Theoutputformatwouldregeneratethatsamedefinitionwhenreadandexecuted.Seealsopretty,debugandvi.:(pp'tab)(detab(Lst.@)(forNLst(letV(next)≪
| ↑ ↓ Viewing libgpm: zero screen dimension, assuming 80x25.
`

2. pil REPL (opens W3M on the console):

,
| (pp 'sym) -> sym
| (pp 'sym 'cls) -> sym
| (pp '(sym . cls)) -> sym
| Pretty-prints the function or method definition of sym. The
| output format would regenerate that same definition when read
| and executed. See also pretty, debug and vi.
| 
| : (pp 'tab)
| (de tab (Lst . @)
|(for N Lst
|   (let V (next)
|  (and (gt0 N) (space (- N (length V
|  (prin V)
|  (and
| (lt0 N)
| (space (- 0 N (length V))) ) ) )
|(prinl) )
| -> tab
`

But I guess one could configure Emacs to show the 'doc' results in
emacs-w3m or eww instead of the *picolisp* buffer itself.

-- 
cheers,
Thorsten

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Emacs REPL not "full-featured"?

2015-12-31 Thread Lawrence Bottorff
I've got a REPL started in Emacs (called from ELPA version of picolisp
major mode with run-picolisp), but I'm noticing it doesn't have such
features as more, edit, what, etc. Starting picolisp from the command line
with pil is however "full-featured". What am I missing here?

LB


RE: Emacs REPL not "full-featured"?

2015-12-31 Thread Loyall, David
> I've got a REPL started in Emacs [...] but I'm noticing it
> doesn't have such features as more, edit, what, etc.

Sounds like you didn’t load some libraries.

When you pass a + character to the interpreter, it loads `debug.l`, which 
defines (what ...) and other functions.

Maybe you can just (load 'debug.l') after the fact, or maybe you need to tell 
emacs to include the + on the command line when starting the picolisp repl.

I hope this helps.

Cheers,
--Dave