From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Bucaioni Newsgroups: gmane.emacs.bugs Subject: bug#34979: 24.5; indent .tex broken Date: Sun, 7 Apr 2019 01:17:13 +0200 Message-ID: References: <3jmulgqz7r.fsf@fencepost.gnu.org> <87zhp47kfe.fsf@tcd.ie> <87v9zqhif7.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000089cf5f0585e4ce88" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="139949"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34979@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 07 01:18:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCuZh-000aGT-0x for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Apr 2019 01:18:13 +0200 Original-Received: from localhost ([127.0.0.1]:60071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCuZf-0005l4-RV for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Apr 2019 19:18:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCuZZ-0005km-7Y for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 19:18:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCuZX-0007Th-JX for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 19:18:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34027) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCuZW-0007Ss-ED for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 19:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hCuZW-0001Qn-7U for bug-gnu-emacs@gnu.org; Sat, 06 Apr 2019 19:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Bucaioni Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Apr 2019 23:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34979 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 34979-submit@debbugs.gnu.org id=B34979.15545926565469 (code B ref 34979); Sat, 06 Apr 2019 23:18:02 +0000 Original-Received: (at 34979) by debbugs.gnu.org; 6 Apr 2019 23:17:36 +0000 Original-Received: from localhost ([127.0.0.1]:47571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCuZ5-0001Q9-H7 for submit@debbugs.gnu.org; Sat, 06 Apr 2019 19:17:35 -0400 Original-Received: from mail-ot1-f47.google.com ([209.85.210.47]:41187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hCuZ3-0001Pw-C0 for 34979@debbugs.gnu.org; Sat, 06 Apr 2019 19:17:34 -0400 Original-Received: by mail-ot1-f47.google.com with SMTP id 64so8824655otb.8 for <34979@debbugs.gnu.org>; Sat, 06 Apr 2019 16:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XIk4fVM5ZYelRXcuidPtw5GJ4mUEFziNkSrIibfpEcs=; b=dmNzY+BiUCaH0LZRGO79t4ZsCbuf03ki8AMuHNQSICTOCxgbOfzfIaAL/lG+drosm2 36o6Ht5tdLpCS4M7ucWzaPUgTzVnbAuDWvh7zbPmjIv4NUOsCGB0g343L2tmJVePefzZ bJjtuTDE+/YPt0vxiYkJOOnLJE+Vxm0UhgnprIs14a7NHCyCqod/RmW1LFPYNlZNEzMl wNpg9gMx6FM9QgWu77e6YYM9vzu5FxTB+FFSibXDrH+bJkhM9p/p0sbpzQc03KHqNwdM zQuHdpbl7wGRMnI0XZJFoPZWNdSxEFAGvZMNxe7Dqd2j8B59WJdHFmwZCRK2evSln75D 0JcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XIk4fVM5ZYelRXcuidPtw5GJ4mUEFziNkSrIibfpEcs=; b=SQKBJivXcZRGD4jkpSKqACBzeB2AEByI5DubX6a4GeueCLqMOcFDOkoGMahPMbTbdk owMXX4b4D1AYSxNVpImZhI63aqPZOdG72A0FRQAzle6A9BmlTHX/lLRf03X/L+ZyvK0X 8a78KdJ4JEtNQqSYPHbiEpnYWkonhJxoaW3S8HsW6YQn6hgJNPIyQ1MHvLYubdB0zjBu KNj6/Ff1xeezWVjEK1u4z2EFO0J1COEsHuyhl5lT6VjkXpQKcaKhdgIBk4ivUYZMvgzs mBzcMZmwNd0QsJsEIF74DYy/qV+UoAEPSHSZvXsac0eDVZNwlN219/UeQEmiPvLTALgU 8CNA== X-Gm-Message-State: APjAAAVq/i4bxYKyZmG+o8rvKKLeL6YSikNZy7qxaoGDQg6NuXrn0RG8 Qs8ivMjIu7h2aBIzWVUrsU3rVzQwn6eZ1vWV+Sg= X-Google-Smtp-Source: APXvYqwndI9ps8bOpbAToRhoOw6nY61ZXiDnS7b6hP/TQPdDIXdDk1NqcYlesGH0Cenc2uJmcVyrA8qGQuq7KX5NebI= X-Received: by 2002:a9d:5c89:: with SMTP id a9mr13307067oti.12.1554592647727; Sat, 06 Apr 2019 16:17:27 -0700 (PDT) In-Reply-To: <87v9zqhif7.fsf@tcd.ie> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157291 Archived-At: --00000000000089cf5f0585e4ce88 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable as the file had the '.tex' extension, I expected Emacs would indent it by pressing the Tab key Le dim. 7 avr. 2019 00:34, Basil L. Contovounesios a =C3=A9crit : > [Please keep the bug address in the To or Cc header.] > > Thomas Bucaioni writes: > > > As the file was a .tex, I expected Emacs to switch to mark-up mode as > > it does for .c files. > > Sorry, I don't understand what you mean, can you please elaborate? > Which mark-up mode are you referring to? How does it relate to *.c > files? > > By default, Emacs opens *.tex files in tex-mode (see auto-mode-alist). > This is a generic parent mode which tries to guess which specialised > submode to enable (see tex-guess-mode). Evaluating the following, for > example, should place you in a latex-mode buffer: > > (find-file (make-temp-file "my-" nil ".tex")) > > If tex-guess-mode guesses incorrectly, there are several other ways to > specify the desired major mode, e.g. via an auto-mode-alist entry, > file/directory variable, hook, or otherwise (including the obvious > M-x latex-mode RET). > > > Le ven. 5 avr. 2019 =C3=A0 13:36, Basil L. Contovounesios > a =C3=A9crit : > > > > Thomas Bucaioni writes: > > > > > Hello, > > > Someone found a fix on StackExchange : > > > > https://emacs.stackexchange.com/questions/48553/indentation-broken-with-a= ll-inputfiles-tex > > > > > > Le mer. 27 mars 2019 =C3=A0 13:27, Glenn Morris a =C3= =A9crit : > > > > > > Thomas Bucaioni wrote: > > > > > > > When pressing the TAB key, the indentation doesn't happen. Even, > the > > > > text is translated as in a Word or LibreOffice document. > > > > > > Please give a minimal complete example starting from emacs -Q. > > > > > > > In GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.22.11) > > > > > > Please try the current release (26.1 at time of writing). > > > > If the problem is that you were using the wrong major mode, could you > > please elaborate on what the bug is? > > -- > Basil > --00000000000089cf5f0585e4ce88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
as the file had the '.tex' extension, I expected = Emacs would indent it by pressing the Tab key

