Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2042

Re: Remove MakeExpression settings

From David Bailey <dave@removedbailey.co.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Remove MakeExpression settings
Date 2011-05-03 09:44 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ipoipp$g2j$1@smc.vnet.net> (permalink)
References <ipm2f1$58n$1@smc.vnet.net>

Show all headers | View raw


On 02/05/2011 11:53, Peter Breitfeld wrote:
> I made some settings using MakeExpression and MakeBoxes. Suppose I use
>
> beautyOut[a_]:=MakExpression[...]
>
> I can find these definitions in Definition[MakeBoxes] and
> Definitions[MakeBoxes].
>
> Sometimes I want to switch off these definitions. The only way I found
> is to use Quit.
>
> My question:
> Is it possible, to remove the definitions made from the set of
> definitons of MakeExpression and Makeboxes?
>
> Thank you
> Peter
One possibility is not to remove them but activate/deactivate them based 
on a global variable

mySwitch=True;

MakeExpression[...,StandardForm]:=Module[.............]/;mySwitch;

Set up this way, they can be activated/deactivated at will.

David Bailey
http://www.dbaileyconsultancy.co.uk

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Remove MakeExpression settings Peter Breitfeld <phbrf@t-online.de> - 2011-05-02 10:53 +0000
  Re: Remove MakeExpression settings David Bailey <dave@removedbailey.co.uk> - 2011-05-03 09:44 +0000
    Re: Remove MakeExpression settings Peter Breitfeld <phbrf@t-online.de> - 2011-05-03 12:23 +0000

csiph-web