GNU bug report logs -
#71313
[PATCH] Allow insert other elisp keywords in auto-insert
Previous Next
Reported by: "Elijah G." <eg642616 <at> gmail.com>
Date: Sun, 2 Jun 2024 00:19:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.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 71313 in the body.
You can then email your comments to 71313 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Sun, 02 Jun 2024 00:19:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Elijah G." <eg642616 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 02 Jun 2024 00:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
Hello,
this little patch allow insert any package keywords when using
auto-insert for insert elisp header lines.
This is more a bugfix, since there is a bug when using Vertico that get
stuck in the keywords part, that bug can also apply to other completion
UIs or frameworks.
Also there are some packages that uses non-standard keywords, i think it
would be better allowing insert other keywords.
In GNU Emacs 30.0.50 (build 1, x86_64-w64-mingw32) of 2024-05-23 built
on AVALON
Repository revision: 64cced2c37a9926fe6ff1c6ad9b9540abd47e21c
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.4046)
Configured using:
'configure --with-modules --without-dbus --with-native-compilation --without-compress-install --with-tree-sitter CFLAGS=-O2'
[0001-Allow-insert-other-elisp-keywords-in-auto-insert.patch (text/patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Sun, 02 Jun 2024 05:45:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 71313 <at> debbugs.gnu.org (full text, mbox):
> From: "Elijah G." <eg642616 <at> gmail.com>
> Date: Sat, 01 Jun 2024 18:17:42 -0600
>
> this little patch allow insert any package keywords when using
> auto-insert for insert elisp header lines.
>
> This is more a bugfix, since there is a bug when using Vertico that get
> stuck in the keywords part, that bug can also apply to other completion
> UIs or frameworks.
>
> Also there are some packages that uses non-standard keywords, i think it
> would be better allowing insert other keywords.
I'm not sure why it makes sense to allow keywords that are not in
finder-known-keywords. Such a keyword will never be used by any
finder commands.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Mon, 03 Jun 2024 03:16:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 71313 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: "Elijah G." <eg642616 <at> gmail.com>
>> Date: Sat, 01 Jun 2024 18:17:42 -0600
>>
>> this little patch allow insert any package keywords when using
>> auto-insert for insert elisp header lines.
>>
>> This is more a bugfix, since there is a bug when using Vertico that get
>> stuck in the keywords part, that bug can also apply to other completion
>> UIs or frameworks.
>>
>> Also there are some packages that uses non-standard keywords, i think it
>> would be better allowing insert other keywords.
>
> I'm not sure why it makes sense to allow keywords that are not in
> finder-known-keywords. Such a keyword will never be used by any
> finder commands.
You are right, I think I've found a better way for this bugfix.
Please see the new patch attached below, thanks.
[0001-lisp-autoinsert.el-auto-insert-alist-Allow-empty-inp.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Mon, 03 Jun 2024 12:11:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 71313 <at> debbugs.gnu.org (full text, mbox):
> From: "Elijah G." <eg642616 <at> gmail.com>
> Cc: 71313 <at> debbugs.gnu.org
> Date: Sun, 02 Jun 2024 21:14:34 -0600
>
> >> From: "Elijah G." <eg642616 <at> gmail.com>
> >> Date: Sat, 01 Jun 2024 18:17:42 -0600
> >>
> >> this little patch allow insert any package keywords when using
> >> auto-insert for insert elisp header lines.
> >>
> >> This is more a bugfix, since there is a bug when using Vertico that get
> >> stuck in the keywords part, that bug can also apply to other completion
> >> UIs or frameworks.
> >>
> >> Also there are some packages that uses non-standard keywords, i think it
> >> would be better allowing insert other keywords.
> >
> > I'm not sure why it makes sense to allow keywords that are not in
> > finder-known-keywords. Such a keyword will never be used by any
> > finder commands.
>
> You are right, I think I've found a better way for this bugfix.
> Please see the new patch attached below, thanks.
Thanks, but how will an empty string "fix bugs from 3rd-party
completion UI"? What am I missing here?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Wed, 05 Jun 2024 00:56:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 71313 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: "Elijah G." <eg642616 <at> gmail.com>
>> Cc: 71313 <at> debbugs.gnu.org
>> Date: Sun, 02 Jun 2024 21:14:34 -0600
>>
>> >> From: "Elijah G." <eg642616 <at> gmail.com>
>> >> Date: Sat, 01 Jun 2024 18:17:42 -0600
>> >>
>> >> this little patch allow insert any package keywords when using
>> >> auto-insert for insert elisp header lines.
>> >>
>> >> This is more a bugfix, since there is a bug when using Vertico that get
>> >> stuck in the keywords part, that bug can also apply to other completion
>> >> UIs or frameworks.
>> >>
>> >> Also there are some packages that uses non-standard keywords, i think it
>> >> would be better allowing insert other keywords.
>> >
>> > I'm not sure why it makes sense to allow keywords that are not in
>> > finder-known-keywords. Such a keyword will never be used by any
>> > finder commands.
>>
>> You are right, I think I've found a better way for this bugfix.
>> Please see the new patch attached below, thanks.
>
> Thanks, but how will an empty string "fix bugs from 3rd-party
> completion UI"? What am I missing here?
When using Completions UI such as Vertico or Helm, there is no way to
exit from Keyword Section to go to next auto-insert Sections unless the
user press a key sequense, for auto-insert input a empty string allow
close Keyword section without cancelling the next auto-insert actions.
This can be more a problem with `completing-read' than Completions UI,
that is why setting an empty string as default value fix this and can
fix this similar issue to other completions packages.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Wed, 05 Jun 2024 05:25:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 71313 <at> debbugs.gnu.org (full text, mbox):
Hi Elijah,
"Elijah G." <eg642616 <at> gmail.com> writes:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: "Elijah G." <eg642616 <at> gmail.com>
>>> Cc: 71313 <at> debbugs.gnu.org
>>> Date: Sun, 02 Jun 2024 21:14:34 -0600
>>>
>>> >> From: "Elijah G." <eg642616 <at> gmail.com>
>>> >> Date: Sat, 01 Jun 2024 18:17:42 -0600
>>> >>
>>> >> this little patch allow insert any package keywords when using
>>> >> auto-insert for insert elisp header lines.
>>> >>
>>> >> This is more a bugfix, since there is a bug when using Vertico that get
>>> >> stuck in the keywords part, that bug can also apply to other completion
>>> >> UIs or frameworks.
>>> >>
>>> >> Also there are some packages that uses non-standard keywords, i think it
>>> >> would be better allowing insert other keywords.
>>> >
>>> > I'm not sure why it makes sense to allow keywords that are not in
>>> > finder-known-keywords. Such a keyword will never be used by any
>>> > finder commands.
>>>
>>> You are right, I think I've found a better way for this bugfix.
>>> Please see the new patch attached below, thanks.
>>
>> Thanks, but how will an empty string "fix bugs from 3rd-party
>> completion UI"? What am I missing here?
>
> When using Completions UI such as Vertico or Helm, there is no way to
> exit from Keyword Section to go to next auto-insert Sections unless the
> user press a key sequense, for auto-insert input a empty string allow
> close Keyword section without cancelling the next auto-insert actions.
FWIW, I'm not sure I understand the problem: I just tried using Vertico
to fill in a new .el file with auto-insert, and ISTM that in the
Keywords step both C-M-m and C-M-c already work as expected and let you
continue to the next step.
Best,
Eshel
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Wed, 05 Jun 2024 11:49:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 71313 <at> debbugs.gnu.org (full text, mbox):
> From: "Elijah G." <eg642616 <at> gmail.com>
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 71313 <at> debbugs.gnu.org
> Date: Tue, 04 Jun 2024 18:54:19 -0600
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Thanks, but how will an empty string "fix bugs from 3rd-party
> > completion UI"? What am I missing here?
>
> When using Completions UI such as Vertico or Helm, there is no way to
> exit from Keyword Section to go to next auto-insert Sections unless the
> user press a key sequense, for auto-insert input a empty string allow
> close Keyword section without cancelling the next auto-insert actions.
But why would the user want to exit the Keyword Section without
inputting keywords? And why are Vertico and Helm special in this
regard?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Fri, 07 Jun 2024 05:13:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 71313 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
El mié., 5 de junio de 2024 5:32 a. m., Eli Zaretskii <eliz <at> gnu.org>
escribió:
> > From: "Elijah G." <eg642616 <at> gmail.com>
> > Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 71313 <at> debbugs.gnu.org
> > Date: Tue, 04 Jun 2024 18:54:19 -0600
> >
> > Eli Zaretskii <eliz <at> gnu.org> writes:
> >
> > > Thanks, but how will an empty string "fix bugs from 3rd-party
> > > completion UI"? What am I missing here?
> >
> > When using Completions UI such as Vertico or Helm, there is no way to
> > exit from Keyword Section to go to next auto-insert Sections unless the
> > user press a key sequense, for auto-insert input a empty string allow
> > close Keyword section without cancelling the next auto-insert actions.
>
> But why would the user want to exit the Keyword Section without
> inputting keywords? And why are Vertico and Helm special in this
> regard?
>
I didn't mean to exit without input any keyword, after inserting the
keyword it will ask again for add more keywords, the problem is that It's
an infinite loop that it's not possible exit without pressing any
keybinding for insert an empty string (e.g. M-RET in Vertico), AFAIK
Vertico (and helm according to some commentaries) have this problem because
they use strictly the completing-read completion table for their candidates
when require-match is non-nil, the patch can be applied since it is just a
little change without any side-effect.
I think i will need to change the commit message for the patch, because it
can misunderstand.
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Fri, 07 Jun 2024 05:47:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 71313 <at> debbugs.gnu.org (full text, mbox):
Elijah G <eg642616 <at> gmail.com> writes:
> El mié., 5 de junio de 2024 5:32 a. m., Eli Zaretskii <eliz <at> gnu.org>
> escribió:
>
> > From: "Elijah G." <eg642616 <at> gmail.com>
> > Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>,
> 71313 <at> debbugs.gnu.org
> > Date: Tue, 04 Jun 2024 18:54:19 -0600
> >
> > Eli Zaretskii <eliz <at> gnu.org> writes:
> >
> > > Thanks, but how will an empty string "fix bugs from 3rd-party
> > > completion UI"? What am I missing here?
> >
> > When using Completions UI such as Vertico or Helm, there is no
> way to
> > exit from Keyword Section to go to next auto-insert Sections
> unless the
> > user press a key sequense, for auto-insert input a empty string
> allow
> > close Keyword section without cancelling the next auto-insert
> actions.
>
> But why would the user want to exit the Keyword Section without
> inputting keywords? And why are Vertico and Helm special in this
> regard?
>
> I didn't mean to exit without input any keyword, after inserting the
> keyword it will ask again for add more keywords, the problem is that
> It's an infinite loop that it's not possible exit
> without pressing any keybinding for insert an empty string (e.g. M-RET
> in Vertico), AFAIK Vertico (and helm according to some commentaries)
> have this problem because they use strictly the
> completing-read completion table for their candidates when
> require-match is non-nil, the patch can be applied since it is just a
> little change without any side-effect.
You can exit the minibuffer with empty string in Helm with C-RET.
--
Thierry
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71313
; Package
emacs
.
(Sat, 08 Jun 2024 04:43:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 71313 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I think this can be closed since this is more a problem with Vertico (and
probably Helm) as far as i could see.
[Message part 2 (text/html, inline)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 08 Jun 2024 13:28:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Elijah G." <eg642616 <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 08 Jun 2024 13:28:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 71313-done <at> debbugs.gnu.org (full text, mbox):
> From: Elijah G <eg642616 <at> gmail.com>
> Date: Fri, 7 Jun 2024 22:32:47 -0600
> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 71313 <at> debbugs.gnu.org
>
> I think this can be closed since this is more a problem with Vertico (and probably Helm) as far as i could see.
Thanks, done.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 07 Jul 2024 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 60 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.