texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] My patch - option groups


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] My patch - option groups
Date: Mon, 29 Nov 2010 17:07:49 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Dear Victor,

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).
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.

Best, --Joris


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]