GNU bug report logs - #30548
2014-11-01; smartparen-latex with delete-selection-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: auctex; Reported by: Abdul-Lateef Haji-Ali <hajiali@HIDDEN>; dated Tue, 20 Feb 2018 14:20:01 UTC; Maintainer for auctex is bug-auctex@HIDDEN.

Message received at 30548 <at> debbugs.gnu.org:


Received: (at 30548) by debbugs.gnu.org; 26 Feb 2018 16:29:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 26 11:29:24 2018
Received: from localhost ([127.0.0.1]:33707 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eqLeW-0004qG-8f
	for submit <at> debbugs.gnu.org; Mon, 26 Feb 2018 11:29:24 -0500
Received: from mail-ot0-f175.google.com ([74.125.82.175]:38263)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>) id 1eqLeU-0004q3-Qb
 for 30548 <at> debbugs.gnu.org; Mon, 26 Feb 2018 11:29:23 -0500
Received: by mail-ot0-f175.google.com with SMTP id 95so481353ote.5
 for <30548 <at> debbugs.gnu.org>; Mon, 26 Feb 2018 08:29:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=user-agent:from:to:subject:date:message-id:mime-version;
 bh=gmI9nj3r58yvu0qIzOaye2QGw+YX8cPJSno4HZdS6No=;
 b=WlBM37vCERx/ulY88ub13HnarvJiE+O3KHwRElgUspUyLNJtkdVr6K1F1Br3PUV5bb
 OP5sAONH+uCO0nNGFoAe0tzpxF0yqgqY3iH1ZGkWq+NzSEUgCa4c/8+y8MxXA3o09RlE
 qu4VxyHCBkSlrO0Ply/Sftry141bBTuSh8yyKn8nA0guqQfR86MqUIpHttH/oigvwwRJ
 YCu3g5wwFV25t2eXcNLxO91kn7ghb3qaNSevzoX7cADDd5OVIIDseSIP0Qr4WgBb73Tz
 UxNf0mzWxBf+ky7Dl57RzK+TR45ClIR1BmprozG5UwSKlD3/y2ers55MwQUnyAEDUqqX
 gCog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:user-agent:from:to:subject:date:message-id
 :mime-version;
 bh=gmI9nj3r58yvu0qIzOaye2QGw+YX8cPJSno4HZdS6No=;
 b=G5Tr8NJIUp8iBIBJL8P+t8JQwgnxQ84IYzeyAYVhL6uFniLDXiTqoNzydPjBC8x5cO
 y4J4LnTj8Jotn4wv/NNvuimzOhBeAjd7tbNp9EsmElqeRSOrVKFuKjWWgdev2X/4lNlq
 LOF4DbydAXtjsgHTsBFbwo7aC2tRs6HMU4LL3ukGWLgUAshcY6Fc1T47VP5mpjaF/i5L
 LJD1SCaOC7xuciOc0dBuR9z3St7HN7+/M1th/WQW0iZAyHkakBjBnkiE2aU+Mgty9mkb
 6IIUdbM6llKjmWu6cMamw1u5EEvR+tIrtPvQf6pwuEKFyEaOPhG9q2OSYfqM78DM8cU/
 b1+w==
X-Gm-Message-State: APf1xPBBO5qT1P86Gk9cMEG34GhS7Wk9lRLd3l/lrqHDIVY4SAp0feW8
 eJ4WRe2euaCAYz2+EyXnbW3LzJxj
X-Google-Smtp-Source: AG47ELvbu7b40uRDCBl3S5RNjeePldxc9epcRR2eszPSIMvGzdQbnmGTZgeYjwBWqHo0s260Ws9CZA==
X-Received: by 10.157.39.36 with SMTP id r33mr7686743ota.321.1519662556757;
 Mon, 26 Feb 2018 08:29:16 -0800 (PST)
Received: from mars (nat-128-62-52-76.public.utexas.edu. [128.62.52.76])
 by smtp.gmail.com with ESMTPSA id e70sm4307160oig.7.2018.02.26.08.29.16
 for <30548 <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 26 Feb 2018 08:29:16 -0800 (PST)
User-agent: mu4e 1.0; emacs 26.0.91
From: Alex Branham <alex.branham@HIDDEN>
To: 30548 <at> debbugs.gnu.org, 
Subject: conflicts with smartparens
Date: Mon, 26 Feb 2018 10:29:57 -0600
Message-ID: <87a7vv90je.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30548
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.0 (/)

