unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sebastian Urban <mrsebastianurban@gmail.com>
To: 36358@debbugs.gnu.org
Subject: bug#36358: Indentation of not matched braces in latex-mode
Date: Mon, 24 Jun 2019 18:08:45 +0200	[thread overview]
Message-ID: <f987c496-c9f0-9645-1018-7a1f88431892@gmail.com> (raw)

If I use 'fill-paragraph' (M-q) on paragraph, inside things like
\footnote{} or \emph{}, if they're long, text is indented with 2
spaces - look below.  I was able to overcome this by setting
'tex-indent-basic' from 2 to 0, but I think it will affect other
indentations I may want.  Perhaps adding another variable to control
this kind of indentation would be good idea?  AUCTEX has:

      User Option: TeX-brace-indent-level
      - Number of spaces to add to the indentation for each '{' not
        matched by a '}'.

So maybe we could "borrow" it from them?

Lacus tincidunt ultrices.  Lorem ipsum dolor sit amet, consectetuer
adipiscing elit.\footnote{Quisque ullamcorper placerat ipsum.  Cras
   nibh.  Morbi vel justo vitae lacus tincidunt ultrices.  Lorem ipsum
   dolor sit amet, consectetuer adipiscing elit.}  In hac habitasse
platea dictumst.  Integer tempus convallis augue.  Etiam facilisis.
Nunc elementum fermentum wisi.  Integer tempus convallis augue.


S. U.


In GNU Emacs 26.2 (build 1, i686-w64-mingw32)
  of 2019-04-13 built on CIRROCUMULUS
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749
Windowing system distributor 'Microsoft Corp.', version 6.1.7601





             reply	other threads:[~2019-06-24 16:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-24 16:08 Sebastian Urban [this message]
2019-06-24 23:22 ` bug#36358: Indentation of not matched braces in latex-mode Stefan Monnier
2019-06-25  7:30   ` Sebastian Urban
2019-06-25 14:53     ` Stefan Monnier
2019-06-26  7:46       ` Sebastian Urban
2019-06-26 13:49         ` Stefan Monnier
2019-06-27  8:53           ` Sebastian Urban
2019-06-29 20:08             ` Sebastian Urban
2019-06-29 21:02               ` Stefan Monnier
2020-07-09 17:18                 ` Sebastian Urban
2019-07-05 15:20               ` Basil L. Contovounesios

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=f987c496-c9f0-9645-1018-7a1f88431892@gmail.com \
    --to=mrsebastianurban@gmail.com \
    --cc=36358@debbugs.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).