another problem with auctex: `minor-mode-list'

Uwe Brauer <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>

Hello 

I also noticed the appearance of warning but could not trace it down,
Steve Youngs pointed out (in the xemacs newgroup):

    SY> Seems to work OK on Linux/tetex.  But there is a problem.  The
    SY> following defadvice in tex.el is causing a split window from
    SY> displaying the Compile-Log-Show buffer on (S)XEmacs start up... 

    SY> ,----[ tex.el ]
    SY> | (defadvice hack-one-local-variable (after TeX-hack-one-local-variable-after
    SY> | 					  activate)
    SY> |   "Call minor mode function if minor mode variable is found."
    SY> |   (let ((var (ad-get-arg 0))
    SY> | 	(val (ad-get-arg 1)))
    SY> |     (when (if (boundp 'minor-mode-list)
    SY> | 	      ;; Test which does not require maintenance but `minor-mode-list'.
    SY> | 	      (and (memq var minor-mode-list)
    SY> | 		   (string-match "^\\(La\\)*TeX-.+-mode$" (symbol-name var)))
    SY> | 	    ;; "Manual" test requiring adaption when minor modes change.
    SY> | 	    (memq var '(TeX-PDF-mode TeX-source-specials-mode
    SY> | 				     TeX-interactive-mode TeX-Omega-mode
    SY> | 				     TeX-fold-mode LaTeX-math-mode)))
    SY> |       (if (symbol-value val) (funcall var 1) (funcall var 0)))))
    SY> `----

    SY> It is because `minor-mode-list' doesn't exist in (S)XEmacs, rather, it
    SY> is `minor-mode-alist' so it generates a "reference to free variable
    SY> warning".  Currently, I'm working around it with...

    SY> ,----
    SY> | (defvaralias 'minor-mode-list 'minor-mode-alist)
    SY> `----

    SY> Which is probably not the right solution.


    SY> Another thought I've had about that defadvice is _if_
    SY> `minor-mode-list' is GNU/Emacs' version of `minor-mode-alist', I don't
    SY> see the point of testing to see if it is bound.  Wouldn't 
    SY> (boundp 'minor-mode-list) always return t?

    SY> Or have I got this all wrong and this is just somebody's crazy way of
    SY> testing emacs flavour?


Anybody has an idea for a workaround in auctex for xemacs

Uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.