all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: haj@posteo.de (Harald Jörg)
To: 48761@debbugs.gnu.org
Cc: "Lars Ingebrigtsen" <larsi@gnus.org>,
	"積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Subject: bug#48761: perl-mode: "$temp" colored differently.
Date: Tue, 01 Jun 2021 08:17:41 +0000	[thread overview]
Message-ID: <87tumingm2.fsf@hajtower> (raw)
In-Reply-To: <8735u2f6bp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Jun 2021 08:27:06 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
>
>> In perl-mode: $temp, @temp are colored differently. E.g., in
>> my (@AA, @temp, @barf, $temp, $x);
>
> I can reproduce this in Emacs 27, but not in Emacs 28:

I was too slow responding :/

This was patched with Bug#46024, which also has a list of other
"keywords" which have been removed from perl-mode: anon, argument,
supersede, let, and temp (sic!).
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=46024

It is still the case that perl-mode treats a few variables which have
names like "legal" perl keywords as keywords and not as variables: for
example $my, @our, %sub, &package.  That would require a different
patch, but these names are much less likely to occur in the wild.

> So I'm closing this bug report.

Different symptom, but same patch: I guess this should be merged?
-- 
Cheers,
haj





  reply	other threads:[~2021-06-01  8:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31 13:08 bug#48761: perl-mode: "$temp" colored differently 積丹尼 Dan Jacobson
2021-06-01  6:26 ` Lars Ingebrigtsen
2021-06-01  6:27 ` Lars Ingebrigtsen
2021-06-01  8:17   ` Harald Jörg [this message]
2021-06-01  8:32     ` Lars Ingebrigtsen
2021-06-01 11:05       ` Harald Jörg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tumingm2.fsf@hajtower \
    --to=haj@posteo.de \
    --cc=48761@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.