GNU bug report logs - #21434
BUG Report: "mark-sexp" function disable.

Previous Next

Package: auctex;

Reported by: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>

Date: Tue, 8 Sep 2015 07:03:02 UTC

Severity: normal

Tags: wontfix

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21434 in the body.
You can then email your comments to 21434 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Tue, 08 Sep 2015 07:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Tue, 08 Sep 2015 07:03:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
To: bug-auctex <at> gnu.org
Subject: BUG Report: "mark-sexp" function disable.
Date: Tue, 8 Sep 2015 13:23:43 +0800 (CST)
Dear Developer,

When enter a `*.tex' file and initiate auctex(11.86), the function `mark-sexp'(and also `forward/backward-sexp) is disabled.
The correspond key-bindings (C-M-@ or ESC <C-left/right>) also get no responses (which are well previously).

Thank you for your response!

Rechead.

Emacs  : GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2013-05-17 on komainu, modified by Debian
Package: 11.86





Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Tue, 08 Sep 2015 07:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: Mosè Giordano <mose <at> gnu.org>
To: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
Cc: 21434 <at> debbugs.gnu.org
Subject: Re: bug#21434: BUG Report: "mark-sexp" function disable.
Date: Tue, 8 Sep 2015 09:31:22 +0200
Hi!

2015-09-08 7:23 GMT+02:00 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>:
> Dear Developer,
>
> When enter a `*.tex' file and initiate auctex(11.86), the function `mark-sexp'(and also `forward/backward-sexp) is disabled.
> The correspond key-bindings (C-M-@ or ESC <C-left/right>) also get no responses (which are well previously).

I can't reproduce your bug, at least not with AUCTeX 11.88, C-M-@ and
C-M-left/right do work for me.  Are you sure there is nothing in your
init file disabling this feature?  Try opening Emacs with

    emacs -q

in order not to load your init file.

Bye,
Mosè




Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Tue, 08 Sep 2015 07:50:01 GMT) Full text and rfc822 format available.

Message #11 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
Cc: 21434 <at> debbugs.gnu.org
Subject: Re: bug#21434: BUG Report: "mark-sexp" function disable.
Date: Tue, 08 Sep 2015 09:49:36 +0200
赵瑞昌 <zhaoruichang <at> tsinghua.org.cn> writes:

Hi!

> When enter a `*.tex' file and initiate auctex(11.86), the function
> `mark-sexp'(and also `forward/backward-sexp) is disabled.  The
> correspond key-bindings (C-M-@ or ESC <C-left/right>) also get no
> responses (which are well previously).

What do you mean with the functions are being disabled, and the key
bindings don't get responses?

For me, all these functions work and are bound to their usual keys in a
buffer of a tex file.

> Emacs  : GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
>  of 2013-05-17 on komainu, modified by Debian
> Package: 11.86

11.86 is more than five years old, and your Emacs version is quite
dated, too.  Could you please try again with at least a recent AUCTeX
version, e.g., 11.88?

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Fri, 11 Sep 2015 01:34:02 GMT) Full text and rfc822 format available.

Message #14 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
To: Mosè Giordano <mose <at> gnu.org>
Cc: 21434 <at> debbugs.gnu.org
Subject: Re:  Re: bug#21434: BUG Report: "mark-sexp" function disable.
Date: Fri, 11 Sep 2015 09:26:44 +0800 (CST)
Thank you Mosè, for your reply.

I have a try `emacs -q'. The problem still exist.
`mark-sexp' is expected to mark the whole range of env., but only the ``\begin'' was marked.
And this is reproduced by 11.88.
Someone told me the emacs is dated. I'll try a new one, to have a test.

Thanks a lot, again!

