From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: My humble additions to AUCTeX Date: Mon, 13 Jan 2014 19:16:50 +0100 Organization: WMI UAM Message-ID: <20140113191650.0fce85c1@aga-netbook> References: <20140113002818.77105028@aga-netbook> <87y52j6d3g.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389637028 17136 80.91.229.3 (13 Jan 2014 18:17:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 18:17:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 13 19:17:16 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W2m4X-00062X-2N for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 19:17:13 +0100 Original-Received: from localhost ([::1]:44441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2m4W-0002HV-J1 for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jan 2014 13:17:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2m4H-0002Fr-DF for help-gnu-emacs@gnu.org; Mon, 13 Jan 2014 13:17:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2m4C-0001sq-RY for help-gnu-emacs@gnu.org; Mon, 13 Jan 2014 13:16:57 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:47482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2m4C-0001sm-Kq for help-gnu-emacs@gnu.org; Mon, 13 Jan 2014 13:16:52 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 3007C71154 for ; Mon, 13 Jan 2014 19:16:52 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o6bJESoeWQQA for ; Mon, 13 Jan 2014 19:16:52 +0100 (CET) Original-Received: from aga-netbook (101-138.echostar.pl [213.156.101.138]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 10CD871151 for ; Mon, 13 Jan 2014 19:16:52 +0100 (CET) In-Reply-To: <87y52j6d3g.fsf@yahoo.fr> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.17; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95374 Archived-At: Dnia 2014-01-13, o godz. 17:49:55 Nicolas Richard napisa=C5=82(a): > Marcin Borkowski writes: >=20 > > Hi all, > > > > I've recently started putting together some functions to enhance > > AUCTeX. Currently, a very limited set is ready (getting info about > > the "token" (in the TeX sense) at point and movement by tokens) >=20 > Could you state some of the problems you are solving ? ISTR > token-by-token motion was a problem for me at some point in the past, > but I think these problems disappeared. I use C-M-f and C-M-b. Do I guess correctly that you did some (or more) LaTeX typesetting, but not too much low-level TeX programming, dear Watson? ;) Imagine this: \these\are\four\tokens, where denotes the point. Then, C-M-f moves too far; I want to move by one token (i.e. to get \these\are\four\tokens), not by a whole string of them at the same level of curly braces. Also, I want to level up the word commands to token-aware commands. Imagine this: \these\are\four\tokens. Now, if you press M-DEL, the backslash does not get deleted; if I made its syntax "word", pressing M-DEL would kill *everything* shown here. And I want to be able to kill just the string "\tokens" with one keystroke. Notice that, as I hinted at the beginning, strings of consecutive TeX commands are rather rare in LaTeX documents; but when doing low-level TeX programming, such situations are *extremely* common, and I'd find more fine-grained control over movement very useful then. Last but not least, I aim at commands to work on matching pairs of \left...\right, \bigl...\bigr etc. delimiters. Therefore, I want to be able to walk through the text token by token. (I did look into smartparen, and it doesn't seem to be sophisticated enough to do what I need.) Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University