David Kastrup wrote:
"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
> Oops, I noticed this before, but forgot to mention it.
> David> Then in the LaTeX-mode-hook, the following gets called
> David> (about which I happen to be entirely clueless).
> (let ((tb (cdadar (or (specifier-spec-list default-toolbar (current-buffer))
> (specifier-spec-list default-toolbar 'global)))))
> (unless (assq preview-icon-toolbar-button tb)
> Use `member', not `assq'. `memq' probably works, too, but toolbars
> are short, the buttons are short and shallow, and this code gets
> called rarely (ie, approximately once per LaTeX file).
ARGHHH! Well, _that_ item of the code I was supposed _not_ to be
clueless about. I said I was an idiot all along.
Sorry for that. Jan-Åke, does it help your problem if you replace the
assq by memq (preview-icon-toolbar-button never gets reassigned, so I
would guess memq would be a safe bet) or member? This should be in
prv-xemacs.el in preview-mode-setup.
memq doesn't work, member does.
"We just typed make"
Stephen Lambrigh, Director of Server Product Marketing at Informix
about porting their Database to Linux