> -----原始邮件-----
> 发件人: "Mosè Giordano" <mose <at> gnu.org>
> 发送时间: 2015年9月8日 星期二
> 收件人: "赵瑞昌" <zhaoruichang <at> tsinghua.org.cn>
> 抄送: 21434 <at> debbugs.gnu.org
> 主题: Re: bug#21434: BUG Report: "mark-sexp" function disable.
> 
> Hi!
> 
> 2015-09-08 7:23 GMT+02:00 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>:
> > Dear Developer,
> >
> > When enter a `*.tex' file and initiate auctex(11.86), the function `mark-sexp'(and also `forward/backward-sexp) is disabled.
> > The correspond key-bindings (C-M-@ or ESC <C-left/right>) also get no responses (which are well previously).
> 
> I can't reproduce your bug, at least not with AUCTeX 11.88, C-M-@ and
> C-M-left/right do work for me.  Are you sure there is nothing in your
> init file disabling this feature?  Try opening Emacs with
> 
>     emacs -q
> 
> in order not to load your init file.
> 
> Bye,
> Mosè





Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Fri, 11 Sep 2015 08:34:02 GMT) Full text and rfc822 format available.

Message #17 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
To: "Tassilo Horn" <tsdh <at> gnu.org>
Cc: 21434 <at> debbugs.gnu.org
Subject: Re:  Re: bug#21434: BUG Report: "mark-sexp" function disable.
Date: Fri, 11 Sep 2015 16:26:32 +0800 (CST)
Hi, Tassilo,

Thanks for your reply.
I have updated the emacs to 24.5.1, and installed auctex 11.88.8 by `package-list-packages'.
however, the problem seems still exist:
when `C-M-@' (mark-sexp) at the beginning of a `\begin{...', only `\begin' canbe marked, instead of the whole env.
And also the `forward/backward-sexp' can only effect to the `\begin'.

Would you have any other suggestions? 
Thanks again!

> -----原始邮件-----
> 发件人: "Tassilo Horn" <tsdh <at> gnu.org>
> 发送时间: 2015年9月8日 星期二
> 收件人: "赵瑞昌" <zhaoruichang <at> tsinghua.org.cn>
> 抄送: 21434 <at> debbugs.gnu.org
> 主题: Re: bug#21434: BUG Report: "mark-sexp" function disable.
> 
> 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn> writes:
> 
> Hi!
> 
> > When enter a `*.tex' file and initiate auctex(11.86), the function
> > `mark-sexp'(and also `forward/backward-sexp) is disabled.  The
> > correspond key-bindings (C-M-@ or ESC <C-left/right>) also get no
> > responses (which are well previously).
> 
> What do you mean with the functions are being disabled, and the key
> bindings don't get responses?
> 
> For me, all these functions work and are bound to their usual keys in a
> buffer of a tex file.
> 
> > Emacs  : GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10)
> >  of 2013-05-17 on komainu, modified by Debian
> > Package: 11.86
> 
> 11.86 is more than five years old, and your Emacs version is quite
> dated, too.  Could you please try again with at least a recent AUCTeX
> version, e.g., 11.88?
> 
> Bye,
> Tassilo





Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Fri, 11 Sep 2015 08:53:02 GMT) Full text and rfc822 format available.

Message #20 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: gojjoe <at> gmail.com
To: 21434 <at> debbugs.gnu.org
Subject: Re: bug#21434: Re: bug#21434: BUG Report: "mark-sexp" function
 disable.
Date: Fri, 11 Sep 2015 10:52:23 +0200
On Fri150911 10:26, 赵瑞昌 wrote:

> when `C-M-@' (mark-sexp) at the beginning of a `\begin{...', only `\begin' canbe marked, instead of the whole env.
> And also the `forward/backward-sexp' can only effect to the `\begin'.

I confirm this, with the same versions (emacs on Windows). I 
thought that was the intended behaviour.

Cheers,
J




Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Fri, 11 Sep 2015 11:19:02 GMT) Full text and rfc822 format available.

Message #23 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: Mosè Giordano <mose <at> gnu.org>
To: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
Cc: 21434 <at> debbugs.gnu.org
Subject: Re: Re: bug#21434: BUG Report: "mark-sexp" function disable.
Date: Fri, 11 Sep 2015 13:17:39 +0200
2015-09-11 3:26 GMT+02:00 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>:
> Thank you Mosè, for your reply.
>
> I have a try `emacs -q'. The problem still exist.
> `mark-sexp' is expected to mark the whole range of env., but only the ``\begin'' was marked.

You're telling that `mark-sexp' is expected to mark the environment,
but this isn't true: `mark-sexp' is expect to mark "parentheses".  If
you want to mark an environment use `C-c .', bound to
`LaTeX-mark-environment'.