There are two smartparens bugs that may be related to this.

https://github.com/Fuco1/smartparens/issues/827

TLDR; enable delete-selection-mode *before* enabling smartparens

and also

https://github.com/Fuco1/smartparens/issues/834

And the workaround here is to rely on smartparens rather than auctex's implementation of $:

(define-key TeX-mode-map (kbd "$") #'self-insert-command)

Hope that helps,
Alex




Information forwarded to bug-auctex@HIDDEN:
bug#30548; Package auctex. Full text available.

Message received at 30548 <at> debbugs.gnu.org:


Received: (at 30548) by debbugs.gnu.org; 23 Feb 2018 16:37:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 23 11:37:30 2018
Received: from localhost ([127.0.0.1]:57884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1epGLh-0005u9-SF
	for submit <at> debbugs.gnu.org; Fri, 23 Feb 2018 11:37:30 -0500
Received: from relay16.mail.ox.ac.uk ([163.1.2.166]:55287)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hajiali@HIDDEN>) id 1epGF9-0005k1-PT
 for 30548 <at> debbugs.gnu.org; Fri, 23 Feb 2018 11:30:44 -0500
Received: from mosfet.maths.ox.ac.uk ([129.67.184.66])
 by relay16.mail.ox.ac.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <hajiali@HIDDEN>)
 id 1epGF3-0006RK-qY; Fri, 23 Feb 2018 16:30:37 +0000
Received: from zimbra-02.maths.ox.ac.uk (zimbra-02.maths.ox.ac.uk
 [129.67.184.14])
 by mosfet.maths.ox.ac.uk (Postfix) with ESMTP id E12CE2093B;
 Fri, 23 Feb 2018 16:30:36 +0000 (GMT)
Date: Fri, 23 Feb 2018 16:30:36 +0000 (GMT)
From: Abdul-Lateef Haji-Ali <AbdulLateef.HajiAli@HIDDEN>
To: Arash Esbati <arash@HIDDEN>
Message-ID: <37988012.1465141.1519403436838.JavaMail.zimbra@HIDDEN>
In-Reply-To: <86bmgfsmdw.fsf@HIDDEN>
References: <j5azi43sq0m.fsf@HIDDEN>
 <861shcrdou.fsf@HIDDEN>
 <1203706250.1352521.1519387226169.JavaMail.zimbra@HIDDEN>
 <86bmgfsmdw.fsf@HIDDEN>
Subject: Re: bug#30548: 2014-11-01; smartparen-latex with delete-selection-mode
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [129.67.184.14]
X-Mailer: Zimbra 8.7.9_GA_1794 (ZimbraWebClient - FF58 (Linux)/8.7.9_GA_1794)
Thread-Topic: bug#30548: 2014-11-01;
 smartparen-latex with delete-selection-mode
Thread-Index: wL0OTyj84P9D5xhvfwktn7Wgpl/Hvw==
X-Oxmail-Spam-Status: score=-0.0 tests=T_RP_MATCHES_RCVD
 -0.0 T_RP_MATCHES_RCVD      Envelope sender domain matches handover relay
 domain
X-Oxmail-Spam-Level: /
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 30548
X-Mailman-Approved-At: Fri, 23 Feb 2018 11:37:27 -0500
Cc: 30548 <30548 <at> debbugs.gnu.org>
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: -2.3 (--)

Sorry. I realize I wasn't clear in my last email. My original bug report was using the latest version of auctex (12.1.0). 
Hence, the bug seems to be in the latest version (as of this writing).

Best,
Abdul

----- Original Message -----
From: "Arash Esbati" <arash@HIDDEN>
To: "Abdul-Lateef Haji-Ali" <AbdulLateef.HajiAli@HIDDEN>
Cc: "30548" <30548 <at> debbugs.gnu.org>
Sent: Friday, 23 February, 2018 16:26:19
Subject: Re: bug#30548: 2014-11-01; smartparen-latex with delete-selection-mode

Abdul-Lateef Haji-Ali <AbdulLateef.HajiAli@HIDDEN> writes:

> Unfortunately, by the time I noticed the bug, I have already had
> multiple updates so I am not sure which version was working.
>
> However, I am pretty sure I am using AUCTeX 12.1.0 right now. I am
> probably using TeXLive 2014 though.
>
> When I use `M-x package-list-packages`
> I have this line:
>   auctex             12.1.0        installed             Integrated environment for *TeX*

