* bug#28395: 26.0.50; Electric pair: remove following > on Backspace after <
@ 2017-09-09 4:13 Mohammed Sadiq
2019-07-15 10:56 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Sadiq @ 2017-09-09 4:13 UTC (permalink / raw)
To: 28395
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#28395: 26.0.50; Electric pair: remove following > on Backspace after <
2017-09-09 4:13 bug#28395: 26.0.50; Electric pair: remove following > on Backspace after < Mohammed Sadiq
@ 2019-07-15 10:56 ` Lars Ingebrigtsen
2019-07-15 12:25 ` Noam Postavsky
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-15 10:56 UTC (permalink / raw)
To: Mohammed Sadiq; +Cc: 28395
Mohammed Sadiq <sadiq@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#28395: 26.0.50; Electric pair: remove following > on Backspace after <
2019-07-15 10:56 ` Lars Ingebrigtsen
@ 2019-07-15 12:25 ` Noam Postavsky
2019-07-15 12:28 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Noam Postavsky @ 2019-07-15 12:25 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Mohammed Sadiq, 28395
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Mohammed Sadiq <sadiq@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#28395: 26.0.50; Electric pair: remove following > on Backspace after <
2019-07-15 12:25 ` Noam Postavsky
@ 2019-07-15 12:28 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-15 12:28 UTC (permalink / raw)
To: Noam Postavsky; +Cc: Mohammed Sadiq, 28395
Noam Postavsky <npostavs@gmail.com> writes:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Mohammed Sadiq <sadiq@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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-15 12:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-09 4:13 bug#28395: 26.0.50; Electric pair: remove following > on Backspace after < Mohammed Sadiq
2019-07-15 10:56 ` Lars Ingebrigtsen
2019-07-15 12:25 ` Noam Postavsky
2019-07-15 12:28 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.