Le dim. 7 avr. 2019 00:34, Bas= il L. Contovounesios <contovob@tcd.ie= > a =C3=A9crit=C2=A0:
[Pleas= e keep the bug address in the To or Cc header.]

Thomas Bucaioni <thomas.bucaioni@gmail.com> writes:

> As the file was a .tex, I expected Emacs to switch to mark-up mode as<= br> > it does for .c files.

Sorry, I don't understand what you mean, can you please elaborate?
Which mark-up mode are you referring to?=C2=A0 How does it relate to *.c files?

By default, Emacs opens *.tex files in tex-mode (see auto-mode-alist).
This is a generic parent mode which tries to guess which specialised
submode to enable (see tex-guess-mode).=C2=A0 Evaluating the following, for=
example, should place you in a latex-mode buffer:

=C2=A0 (find-file (make-temp-file "my-" nil ".tex"))
If tex-guess-mode guesses incorrectly, there are several other ways to
specify the desired major mode, e.g. via an auto-mode-alist entry,
file/directory variable, hook, or otherwise (including the obvious
M-x latex-mode RET).

> Le ven. 5 avr. 2019 =C3=A0 13:36, Basil L. Contovounesios <contovob@t= cd.ie> a =C3=A9crit :
>
>=C2=A0 Thomas Bucaioni <thomas.bucaioni@gmail.com> wri= tes:
>
>=C2=A0 > Hello,
>=C2=A0 > Someone found a fix on StackExchange :
>=C2=A0 > https://emacs.stackexchange.com/questions/48553/indentatio= n-broken-with-all-inputfiles-tex
>=C2=A0 >
>=C2=A0 > Le mer. 27 mars 2019 =C3=A0 13:27, Glenn Morris <rgm@gnu.org> a =C3=A9crit :
>=C2=A0 >
>=C2=A0 >=C2=A0 Thomas Bucaioni wrote:
>=C2=A0 >
>=C2=A0 >=C2=A0 > When pressing the TAB key, the indentation doesn= 't happen. Even, the
>=C2=A0 >=C2=A0 > text is translated as in a Word or LibreOffice d= ocument.
>=C2=A0 >
>=C2=A0 >=C2=A0 Please give a minimal complete example starting from = emacs -Q.
>=C2=A0 >
>=C2=A0 >=C2=A0 > In GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Ver= sion 3.22.11)
>=C2=A0 >
>=C2=A0 >=C2=A0 Please try the current release (26.1 at time of writi= ng).
>
>=C2=A0 If the problem is that you were using the wrong major mode, coul= d you
>=C2=A0 please elaborate on what the bug is?

--
Basil
--00000000000089cf5f0585e4ce88--