[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] My patch - option groups
From: |
Victor Porton |
Subject: |
Re: [Texmacs-dev] My patch - option groups |
Date: |
Mon, 29 Nov 2010 20:11:47 +0300 |
Dear Joris,
29.11.10, 19:07, "Joris van der Hoeven" <address@hidden>:
> Thanks for your first try to improve the preferences.
> In fact, we rather planned to develop a preferences dialogue,
> with tabs for the different option groups (plus explanations).
This my code should work equally well with a preferences dialogue as it works
with preferences menu.
> On the other hand, one global preferences file should be fine for the moment;
> I do not think that we need the far-going kind of granularity that you
> propose.
> That said: being able to save the preferences to some user-specified file
> would probably be nice.
I agree that "being able to save the preferences to some user-specified file
would probably be nice."
But my code does a different thing, it saves a subset of preferences.
Joris, do you mean that you do not want to accept my patch?!
If so, I will need to maintain my own version of TeXmacs, because I need this
feature for my own use.
I believe that ability to save all LaTeX export preferences and restore them
with one click is a very useful feature.
If you decline, please arguably argument why you don't accept it.
In any case, I myself will work with TeXmacs only with my patch. It would be
inconvenient to do this manually. I prefer if the patch would be included into
the official version and available in Debian GNU/Linux.
> On Mon, Nov 29, 2010 at 04:58:55PM +0300, Victor Porton wrote:
> > http://savannah.gnu.org is currently down. So I submit my patch to the
> list.
> >
> > http://freesoft.portonvictor.org/patches/texmacs-optgroups.diff
> >
> > This patch addes what I call "option groups". An option group consists of
> a subset of TeXmacs preferences (for example, all LaTeX copnversion options).
> It allows quickly retrieve a set of options for a particular mode of
> operation. For example, we need different option groups for saving LaTeX to
> send it to a math journal and for copying it to clipboard in order to insert
> in a blog. So my patch allows to quickly switch between modes.
> >
> > As for now, there exists one option group "to-latex". More option groups
> can be added easily.
> >
> > My implementation of option group menus works, but I'm sure I've done it
> wrong (despite it works for now). Who knows how to program it in the right
> way, let he notify me for me to see how it is done correctly.
> >
> > Joris van der Hoeven:
> > <<<
> > The dynamic menus have been reimplemented so as to make them easier to
> write,
> > even though no documentation is available yet. 'tm-menu (my-menu)' is
> equivalent
> > to 'menu-bind my-menu' for non-dynamic menus, but, contrary to normal
> menus,
> > dynamic menus defined using tm-menu can take parameters and there are
> several
> > primitives for generating the entries dynamically from Scheme.
> > Just grep the Scheme code for tm-menu in order to look at the existing
> examples...
> > >>>
> >
> > I don't know how to use both tm-menu and menu-bind. I did it with simple
> tm-define (in a wrong but working way). Corrections are appreciated.
> >
> > P.S. Can I get r/w SVN access?
> >
> > --
> > Victor Porton - http://portonvictor.org
> >
> > _______________________________________________
> > Texmacs-dev mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/texmacs-dev
>
> _______________________________________________
> Texmacs-dev mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>
>
--
Victor Porton - http://portonvictor.org