* bug#55796: Command highlighting deactivated on spaces
@ 2022-06-04 16:27 goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-05 14:26 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-04 16:27 UTC (permalink / raw)
To: 55796
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
I am using sh-mode and have noticed that using
delim=$(numseq-delim "$2")
highlights the command numseq-delim
But when there are any spaces between $( and the command name
numseq-delim, the highlighting gets deactivated.
[-- Attachment #2: Type: text/html, Size: 999 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#55796: Command highlighting deactivated on spaces
2022-06-04 16:27 bug#55796: Command highlighting deactivated on spaces goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-05 14:26 ` Lars Ingebrigtsen
2022-06-05 16:30 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-05 14:26 UTC (permalink / raw)
To: goncholden; +Cc: 55796
goncholden <goncholden@protonmail.com> writes:
> I am using sh-mode and have noticed that using
>
> delim=$(numseq-delim "$2")
>
> highlights the command numseq-delim
>
> But when there are any spaces between $( and the command name
> numseq-delim, the highlighting gets deactivated.
You don't say which Emacs version this is for, or what mode you're using
or what language this is.
In Emacs 29, in shell-script-mode, numseq-delim receives no highlights
with or without a space after the $(.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#55796: Command highlighting deactivated on spaces
2022-06-05 14:26 ` Lars Ingebrigtsen
@ 2022-06-05 16:30 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-06 12:37 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-05 16:30 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 55796
------- Original Message -------
On Monday, June 6th, 2022 at 2:26 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> goncholden goncholden@protonmail.com writes:
>
> > I am using sh-mode and have noticed that using
> >
> > delim=$(numseq-delim "$2")
> >
> > highlights the command numseq-delim
> >
> > But when there are any spaces between $( and the command name
> > numseq-delim, the highlighting gets deactivated.
>
>
> You don't say which Emacs version this is for, or what mode you're using
> or what language this is.
>
> In Emacs 29, in shell-script-mode, numseq-delim receives no highlights
> with or without a space after the $(.
I am using GNU Emacs 27.2 with sh-script. I am using $() to run commands from a bash script. The command name gets highlighted if there are no spaces, but no highlighting is done if there is a preceeding space.
Actually, it was good to have highlighting of the command, even when there is a space between $( and the command name.
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#55796: Command highlighting deactivated on spaces
2022-06-05 16:30 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-06 12:37 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-06 12:37 UTC (permalink / raw)
To: goncholden; +Cc: 55796
goncholden <goncholden@protonmail.com> writes:
> I am using GNU Emacs 27.2 with sh-script. I am using $() to run
> commands from a bash script. The command name gets highlighted if
> there are no spaces, but no highlighting is done if there is a
> preceeding space.
Thanks; with the following I'm able to reproduce the problem in Emacs
27.2:
#!/bin/bash
delim=$(numseq-delim "$2")
delim=$( numseq-delim "$2")
But not in Emacs 29, so it has been fixed now, and I'm therefore 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
end of thread, other threads:[~2022-06-06 12:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-04 16:27 bug#55796: Command highlighting deactivated on spaces goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-05 14:26 ` Lars Ingebrigtsen
2022-06-05 16:30 ` goncholden via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-06 12:37 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).