It looks good.  What is the situation reg. the bug?  Do you still face
the problem or can I close this report?

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#30548; Package auctex. Full text available.

Message received at 30548 <at> debbugs.gnu.org:


Received: (at 30548) by debbugs.gnu.org; 23 Feb 2018 16:37:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 23 11:37:29 2018
Received: from localhost ([127.0.0.1]:57882 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1epGLh-0005u7-9R
	for submit <at> debbugs.gnu.org; Fri, 23 Feb 2018 11:37:29 -0500
Received: from relay14.mail.ox.ac.uk ([163.1.2.162]:48875)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hajiali@HIDDEN>) id 1epC1n-0005bF-Om
 for 30548 <at> debbugs.gnu.org; Fri, 23 Feb 2018 07:00:40 -0500
Received: from mosfet.maths.ox.ac.uk ([129.67.184.66])
 by relay14.mail.ox.ac.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <hajiali@HIDDEN>)
 id 1epC1a-0001i3-l5; Fri, 23 Feb 2018 12:00:33 +0000
Received: from zimbra-02.maths.ox.ac.uk (zimbra-02.maths.ox.ac.uk
 [129.67.184.14])
 by mosfet.maths.ox.ac.uk (Postfix) with ESMTP id 3F72020939;
 Fri, 23 Feb 2018 12:00:26 +0000 (GMT)
Date: Fri, 23 Feb 2018 12:00:26 +0000 (GMT)
From: Abdul-Lateef Haji-Ali <AbdulLateef.HajiAli@HIDDEN>
To: Arash Esbati <arash@HIDDEN>
Message-ID: <1203706250.1352521.1519387226169.JavaMail.zimbra@HIDDEN>
In-Reply-To: <861shcrdou.fsf@HIDDEN>
References: <j5azi43sq0m.fsf@HIDDEN>
 <861shcrdou.fsf@HIDDEN>
Subject: Re: bug#30548: 2014-11-01; smartparen-latex with delete-selection-mode
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [129.67.184.14]
X-Mailer: Zimbra 8.7.9_GA_1794 (ZimbraWebClient - FF58 (Linux)/8.7.9_GA_1794)
Thread-Topic: bug#30548: 2014-11-01;
 smartparen-latex with delete-selection-mode
Thread-Index: 79OShqu31ZYiaABV1TmalrC4f2FbQA==
X-Oxmail-Spam-Status: score=-0.0 tests=T_RP_MATCHES_RCVD
 -0.0 T_RP_MATCHES_RCVD      Envelope sender domain matches handover relay
 domain
X-Oxmail-Spam-Level: /
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 30548
X-Mailman-Approved-At: Fri, 23 Feb 2018 11:37:27 -0500
Cc: 30548 <at> debbugs.gnu.org
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: -2.3 (--)

Hello,

Unfortunately, by the time I noticed the bug, I have already had multiple updates so 
I am not sure which version was working.
However, I am pretty sure I am using AUCTeX 12.1.0 right now. I am probably using TeXLive 2014 though.

When I use `M-x package-list-packages`
I have this line:
  auctex             12.1.0        installed             Integrated environment for *TeX*

Regards,
Abdul

----- Original Message -----
From: "Arash Esbati" <arash@HIDDEN>
To: "Abdul-Lateef Haji-Ali" <hajiali@HIDDEN>
Cc: 30548 <at> debbugs.gnu.org
Sent: Thursday, 22 February, 2018 20:07:13
Subject: Re: bug#30548: 2014-11-01; smartparen-latex with delete-selection-mode

Abdul-Lateef Haji-Ali <hajiali@HIDDEN> writes:

