[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Enhancement for brace pairing
From: |
Mosè Giordano |
Subject: |
Re: [AUCTeX-devel] Enhancement for brace pairing |
Date: |
Sat, 28 Sep 2013 00:20:21 +0200 |
Please, ignore my previous message. The insertion of a new line is
needed if he \left-like macro is inserted in a non blank line.
2013/9/28 Mosè Giordano <address@hidden>:
> Hi Ikumi and Tassilo,
>
> I cannot understand why in `TeX-arg-insert-braces' we need to insert a
> newline and then to delete it. Has someone a clue about the
> rationale? The following patch avoids all this (if it's really
> unnecessary):
>
> --8<---------------cut here---------------start------------->8---
> diff --git a/latex.el b/latex.el
> index f59168f..873c57e 100644
> --- a/latex.el
> +++ b/latex.el
> @@ -2204,14 +2204,7 @@ string."
> (setq left-macro (buffer-substring-no-properties
> (point)
> (progn (backward-word 1) (point))))
> - (backward-char)
> - (LaTeX-newline)
> - (indent-according-to-mode)
> - ;; Delete possibly produced blank line.
> - (beginning-of-line 0)
> - (if (looking-at "^[ \t]*$")
> - (progn (delete-horizontal-space)
> - (delete-char 1))))
> + (indent-according-to-mode))
> (let ((left-brace (completing-read
> (TeX-argument-prompt optional prompt
> "Which brace")
> --8<---------------cut here---------------end--------------->8---
>
> Bye,
> Mosè
- Re: [AUCTeX-devel] Enhancement for brace pairing, (continued)
- Re: [AUCTeX-devel] Enhancement for brace pairing, Ikumi Keita, 2013/09/25
- Re: [AUCTeX-devel] Enhancement for brace pairing, Tassilo Horn, 2013/09/26
- Re: [AUCTeX-devel] Enhancement for brace pairing, David Kastrup, 2013/09/26
- Re: [AUCTeX-devel] Enhancement for brace pairing, Tassilo Horn, 2013/09/26
- Re: [AUCTeX-devel] Enhancement for brace pairing, David Kastrup, 2013/09/26
- Re: [AUCTeX-devel] Enhancement for brace pairing, Tassilo Horn, 2013/09/26
- Re: [AUCTeX-devel] Enhancement for brace pairing, Tassilo Horn, 2013/09/26
- Re: [AUCTeX-devel] Enhancement for brace pairing, Ikumi Keita, 2013/09/27
- Re: [AUCTeX-devel] Enhancement for brace pairing, Tassilo Horn, 2013/09/27
- Re: [AUCTeX-devel] Enhancement for brace pairing, Mosè Giordano, 2013/09/27
- Re: [AUCTeX-devel] Enhancement for brace pairing,
Mosè Giordano <=