From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: My humble additions to AUCTeX Date: Tue, 14 Jan 2014 11:29:09 +0100 Message-ID: <87iotm6emi.fsf@yahoo.fr> References: <20140113002818.77105028@aga-netbook> <87y52j6d3g.fsf@yahoo.fr> <20140113191650.0fce85c1@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389695419 21842 80.91.229.3 (14 Jan 2014 10:30:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 10:30:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 14 11:30:25 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 1W31GL-0001M3-7r for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 11:30:25 +0100 Original-Received: from localhost ([::1]:47384 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31GK-0004CL-Qa for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Jan 2014 05:30:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31FC-0002kQ-WA for help-gnu-emacs@gnu.org; Tue, 14 Jan 2014 05:29:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W31F6-0005lY-Qa for help-gnu-emacs@gnu.org; Tue, 14 Jan 2014 05:29:14 -0500 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:44122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W31F6-0005lG-K4 for help-gnu-emacs@gnu.org; Tue, 14 Jan 2014 05:29:08 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAE8Q1VKkD4Nx/2dsb2JhbABaDr5dgSh0giUBAQEDAXkFCwgDDhMlDwEESROHbwEMCKsBlD0BhXQXh3eHEAeENwSUOINmhi6LZ4JuQDs Original-Received: from geodiff-mac3.ulb.ac.be (HELO geodiff-mac3) ([164.15.131.113]) by smtp.ulb.ac.be with ESMTP; 14 Jan 2014 11:29:06 +0100 In-Reply-To: <20140113191650.0fce85c1@aga-netbook> (Marcin Borkowski's message of "Mon, 13 Jan 2014 19:16:50 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 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:95388 Archived-At: Marcin Borkowski writes: > Do I guess correctly that you did some (or more) LaTeX typesetting, but > not too much low-level TeX programming, dear Watson? ;) Indeed : I did some lower level (albeit trivial) TeX programming at some point, but not recently -- that might explain why I thought the problems had disappeared. Another reason is that I had changed the syntax class of backslash character in my .emacs (I made it ".", i.e. punctuation), which explains why I use C-M-f (but that doesn't address most of the points you raised). > 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. In order to move by token, I made one further change this morning in my local setup: (modify-syntax-entry ?\\ ". p" LaTeX-mode-syntax-table) which lets C-M-b skip the backslash ("p" here means "prefix"). > 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. C-M-b C-M-k would work with the above modification. Not exactly "one keystroke", indeed, but close enough for me. > 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.) To work around that problem, I write this: \paren{foobar} or \paren*{foobar} which gives (foobar) (Starred version says to adapt height to the content) It's as simple as loading mathtools and having \DeclarePairedDelimiter{\paren}{(}{)} in the preamble. -- Nico.