jed-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: WRAP blocal?


Hello John,

"John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
>>is WRAP a pseudo blocal variable like TAB? Is it planed to make TAB a
>>read blocal variable?
>
> At the moment, WRAP affects all buffers.  I have not added much to the
> blocal code because I intend to change the interface to these
> variables.  For example, I have thought about creating a `get_buffer`
> function that returns a buffer object, e.g.,
>
>     cbuf = get_current_buffer ();
>     sbuf = get_buffer ("*scratch*");
>     
>     % Copy the current buffer's tab setting to the scratch buffer
>     sbuf.tab = cbuf.tab;   
>
> But it may be more useful to come up with a mechanism that can turn
> variables such as WRAP into TAB-like buffer-local ones.

Is the assign operator = a binary operator? Can it be overloaded with
__add_binary()? If yes, make WARP, TAB and the like a variable of a user
defined data type and overload the access operator to redirect the access
to the blocal variable and print a warning.

Bye, Jörg.
-- 
Der Pessimist ist jemand, der vorzeitig die Wahrheit erzählt.
    	      	  	      		    	(Cyrano de Bergerac)

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2006 date index] [2006 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]