> In my emacs setup, if I have smartparens-mode enabled with
> smartparens-latex and I open a latex document, type some text then
> select it and type any latex special command (such as $, ", \{, etc...)
> the text gets surrounded by these symbols as expected.
>
> However, if I have delete-selection-mode enabled, then the text is
> deleted instead. Other symbols like {, (, [ still work as expected even
> when delete-selection-mode is enabled.
>
> The weird thing is that this used to work flawlessly before a recent
> update that I cannot quite track. In fact a question was posted here
> https://emacs.stackexchange.com/questions/21315/delete-selection-mode-and
>
> in 2016 and an update to AUCTeX was supposed to fix this issue.
> [...]
> Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
>  of 2017-09-20 on lcy01-07, modified by Debian
> Package: 2014-11-01
           ^^^^^^^^^^

Hi,

can you tell the version of your AUCTeX before your recent update?
Currently, you are using an AUCTeX from 2014.

Maybe you can update AUCTeX manually from ELPA with `M-x list-packages
RET U x' to version 12.1.0 and try it again.

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#30548; Package auctex. Full text available.

Message received at 30548 <at> debbugs.gnu.org:


Received: (at 30548) by debbugs.gnu.org; 23 Feb 2018 16:27:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 23 11:27:04 2018
Received: from localhost ([127.0.0.1]:57869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1epGBc-0005dg-GT
	for submit <at> debbugs.gnu.org; Fri, 23 Feb 2018 11:27:04 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39992)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1epGBa-0005d9-DM
 for 30548 <at> debbugs.gnu.org; Fri, 23 Feb 2018 11:27:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <arash@HIDDEN>) id 1epGBQ-0002Db-A5
 for 30548 <at> debbugs.gnu.org; Fri, 23 Feb 2018 11:26:56 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45294)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <arash@HIDDEN>)
 id 1epGBQ-0002DX-6g; Fri, 23 Feb 2018 11:26:52 -0500
Received: from p5b3263e4.dip0.t-ipconnect.de ([91.50.99.228]:55170 helo=MUTANT)
 by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
 (Exim 4.82) (envelope-from <arash@HIDDEN>)
 id 1epGBP-0004C2-Hz; Fri, 23 Feb 2018 11:26:52 -0500
From: Arash Esbati <arash@HIDDEN>
To: Abdul-Lateef Haji-Ali <AbdulLateef.HajiAli@HIDDEN>
Subject: Re: bug#30548: 2014-11-01; smartparen-latex with delete-selection-mode
References: <j5azi43sq0m.fsf@HIDDEN>
 <861shcrdou.fsf@HIDDEN>
 <1203706250.1352521.1519387226169.JavaMail.zimbra@HIDDEN>
Date: Fri, 23 Feb 2018 17:26:19 +0100
In-Reply-To: <1203706250.1352521.1519387226169.JavaMail.zimbra@HIDDEN>
 (Abdul-Lateef Haji-Ali's message of "Fri, 23 Feb 2018 12:00:26 +0000
 (GMT)")
Message-ID: <86bmgfsmdw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30548
Cc: 30548 <at> debbugs.gnu.org
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: -5.0 (-----)

Abdul-Lateef Haji-Ali <AbdulLateef.HajiAli@HIDDEN> writes:

> Unfortunately, by the time I noticed the bug, I have already had
> multiple updates so I am not sure which version was working.
>
> However, I am pretty sure I am using AUCTeX 12.1.0 right now. I am
> probably using TeXLive 2014 though.
>
> When I use `M-x package-list-packages`
> I have this line:
>   auctex             12.1.0        installed             Integrated environment for *TeX*

It looks good.  What is the situation reg. the bug?  Do you still face
the problem or can I close this report?

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#30548; Package auctex. Full text available.

Message received at 30548 <at> debbugs.gnu.org:


Received: (at 30548) by debbugs.gnu.org; 22 Feb 2018 20:07:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 22 15:07:48 2018
Received: from localhost ([127.0.0.1]:56873 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eox9e-0007eW-VW
	for submit <at> debbugs.gnu.org; Thu, 22 Feb 2018 15:07:48 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53022)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <arash@HIDDEN>) id 1eox9d-0007eI-Bw
 for 30548 <at> debbugs.gnu.org; Thu, 22 Feb 2018 15:07:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <arash@HIDDEN>) id 1eox9V-0002tF-3B
 for 30548 <at> debbugs.gnu.org; Thu, 22 Feb 2018 15:07:40 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45474)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <arash@HIDDEN>)
 id 1eox9U-0002t9-Vr; Thu, 22 Feb 2018 15:07:37 -0500
Received: from p5b3262c0.dip0.t-ipconnect.de ([91.50.98.192]:54030 helo=MUTANT)
 by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256)
 (Exim 4.82) (envelope-from <arash@HIDDEN>)
 id 1eox9U-0001mi-IO; Thu, 22 Feb 2018 15:07:36 -0500
From: Arash Esbati <arash@HIDDEN>
To: Abdul-Lateef Haji-Ali <hajiali@HIDDEN>
Subject: Re: bug#30548: 2014-11-01; smartparen-latex with delete-selection-mode
References: <j5azi43sq0m.fsf@HIDDEN>
Date: Thu, 22 Feb 2018 21:07:13 +0100
In-Reply-To: <j5azi43sq0m.fsf@HIDDEN> (Abdul-Lateef
 Haji-Ali's message of "Tue, 20 Feb 2018 14:18:49 +0000")
Message-ID: <861shcrdou.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 30548
Cc: 30548 <at> debbugs.gnu.org
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: -5.0 (-----)

Abdul-Lateef Haji-Ali <hajiali@HIDDEN> writes:

> In my emacs setup, if I have smartparens-mode enabled with
> smartparens-latex and I open a latex document, type some text then
> select it and type any latex special command (such as $, ", \{, etc...)
> the text gets surrounded by these symbols as expected.
>
> However, if I have delete-selection-mode enabled, then the text is
> deleted instead. Other symbols like {, (, [ still work as expected even
> when delete-selection-mode is enabled.
>
> The weird thing is that this used to work flawlessly before a recent
> update that I cannot quite track. In fact a question was posted here
> https://emacs.stackexchange.com/questions/21315/delete-selection-mode-and
>
> in 2016 and an update to AUCTeX was supposed to fix this issue.
> [...]
> Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
>  of 2017-09-20 on lcy01-07, modified by Debian
> Package: 2014-11-01
           ^^^^^^^^^^

Hi,

can you tell the version of your AUCTeX before your recent update?
Currently, you are using an AUCTeX from 2014.

Maybe you can update AUCTeX manually from ELPA with `M-x list-packages
RET U x' to version 12.1.0 and try it again.

Best, Arash




Information forwarded to bug-auctex@HIDDEN:
bug#30548; Package auctex. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Feb 2018 14:19:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 20 09:19:35 2018
Received: from localhost ([127.0.0.1]:52293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eo8lX-0008AS-Ga
	for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 09:19:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35425)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hajiali@HIDDEN>) id 1eo8lV-0008AG-Vz
 for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 09:19:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <hajiali@HIDDEN>) id 1eo8lP-0007VQ-6f
 for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 09:19:24 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58623)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <hajiali@HIDDEN>)
 id 1eo8lP-0007VJ-1r
 for submit <at> debbugs.gnu.org; Tue, 20 Feb 2018 09:19:23 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54618)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <hajiali@HIDDEN>) id 1eo8lN-00037p-Br
 for bug-auctex@HIDDEN; Tue, 20 Feb 2018 09:19:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <hajiali@HIDDEN>) id 1eo8lI-0007Qi-Cv
 for bug-auctex@HIDDEN; Tue, 20 Feb 2018 09:19:21 -0500
