GNU logs - #21154, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#21154: 24.5.50; LaTeX mode complains about mismatched parentheses on end commands
Resent-From: Jeff Clough <jvc@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 29 Jul 2015 06:08:01 +0000
Resent-Message-ID: <handler.21154.B.14381500443255 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 21154
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 21154 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.14381500443255
          (code B ref -1); Wed, 29 Jul 2015 06:08:01 +0000
Received: (at submit) by debbugs.gnu.org; 29 Jul 2015 06:07:24 +0000
Received: from localhost ([127.0.0.1]:33199 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ZKKWQ-0000qQ-L4
	for submit <at> debbugs.gnu.org; Wed, 29 Jul 2015 02:07:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40803)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jvc@HIDDEN>) id 1ZKGJ6-0001To-1K
 for submit <at> debbugs.gnu.org; Tue, 28 Jul 2015 21:37:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jvc@HIDDEN>) id 1ZKGJ4-0001PC-HT
 for submit <at> debbugs.gnu.org; Tue, 28 Jul 2015 21:37:19 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52195)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <jvc@HIDDEN>)
 id 1ZKGJ4-0001P3-FR
 for submit <at> debbugs.gnu.org; Tue, 28 Jul 2015 21:37:18 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54275)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jvc@HIDDEN>) id 1ZKGJ3-0003V8-29
 for bug-gnu-emacs@HIDDEN; Tue, 28 Jul 2015 21:37:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jvc@HIDDEN>) id 1ZKGIx-0001FX-SC
 for bug-gnu-emacs@HIDDEN; Tue, 28 Jul 2015 21:37:16 -0400
Received: from [108.167.131.214] (port=46023 helo=kb1vqh.arvixevps.com)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <jvc@HIDDEN>)
 id 1ZKGIx-0001EU-OO
 for bug-gnu-emacs@HIDDEN; Tue, 28 Jul 2015 21:37:11 -0400
Received: from cpe-74-69-219-28.ne.res.rr.com ([74.69.219.28]:54132
 helo=jeff-Inspiron-3537)
 by kb1vqh.arvixevps.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128)
 (Exim 4.85) (envelope-from <jvc@HIDDEN>) id 1ZKFTS-000DYj-EX
 for bug-gnu-emacs@HIDDEN; Tue, 28 Jul 2015 17:43:58 -0700
From: Jeff Clough <jvc@HIDDEN>
Date: Tue, 28 Jul 2015 20:43:55 -0400
Message-ID: <87h9oneqt0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - kb1vqh.arvixevps.com
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - ijmp.net
X-Get-Message-Sender-Via: kb1vqh.arvixevps.com: authenticated_id: jvc@HIDDEN
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Mailman-Approved-At: Wed, 29 Jul 2015 02:07:21 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


When writing LaTeX, typing the closing curly brace of an end
command (\end{document} for instance) causes a "Mismatched parentheses"
complaint to appear in the minibuffer, even when this seems to be false.

Steps to reproduce:

