bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] 2014-07-13; Requests for the mark management improvemen


From: Tassilo Horn
Subject: Re: [Bug-AUCTeX] 2014-07-13; Requests for the mark management improvements
Date: Thu, 02 Oct 2014 16:11:12 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Ikumi Keita <address@hidden> writes:

>> 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))
> ...
> ... )
> -----------------------------------------------------------------------

Ah, indeed.  I've only looked at the patch where this context hasn't
been visible.

But are you sure that changing the GNU Emacs version of
`TeX-activate-region' from a no-op to the above has no undesired
side-effects?  I mean, it's also used at some other places in latex.el,
tex-info.el, and context.el.

> 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.

Ok, then let's use that.

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]