Hi Tassilo, thank you for your reply! >> (2) TeX-insert-dollar now has a nice feature that repeating type of `$' >> toggles between inline equation, display equation, and no equation >> if TeX-electric-math is properly set up. I have a question about >> the management of the mark with respect to that toggle.
...(snip)... >> If not so, I propose to replace push-mark with just goto-char like >> in the attached patch-2. > Sorry, in the current form this patch cannot go in since `activate-mark' > seems not to be available in XEmacs. Well, I believe that it does not break XEmacs compatibility because the code in question has the following structure: ---- line 627-777 in tex.el ------------------------------------------ ;;; Special support for XEmacs (when (featurep 'xemacs) ... (fset 'TeX-activate-region (symbol-function 'zmacs-activate-region)) ... ... ) ;;; Special support for GNU Emacs (unless (featurep 'xemacs) ... (defun TeX-activate-region () (setq deactivate-mark nil) (activate-mark)) ... ... ) ----------------------------------------------------------------------- Regards, Ikumi Keita P.S. Although I used goto-char in the patch-2, it may be better to use set-mark there. The point is located before the mark if one uses goto-char, while the point is located after the mark if one uses set-mark. _______________________________________________ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex