[Bug: 21.5-b26] Options->Font Menu raises an error

Jeff Mincy jeff at delphioutpost.com
Wed May 10 11:56:16 EDT 2006


On Wed, 10 May 2006, james at xemacs.org wrote:

> Giacomo Boffi <giacomo.boffi at polimi.it> wrote:
>> thank you Jerry, i put your redefinition in the init file, and then i
>> did the mouse gimnastic that i described previously... sorry to say
>> that the problem does not go away
> 
> I don't think putting the redefinition in your init file is going to
> work.  Later, when x-font-menu.elc is loaded, it will overwrite the
> definition in your init file.  Try starting normally, then evaluate the
> redefinition in your *scratch* buffer.

eval-after-load can be used for this type of patch in user init files:

(eval-after-load "x-font-menu"
  (defun whatever-it-was ...)
)

Since the function is going to be fixed in an new release, type check
around the patch would avoid patching a fixed function, something like:
  (when (not (emacs-version>= 21 5 27)) ...) 

-jeff




More information about the XEmacs-Beta mailing list