From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Amadeus W.M." Newsgroups: gmane.emacs.help Subject: Re: Ctrl-c { behaviour changed in tex mode] Date: Tue, 4 Apr 2017 13:34:44 +0000 (UTC) Message-ID: References: <20170404103558.GB11945@workstation> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1491312960 23028 195.159.176.226 (4 Apr 2017 13:36:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Apr 2017 13:36:00 +0000 (UTC) User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT b8fc14e git.gnome.org/git/pan2) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 04 15:35:52 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvOce-0004di-K3 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Apr 2017 15:35:48 +0200 Original-Received: from localhost ([::1]:35846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvOcj-0000o0-1a for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Apr 2017 09:35:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvOcG-0000mp-Db for help-gnu-emacs@gnu.org; Tue, 04 Apr 2017 09:35:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvOcD-0003JD-8o for help-gnu-emacs@gnu.org; Tue, 04 Apr 2017 09:35:24 -0400 Original-Received: from [195.159.176.226] (port=55531 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvOcD-0003Iv-20 for help-gnu-emacs@gnu.org; Tue, 04 Apr 2017 09:35:21 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cvObu-0000Wu-UD for help-gnu-emacs@gnu.org; Tue, 04 Apr 2017 15:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@blaine.gmane.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:112685 Archived-At: On Tue, 04 Apr 2017 12:35:58 +0200, hector wrote: > On Mon, Apr 03, 2017 at 11:07:33PM +0000, Amadeus W.M. wrote: >> In tex mode Ctrl-c { used to put a pair of {} around the cursor, making >> it ready to write in between the braces. >> >> After a recent update, Ctrl-c { still introduces a pair of {} but if >> inside that I do another Ctrl-c { then it introduces a newline too, >> like this: >> >> \sqrt{\hat{} >> } >> >> i.e. the outer most closing brace goes on to the next line. That's very >> annoying. Where do I customize Ctrl-c back to how it used to be? > > I don't know because I'm using an old version. The great thing about > Emacs is that if you can't customize it using variables, you can always > go to the source. > > Since my version is old I'm just guessing. > > I see that it runs the command tex-insert-braces. Try that command with > M-x tex-insert-braces in case the binding has been changed. > > You can see the definition with "C-hf" (describe-function) and visit the > source. Thanks, that's a good start. I looked at the tex-insert-braces definition in tex-mode.el and this is all I've found: (define-skeleton tex-insert-braces "Make a pair of braces and be poised to type inside of them." nil ?\{ _ ?}) I don't know lisp so that's very cryptic for me. I don't know what might trigger it to insert a new line when doing nested C-c {