GNU bug report logs - #28395
26.0.50; Electric pair: remove following > on Backspace after <

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Sat, 9 Sep 2017 04:16:02 UTC

Severity: wishlist

Tags: wontfix

Found in version 26.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28395 in the body.
You can then email your comments to 28395 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#28395; Package emacs. (Sat, 09 Sep 2017 04:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 09 Sep 2017 04:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; Electric pair: remove following > on Backspace after <
Date: Sat, 09 Sep 2017 09:43:46 +0530

In c-mode (and may be in derived modes too) it would be nice if
electric-pair-mode removes following '>' (if any) on deleting '<' with
backspace by default.

Say for example, in the following code (| is the `point'):
    #include <|>

a backspace would result in:
    #include |


Thanks




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28395; Package emacs. (Mon, 15 Jul 2019 10:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 28395 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 28395 <at> debbugs.gnu.org
Subject: Re: bug#28395: 26.0.50; Electric pair: remove following > on
 Backspace after <
Date: Mon, 15 Jul 2019 12:56:45 +0200
Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:

> In c-mode (and may be in derived modes too) it would be nice if
> electric-pair-mode removes following '>' (if any) on deleting '<' with
> backspace by default.
>
> Say for example, in the following code (| is the `point'):
>     #include <|>
>
> a backspace would result in:
>     #include |

I think this sounds like it would be very difficult to get right without
too many false positives...  and it seems beyond the remit of this
mode.  I mean, the mode doesn't even do this for normal parenthesis.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 15 Jul 2019 10:57:04 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 28395 <at> debbugs.gnu.org and Mohammed Sadiq <sadiq <at> sadiqpk.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 15 Jul 2019 10:57:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28395; Package emacs. (Mon, 15 Jul 2019 12:26:02 GMT) Full text and rfc822 format available.

Message #15 received at 28395 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Mohammed Sadiq <sadiq <at> sadiqpk.org>, 28395 <at> debbugs.gnu.org
Subject: Re: bug#28395: 26.0.50;
 Electric pair: remove following > on Backspace after <
Date: Mon, 15 Jul 2019 08:25:30 -0400
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
>
>> Say for example, in the following code (| is the `point'):
>>     #include <|>
>>
>> a backspace would result in:
>>     #include |
>
> I mean, the mode doesn't even do this for normal parenthesis.

It does for me.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28395; Package emacs. (Mon, 15 Jul 2019 12:29:02 GMT) Full text and rfc822 format available.

Message #18 received at 28395 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: Mohammed Sadiq <sadiq <at> sadiqpk.org>, 28395 <at> debbugs.gnu.org
Subject: Re: bug#28395: 26.0.50; Electric pair: remove following > on
 Backspace after <
Date: Mon, 15 Jul 2019 14:28:22 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
>>
>>> Say for example, in the following code (| is the `point'):
>>>     #include <|>
>>>
>>> a backspace would result in:
>>>     #include |
>>
>> I mean, the mode doesn't even do this for normal parenthesis.
>
> It does for me.

Hm...  I thought I tested that...

Oh, it'll remove the pair if that pair has been inserted by
electric-pair-mode, but not if it was present in the buffer already?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Aug 2019 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 258 days ago.

Previous Next


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