Bye,
Mosè




Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Fri, 11 Sep 2015 12:44:01 GMT) Full text and rfc822 format available.

Message #26 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: Tassilo Horn <tsdh <at> gnu.org>
To: 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
Cc: 21434 <at> debbugs.gnu.org
Subject: Re: bug#21434: BUG Report: "mark-sexp" function disable.
Date: Fri, 11 Sep 2015 14:42:55 +0200
赵瑞昌 <zhaoruichang <at> tsinghua.org.cn> writes:

> I have updated the emacs to 24.5.1, and installed auctex 11.88.8 by
> `package-list-packages'.  however, the problem seems still exist: when
> `C-M-@' (mark-sexp) at the beginning of a `\begin{...', only `\begin'
> canbe marked, instead of the whole env.  And also the
> `forward/backward-sexp' can only effect to the `\begin'.

Ah, now I get what you are saying.  Well, (La)TeX has no real notion of
a sexp, so `forward-sexp' and `backward-sexp' basically move over words
and symbols (TeX macros), or from one (, [, or { to the respective
closing paren/bracket.

But you can give Magnar's awesome expand-region a try.

  https://github.com/magnars/expand-region.el

That has support for expanding the current region also in LaTeX specific
ways.  E.g. with

\begin{enumerate}
\item foo
\item _b_ar
\end{enumerate}

where the _b_ means point is on the b in bar, calling er/expand-region
results in

\begin{enumerate}
\item foo
\item _bar_
\end{enumerate}

where the complete _bar_ is marked, another call gives

\begin{enumerate}
\item foo
_\item bar_
\end{enumerate}

where the complete \item ... is marked, another two calls mark all
items, and a final call markes the complete environment.

I think that's exactly what you want, right?  And expand-region.el can
do this magic not only for latex but also for lisp, ruby, python, xml,
javascript, CSS, and what not.

Bye,
Tassilo




Information forwarded to bug-auctex <at> gnu.org:
bug#21434; Package auctex. (Mon, 04 Mar 2024 10:42:01 GMT) Full text and rfc822 format available.

Message #29 received at 21434 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: 21434 <at> debbugs.gnu.org,
 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn>
Subject: Re: bug#21434: BUG Report: "mark-sexp" function disable.
Date: Mon, 04 Mar 2024 11:40:49 +0100
Tassilo Horn <tsdh <at> gnu.org> writes:

> 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn> writes:
>
>> I have updated the emacs to 24.5.1, and installed auctex 11.88.8 by
>> `package-list-packages'.  however, the problem seems still exist: when
>> `C-M-@' (mark-sexp) at the beginning of a `\begin{...', only `\begin'
>> canbe marked, instead of the whole env.  And also the
>> `forward/backward-sexp' can only effect to the `\begin'.
>
> Ah, now I get what you are saying.  Well, (La)TeX has no real notion of
> a sexp, so `forward-sexp' and `backward-sexp' basically move over words
> and symbols (TeX macros), or from one (, [, or { to the respective
> closing paren/bracket.
>
> But you can give Magnar's awesome expand-region a try.
>
>   https://github.com/magnars/expand-region.el
>
> That has support for expanding the current region also in LaTeX specific
> ways.  E.g. with
>
> \begin{enumerate}
> \item foo
> \item _b_ar
> \end{enumerate}
>
> where the _b_ means point is on the b in bar, calling er/expand-region
> results in
>
> \begin{enumerate}
> \item foo
> \item _bar_
> \end{enumerate}
>
> where the complete _bar_ is marked, another call gives
>
> \begin{enumerate}
> \item foo
> _\item bar_
> \end{enumerate}
>
> where the complete \item ... is marked, another two calls mark all
> items, and a final call markes the complete environment.
>
> I think that's exactly what you want, right?  And expand-region.el can
> do this magic not only for latex but also for lisp, ruby, python, xml,
> javascript, CSS, and what not.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I think this is a "wontfix", therefore I'm closing this report.

Best, Arash




Added tag(s) wontfix. Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 04 Mar 2024 10:43:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 21434 <at> debbugs.gnu.org and 赵瑞昌 <zhaoruichang <at> tsinghua.org.cn> Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 04 Mar 2024 10:43:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Apr 2024 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.