bug#21434: Re: bug#21434: BUG Report: "mark-sexp" function disable.
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"> 发送时间: 2015年9月8日 星期二 > 收件人: "赵瑞昌" > 抄送: 21...@debbugs.gnu.org > 主题: Re: bug#21434: BUG Report: "mark-sexp" function disable. > > 赵瑞昌 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 ) 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 ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
bug#21434: Re: bug#21434: BUG Report: "mark-sexp" function disable.
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 ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
bug#21434: Re: bug#21434: BUG Report: "mark-sexp" function disable.
2015-09-11 3:26 GMT+02:00 赵瑞昌: > 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è ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
bug#21434: BUG Report: "mark-sexp" function disable.
赵瑞昌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 ___ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex