Re: Edwin: Check if in X windows at startup

2020-03-30 Thread Matt Birkholz
On Mon, 2020-03-30 at 12:25 -0400, Nicholas Papadonis wrote:
> > On Mar 29, 2020, at 3:12 PM, Matt Birkholz  wrote:
> > 
> > On Sun, 2020-03-29 at 13:05 -0400, Nicholas Papadonis wrote:
> > > Does anyone know how to accomplish this?  Is there a function which 
> > > returns whether Edwin is started in X or not?
> > 
> > (display-type/name (current-display-type))
> 
> unbound-variable error when evaluating.
> 
> Using MIT Scheme v10

~/.edwin is loaded into the (edwin) package inside the dynamic extent of a 
fluid-binding of current-editor.  If you are not evaluating in the (edwin) 
package, you should get an unbound variable error.  If you are evaluating the 
sexpr in a REPL in the (edwin) package but not in Edwin, you should get an 
unassigned variable error.  So... use the REPL in Edwin and evaluate (ge 
'(edwin)) first.  And mention the name of the unbound variable next time.


Re: Edwin: Check if in X windows at startup

2020-03-30 Thread Nicholas Papadonis

> On Mar 29, 2020, at 3:12 PM, Matt Birkholz  wrote:
> 
> On Sun, 2020-03-29 at 13:05 -0400, Nicholas Papadonis wrote:
>> Does anyone know how to accomplish this?  Is there a function which returns 
>> whether Edwin is started in X or not?
> 
> (display-type/name (current-display-type))

unbound-variable error when evaluating.

Using MIT Scheme v10

Thanks

Re: Edwin: Check if in X windows at startup

2020-03-29 Thread Matt Birkholz
On Sun, 2020-03-29 at 13:05 -0400, Nicholas Papadonis wrote:
> Does anyone know how to accomplish this?  Is there a function which returns 
> whether Edwin is started in X or not?
(display-type/name (current-display-type))