Received: from relay15.mail.ox.ac.uk ([163.1.2.163]:54733)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <hajiali@HIDDEN>)
 id 1eo8lI-0007Kh-4x
 for bug-auctex@HIDDEN; Tue, 20 Feb 2018 09:19:16 -0500
Received: from mosfet.maths.ox.ac.uk ([129.67.184.66])
 by relay15.mail.ox.ac.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <hajiali@HIDDEN>)
 id 1eo8l4-0003Zh-p1
 for bug-auctex@HIDDEN; Tue, 20 Feb 2018 14:19:10 +0000
Received: from ultra-magnus.maths.ox.ac.uk (ultra-magnus.maths.ox.ac.uk
 [129.67.187.118])
 by mosfet.maths.ox.ac.uk (Postfix) with ESMTP id 804C42099A
 for <bug-auctex@HIDDEN>; Tue, 20 Feb 2018 14:19:02 +0000 (GMT)
Received: by ultra-magnus.maths.ox.ac.uk (Postfix, from userid 21841)
 id 6FF1CA1E38; Tue, 20 Feb 2018 14:19:02 +0000 (GMT)
From: Abdul-Lateef Haji-Ali <hajiali@HIDDEN>
To: bug-auctex@HIDDEN
Subject: 2014-11-01; smartparen-latex with delete-selection-mode
Date: Tue, 20 Feb 2018 14:18:49 +0000
Message-ID: <j5azi43sq0m.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Oxmail-Spam-Status: score=-0.0 tests=T_RP_MATCHES_RCVD
 -0.0 T_RP_MATCHES_RCVD      Envelope sender domain matches handover relay
 domain
X-Oxmail-Spam-Level: /
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.3 (----)
X-Debbugs-Envelope-To: submit
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: -4.3 (----)


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

