[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Texmacs-dev] Guile modules and redefining functions
From: |
Leo |
Subject: |
Re: [Texmacs-dev] Guile modules and redefining functions |
Date: |
Fri, 11 Apr 2003 09:04:01 -0400 |
User-agent: |
KMail/1.4.3 |
Hi Joris,
thank you for your suggestion but it does not work for me.
I am using TeXmacs-1.0.1.10 and "my-init-texmacs.scm" file is
; my-init-texmacs.scm
(exec-file "$TEXMACS_PATH/progs" "init-texmacs.scm")
(use-modules (texmacs edit edit-misc) (core texmacs tm-define) )
(define (make-inactive-label) (make-expand-arg "MyOwnLabel"))
; EOF my-init-texmacs.scm
Nevertheless when I type M-! or insert label from the menu the old plain
label is being inserted. It seems that my redefinition is simply ignored.
Please, help.
--Leo--
On Friday April 11 2003 04:55, Joris van der Hoeven wrote:
> > Hi All,
> > For the sake of displaying labels I have to redifine
> > make-inactive-label functions. In TeXmacs-1.0.1 the following
> > definition placed in my-init-texmacs.scm did the job
> >
> > (define (make-inactive-label) (make-expand-arg "label"))
> >
> > However, this redifinition has no affect when used with
> > TeXmacs-1.0.1.10. I suspect that it is related to guile module system
> > which is now being used. I am completely unfamiliar with guile and its
> > documentation really sucks.
> >
> > Anyway, how could I redefine a Guile functions previously defined
> > somewhere in TeXmacs at global scope or exported from some module??
>
> Yes, you have to include a '(use-modules xxx)',
> where 'xxx' is the name of the module which defines
> make-inactive-label and make-expand-arg.
>
> Sorry for the inconvenience; as the reorganization proceeds,
> I hope that we will find some time to document the Guile interface.
>
>
>
> _______________________________________________
> Texmacs-dev mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/texmacs-dev