Create a new ".tex" file with the following contents (note the missing
curly brace at the very end...

\documentclass{article}
\begin{document}
\end{document

Watch the minibuffer, type the closing curly brace, and witness the
complaint. The only ever appears to happen on an end command, and it
happens on every single end command no matter where it appears.



In GNU Emacs 24.5.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2015-07-02 on jeff-Inspiron-3537
Repository revision: a5e6f33b4c8222ad62fdd7ff4bb0f8c5fac432c1
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
System Description:	Ubuntu 14.04.2 LTS

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Shell

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Recent messages:
Reading active file via nndraft...done
Checking new news...done
No news is good news
Are you sure you want to quit reading news? (y or n) y
Saving file /home/jeff/.newsrc...
Wrote /home/jeff/.newsrc
Saving /home/jeff/.newsrc.eld...
Saving file /home/jeff/.newsrc.eld...
Wrote /home/jeff/.newsrc.eld
Saving /home/jeff/.newsrc.eld...done

Load-path shadows:
None found.

Features:
(shadow emacsbug mule-util smiley gnus-cite gnus-async gnus-bcklg
gnus-draft gnus-ml pcmpl-unix mailalias mail-extr sort nndraft nnmh
nnfolder utf-7 gnutls network-stream starttls nnimap parse-time tls utf7
netrc gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg
gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap
nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source
smtpmail auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv
eieio-core password-cache sendmail gnus-start gnus-spec gnus-int
gnus-range message rfc822 mml mml-sec mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils
mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util
mail-prsvr wid-edit manoj-dark-theme ob-sh shell ob-python server
web-mode advice help-fns derived disp-table ox-odt rng-loc rng-uri
rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns
nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html ox-ascii
ox-publish ox org-element edmacro kmacro cl-loaddefs cl-lib org
org-macro org-footnote org-pcomplete pcomplete org-list org-faces
org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob
ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint
ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs
format-spec find-func cal-menu easymenu calendar cal-loaddefs time-date
tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 281425 21885)
 (symbols 48 36524 20)
 (miscs 40 131 300)
 (strings 32 67759 8501)
 (string-bytes 1 2153683)
 (vectors 16 28380)
 (vector-slots 8 597568 11077)
 (floats 8 286 597)
 (intervals 56 572 110)
 (buffers 960 21)
 (heap 1024 29658 8203))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Jeff Clough <jvc@HIDDEN>
Subject: bug#21154: Acknowledgement (24.5.50; LaTeX mode complains about
 mismatched parentheses on end commands)
Message-ID: <handler.21154.B.14381500443255.ack <at> debbugs.gnu.org>
References: <87h9oneqt0.fsf@HIDDEN>
X-Gnu-PR-Message: ack 21154
X-Gnu-PR-Package: emacs
Reply-To: 21154 <at> debbugs.gnu.org
Date: Wed, 29 Jul 2015 06:08:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 21154 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
21154: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21154
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#21154: 24.5.50; LaTeX mode complains about mismatched parentheses on end commands
Resent-From: Marcin Borkowski <mbork@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 30 Apr 2016 12:15:02 +0000
Resent-Message-ID: <handler.21154.B21154.146201844913970 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 21154
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Jeff Clough <jvc@HIDDEN>
Cc: 21154 <at> debbugs.gnu.org
Received: via spool by 21154-submit <at> debbugs.gnu.org id=B21154.146201844913970
          (code B ref 21154); Sat, 30 Apr 2016 12:15:02 +0000
Received: (at 21154) by debbugs.gnu.org; 30 Apr 2016 12:14:09 +0000
Received: from localhost ([127.0.0.1]:56448 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1awTme-0003dB-Ie
	for submit <at> debbugs.gnu.org; Sat, 30 Apr 2016 08:14:09 -0400
Received: from mail.mojserwer.eu ([195.110.48.8]:55535)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbork@HIDDEN>) id 1awTmX-0003ca-Vx
 for 21154 <at> debbugs.gnu.org; Sat, 30 Apr 2016 08:14:03 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id 65556B1E822;
 Sat, 30 Apr 2016 14:13:57 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id HXtC1PdYdROs; Sat, 30 Apr 2016 14:13:49 +0200 (CEST)
Received: from localhost (98-171.echostar.pl [213.156.98.171])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id 5CDA3B1E81F;
 Sat, 30 Apr 2016 14:13:49 +0200 (CEST)
