Ar an seachtú lá de mí Lúnasa, scríobh Timothy A Zitzer:
Not sure I followed that. I don't know how to define the
function
gold-binding, I thought it was built-in. If it helps I will attach my
entire init.el file. The gold-key was setup in Emacs to switch between
two sets of macros. The function keys were bound with two sets of
keybindings, and I'm not sure how to reproduce this ability in Xemacs.
What behaviour is different with XEmacs? The EDT package normally binds F1
to edt-default-gold-map, which means that when you hit F1 followed by one of
the other function keys, you’ll call different commands than if you hit the
other function keys individually. Is the package’s behaviour with GNU Emacs
significantly different?
Aidan Kehoe <kehoea(a)parhasard.net>
08/07/2007 12:21 AM
To
Timothy A Zitzer <tzitzer(a)usgs.gov>
cc
"Stephen J. Turnbull" <stephen(a)xemacs.org>, xemacs-beta(a)xemacs.org
Subject
Re: Xemacs Problem
Ar an séiú lá de mí Lúnasa, scríobh Timothy A Zitzer:
> Thanks for your response. I removed the quotation and received the
> message: "Symbol's function definition is void: gold-binding"
>
> Is gold-binding not the right definition?
You need to have a command (= a function with an (interactive) call after
the doc string) available called gold-binding. Once that is true, try the
following:
(if default
(define-key edt-default-global-map 'f12 'gold-binding)
(define-key edt-user-gold-map 'f12 'gold-binding))
> Thanks again for your time,
>
> -Tim
>
>
>
> "Stephen J. Turnbull" <stephen(a)xemacs.org>
> 08/04/2007 02:24 AM
>
> To
> Timothy A Zitzer <tzitzer(a)usgs.gov>
> cc
> xemacs-beta(a)xemacs.org
> Subject
> Xemacs Problem
>
>
>
>
>
>
> Timothy A Zitzer writes:
>
> > (if default
> > (define-key 'edt-default-global-map 'f12 gold-binding)
> > (define-key 'edt-user-gold-map 'f12 gold-binding))
>
> The *-maps are *variables*. Try removing the quotation so that they
> can be evaluated:
>
> (if default
> (define-key edt-default-global-map 'f12 gold-binding)
> (define-key edt-user-gold-map 'f12 gold-binding))
--
On the quay of the little Black Sea port, where the rescued pair came once
more into contact with civilization, Dobrinton was bitten by a dog which was
assumed to be mad, though it may only have been indiscriminating. (Saki)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta