all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Amadeus W.M." <amadeus84@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Ctrl-c { behaviour changed in tex mode]
Date: Tue, 4 Apr 2017 13:34:44 +0000 (UTC)	[thread overview]
Message-ID: <pan$dbf66$380e9f97$2042986d$ce437a37@verizon.net> (raw)
In-Reply-To: 20170404103558.GB11945@workstation

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 { 






  reply	other threads:[~2017-04-04 13:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 10:35 Ctrl-c { behaviour changed in tex mode] hector
2017-04-04 13:34 ` Amadeus W.M. [this message]
2017-04-04 14:56   ` B.V. Raghav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='pan$dbf66$380e9f97$2042986d$ce437a37@verizon.net' \
    --to=amadeus84@verizon.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.