Re: XSLT-process 2.0; XSLT menu shows debug mode on startup.
Brought to you by:
ovidiu
From: Ovidiu P. <ov...@xe...> - 2001-08-09 09:24:44
|
Hi Eugene, On Wed, 8 Aug 2001 17:49:06 -0400, "Eugene Gross" <eug...@em...> wrote: > When I initially load my XML file so that xslt-process gets invoked, > XSLT menu looks like debug mode is ON, and the read-only mode is on > for the buffer, however the xslt-process-debug-mode variable is nil. There must be something wrong, when you load an XML file the first time, you should not be in debug mode. Also it should not happen that you're in debug mode and xslt-process-debug-mode is nil. Something is wrong with your setup or with the code somewhere, but I don't see this behavior here on any of my machines. Could you please send me your .emacs file? > Being far from a lisp guru, I just moved the > '(xslt-process-toggle-debug-mode 0)' call right after > the if statement in xslt-process.el; that fixed the problem. > > (interactive "P") > (setq xslt-process-mode > (if (null arg) > (not xslt-process-mode) > (> (prefix-numeric-value arg) 0))) > (if xslt-process-mode > (xslt-process-toggle-debug-mode 0) > ---------------------------------- > (progn > (easy-menu-add xslt-process-menu) > (xslt-process-setup-minor-mode xslt-process-mode-map > xslt-process-mode-line-string) > ) > (setq minor-mode-alist (remassoc 'xslt-process-mode minor-mode-alist)) > (setq minor-mode-map-alist > (remassoc 'xslt-process-mode minor-mode-map-alist)) > (easy-menu-remove '("XSLT"))) > ;; Force modeline to redisplay > (force-mode-line-update)) This doesn't look like the right thing. The if statement in my original code was setting up the mode if the value of `xslt-process-mode' is non-nil, and disabled it otherwise. In your code you effectively disable the debug mode, but the code doesn't setup the menus and the rest. Moreover, on the "else" clause, your version adds and then removes the menus, which is not a good thing. Could you explain the intent of the change? > PS: I'm an old NeXT veteran, too ;) Glad to see NeXT still lives on through its users ;-) I'm dreaming of going back to Mac OS X some time, but I'm not sure I want to shell out quite a bit of money to buy their proprietary hardware. The OS looks great, I'd love to see it running on PCs, as the old OpenStep did. Greetings, -- Ovidiu Predescu <ov...@cu...> http://orion.nsr.hp.com/ (inside HP's firewall only) http://sourceforge.net/users/ovidiu/ (my SourceForge page) http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff) |