From: Marcin Borkowski <mbork@HIDDEN>
References: <87h9oneqt0.fsf@HIDDEN>
Date: Sat, 30 Apr 2016 14:13:48 +0200
In-Reply-To: <87h9oneqt0.fsf@HIDDEN> (Jeff Clough's message of "Tue, 28 Jul
 2015 20:43:55 -0400")
Message-ID: <87wpnfthtv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 2015-07-28, at 20:43, Jeff Clough <jvc@HIDDEN> wrote:

> When writing LaTeX, typing the closing curly brace of an end
> command (\end{document} for instance) causes a "Mismatched parentheses"
> complaint to appear in the minibuffer, even when this seems to be false.
>
> Steps to reproduce:
>
> Create a new ".tex" file with the following contents (note the missing
> curly brace at the very end...
>
> \documentclass{article}
> \begin{document}
> \end{document
>
> Watch the minibuffer, type the closing curly brace, and witness the
> complaint. The only ever appears to happen on an end command, and it
> happens on every single end command no matter where it appears.

Confirmed on GNU Emacs 25.1.50.9 (commit a3b46e0).  I'll try to
investigate it.

Best,

-- 
Marcin




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#21154: 24.5.50; LaTeX mode complains about mismatched parentheses on end commands
Resent-From: Marcin Borkowski <mbork@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 02 May 2016 10:33:01 +0000
Resent-Message-ID: <handler.21154.B21154.14621851595004 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 21154
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Jeff Clough <jvc@HIDDEN>
Cc: 21154 <at> debbugs.gnu.org
Received: via spool by 21154-submit <at> debbugs.gnu.org id=B21154.14621851595004
          (code B ref 21154); Mon, 02 May 2016 10:33:01 +0000
Received: (at 21154) by debbugs.gnu.org; 2 May 2016 10:32:39 +0000
Received: from localhost ([127.0.0.1]:33040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1axB9X-0001IY-Fk
	for submit <at> debbugs.gnu.org; Mon, 02 May 2016 06:32:39 -0400
Received: from mail.mojserwer.eu ([195.110.48.8]:42989)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbork@HIDDEN>) id 1axB9R-0001IL-Dw
 for 21154 <at> debbugs.gnu.org; Mon, 02 May 2016 06:32:33 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id 46533B288CF;
 Mon,  2 May 2016 12:32:28 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id e7PSYTwQclSl; Mon,  2 May 2016 12:32:23 +0200 (CEST)
Received: from localhost (98-171.echostar.pl [213.156.98.171])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id 15E5CB288CB;
 Mon,  2 May 2016 12:32:23 +0200 (CEST)
From: Marcin Borkowski <mbork@HIDDEN>
References: <87h9oneqt0.fsf@HIDDEN> <87wpnfthtv.fsf@HIDDEN>
Date: Mon, 02 May 2016 12:32:19 +0200
In-Reply-To: <87wpnfthtv.fsf@HIDDEN> (Marcin Borkowski's message of "Sat, 30
 Apr 2016 14:13:48 +0200")
Message-ID: <87pot4zr64.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On 2016-04-30, at 14:13, Marcin Borkowski <mbork@HIDDEN> wrote:

> On 2015-07-28, at 20:43, Jeff Clough <jvc@HIDDEN> wrote:
>
>> When writing LaTeX, typing the closing curly brace of an end
>> command (\end{document} for instance) causes a "Mismatched parentheses"
>> complaint to appear in the minibuffer, even when this seems to be false.
>>
>> Steps to reproduce:
>>
>> Create a new ".tex" file with the following contents (note the missing
>> curly brace at the very end...
>>
>> \documentclass{article}
>> \begin{document}
>> \end{document
>>
>> Watch the minibuffer, type the closing curly brace, and witness the
>> complaint. The only ever appears to happen on an end command, and it
>> happens on every single end command no matter where it appears.
>
> Confirmed on GNU Emacs 25.1.50.9 (commit a3b46e0).  I'll try to
> investigate it.

Here's my conjecture: the problematic message is displayed by
`blink-matching-open'.  After cursory examination, it seems that the
problem is caused by the fact that `forward-sexp-function' in tex-mode
is trying to be smart and jumps to the beginning of the environment when
after "\end{...}".  Since there is no opening brace there,
`blink-matching-open' thinks there's a mismatch.

I'll try to come up with a patch.

Incidentally, AUC-TeX does not have this problem.

Best,

-- 
Marcin




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#21154: 24.5.50; LaTeX mode complains about mismatched parentheses on end commands
Resent-From: Marcin Borkowski <mbork@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 06 May 2016 12:58:02 +0000
Resent-Message-ID: <handler.21154.B21154.146253942923925 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 21154
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Jeff Clough <jvc@HIDDEN>
Cc: 21154 <at> debbugs.gnu.org
Received: via spool by 21154-submit <at> debbugs.gnu.org id=B21154.146253942923925
          (code B ref 21154); Fri, 06 May 2016 12:58:02 +0000
Received: (at 21154) by debbugs.gnu.org; 6 May 2016 12:57:09 +0000
Received: from localhost ([127.0.0.1]:41229 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ayfJZ-0006Dj-Ne
	for submit <at> debbugs.gnu.org; Fri, 06 May 2016 08:57:09 -0400
Received: from mail.mojserwer.eu ([195.110.48.8]:59326)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbork@HIDDEN>) id 1ayfJU-0006DG-5h
 for 21154 <at> debbugs.gnu.org; Fri, 06 May 2016 08:57:04 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.mojserwer.eu (Postfix) with ESMTP id 945FFB3F9AB;
 Fri,  6 May 2016 14:56:58 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu
Received: from mail.mojserwer.eu ([127.0.0.1])
 by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id pOMPk+S7w8Cj; Fri,  6 May 2016 14:56:54 +0200 (CEST)
Received: from localhost (unknown [IPv6:2001:808:114:6:a288:b4ff:fe90:5e24])
 by mail.mojserwer.eu (Postfix) with ESMTPSA id 4886FB3F9A9;
 Fri,  6 May 2016 14:56:54 +0200 (CEST)
References: <87h9oneqt0.fsf@HIDDEN> <87wpnfthtv.fsf@HIDDEN>
 <87pot4zr64.fsf@HIDDEN>
User-agent: mu4e 0.9.13; emacs 25.1.50.9
From: Marcin Borkowski <mbork@HIDDEN>
In-reply-to: <87pot4zr64.fsf@HIDDEN>
Date: Fri, 06 May 2016 14:56:50 +0200
Message-ID: <87zis3cpkd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


On 2016-05-02, at 12:32, Marcin Borkowski <mbork@HIDDEN> wrote:

> On 2016-04-30, at 14:13, Marcin Borkowski <mbork@HIDDEN> wrote:
>
>> On 2015-07-28, at 20:43, Jeff Clough <jvc@HIDDEN> wrote:
>>
>>> When writing LaTeX, typing the closing curly brace of an end
>>> command (\end{document} for instance) causes a "Mismatched parentheses"
>>> complaint to appear in the minibuffer, even when this seems to be false.
>>>
>>> Steps to reproduce:
>>>
>>> Create a new ".tex" file with the following contents (note the missing
>>> curly brace at the very end...
>>>
>>> \documentclass{article}
>>> \begin{document}
>>> \end{document
>>>
>>> Watch the minibuffer, type the closing curly brace, and witness the
>>> complaint. The only ever appears to happen on an end command, and it
>>> happens on every single end command no matter where it appears.
>>
>> Confirmed on GNU Emacs 25.1.50.9 (commit a3b46e0).  I'll try to
>> investigate it.
>
> Here's my conjecture: the problematic message is displayed by
> `blink-matching-open'.  After cursory examination, it seems that the
> problem is caused by the fact that `forward-sexp-function' in tex-mode
> is trying to be smart and jumps to the beginning of the environment when
> after "\end{...}".  Since there is no opening brace there,
> `blink-matching-open' thinks there's a mismatch.
>
> I'll try to come up with a patch.
>
> Incidentally, AUC-TeX does not have this problem.

OK, so it seems a tad harder than I thought.  I mean, making a patch
that works is easy; making a patch that works _and_ doesn't break
anything else may be slightly tricky.

My proposal is to temporarily bind `forward-sexp-function' to nil in
`blink-matching-open' so that it finds the opening brace correctly.
(Effectively, making `forward-sexp' fall back to `scan-sexps'.)  Could
anyone imagine a situation where this would break something?  There
doesn't seem to exist a lot of modes in core Emacs which set
`forward-sexp-function' to a non-nil value, so I may just look at all
occurences of that variable in the codebase if that is reasonable.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.