Be sure to consult the FAQ section in the manual before submitting
a bug report.  In addition check if the bug is reproducable with an
up-to-date version of AUCTeX.  So please upgrade to the version
available from http://www.gnu.org/software/auctex/ if your
installation is older than the one available from the web site.

If the bug is triggered by a specific (La)TeX file, you should try
to produce a minimal sample file showing the problem and include it
in your report.

Your report will be posted for the auctex package at the GNU bug
tracker.  Visit http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=auctex
to browse existing AUCTeX bugs.
------------------------------------------------------------------------



In my emacs setup, if I have smartparens-mode enabled with
smartparens-latex and I open a latex document, type some text then
select it and type any latex special command (such as $, ", \{, etc...)
the text gets surrounded by these symbols as expected.

However, if I have delete-selection-mode enabled, then the text is
deleted instead. Other symbols like {, (, [ still work as expected even
when delete-selection-mode is enabled.

The weird thing is that this used to work flawlessly before a recent
update that I cannot quite track. In fact a question was posted here
https://emacs.stackexchange.com/questions/21315/delete-selection-mode-and

in 2016 and an update to AUCTeX was supposed to fix this issue.

Below is the minimum init.el code that produces this problem

(require 'package)
(add-to-list 'package-archives
         '("melpa" . "https://melpa.org/packages/") t)

(defun require-package (package)
  "Install PACKAGE unless already installed."
  (unless (package-installed-p package)
    (package-install package))
  )

(package-initialize)
(package-refresh-contents)
(require-package 'auctex)
(require-package 'smartparens)
(require 'smartparens)
(require 'smartparens-latex)

(delete-selection-mode t)

(defun latex-mode-defaults ()
  (smartparens-mode)
  )

(add-hook 'LaTeX-mode-hook 'latex-mode-defaults)




Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-09-20 on lcy01-07, modified by Debian
Package: 2014-11-01

current state:
==============
(setq
 AUCTeX-date "2014-11-01"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("/var/lib/auctex/emacs24/"
		  "/usr/share/emacs/site-lisp/auctex/style"
		  "/home/hajiali/.emacs.d/auctex/auto"
		  "/home/hajiali/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save nil
 TeX-parse-self nil
 TeX-master t
 TeX-command-list '(("TeX"
		     "%(PDF)%(tex) %(file-line-error) %(extraopts) %`%S%(PDFout)%(mode)%' %t"
		     TeX-run-TeX nil
		     (plain-tex-mode ams-tex-mode texinfo-mode) :help
		     "Run plain TeX")
		    ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
		     (latex-mode doctex-mode) :help "Run LaTeX")
		    ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil
		     (texinfo-mode) :help "Run Makeinfo with Info output")
		    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t"
		     TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with HTML output")
		    ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t"
		     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
		    ("ConTeXt"
		     "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
		    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help
		     "Run ConTeXt until completion")
		    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
		     "Run BibTeX")
		    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
		    ("View" "%V" TeX-run-discard-or-function t t :help
		     "Run Viewer")
		    ("Print" "%p" TeX-run-command t t :help "Print the file")
		    ("Queue" "%q" TeX-run-background nil t :help
		     "View the printer queue" :visible TeX-queue-command)
		    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help
		     "Generate PostScript file")
		    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help
		     "Convert DVI file to PostScript")
		    ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help
		     "Convert DVI file to PDF with dvipdfmx")
		    ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help
		     "Convert PostScript file to PDF")
		    ("Glossaries" "makeglossaries %s" TeX-run-command nil t
		     :help "Run makeglossaries to create glossary file")
		    ("Index" "makeindex %s" TeX-run-index nil t :help
		     "Run makeindex to create index file")
		    ("upMendex" "upmendex %s" TeX-run-index t t :help
		     "Run upmendex to create index file")
		    ("Xindy" "texindy %s" TeX-run-command nil t :help
		     "Run xindy to create index file")
		    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for correctness")
		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for common mistakes")
		    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
		     t :help "Spell-check the document")
		    ("Clean" "TeX-clean" TeX-run-function nil t :help
		     "Delete generated intermediate files")
		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
		     "Delete generated intermediate and output files")
		    ("Other" "" TeX-run-command t t :help
		     "Run an arbitrary command")
		    )
 )




Acknowledgement sent to Abdul-Lateef Haji-Ali <hajiali@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#30548; Package auctex. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
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.