unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: 51899@debbugs.gnu.org
Subject: bug#51899: Odd highlighting in compilation mode
Date: Wed, 17 Nov 2021 01:13:49 +0800	[thread overview]
Message-ID: <87wnl8hvle.8.fsf@jidanni.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

Save and open the attached file with emacs -Q.
You will see:
One $m is highlighted, the others and $i etc. aren't.
"/tmp/$(basename" is highlighted.


[-- Attachment #2: test file --]
[-- Type: application/octet-stream, Size: 589 bytes --]

-*- mode: compilation; default-directory: "~/" -*-
Compilation started at Wed Nov 17 01:06:26

make -n
mountpoint -q /cf/
set -xe; m=/cf/versions-$(hostname);\
if test $m -nt /var/lib/dpkg/status && test \
$m -nt /var/lib/aptitude/pkgstates; then exit; fi;\
apt-show-versions | grep -v 'not installed$' > /tmp/VERsions;\
test -s /tmp/VERsions;\
sort -o $m /tmp/VERsions || { echo try again as root first; false;}
: ${k?}
for i in /cf/versions-jidanni[]; do sed 's/:.*//' $i | sort -o /tmp/$(basename $i); done;\
comm -3 /tmp/versions-jidanni[]

Compilation finished at Wed Nov 17 01:06:26

[-- Attachment #3: Type: text/plain, Size: 92 bytes --]


I have no opinions on what should be highlighted. Just be consistent.
emacs-version "27.1"

             reply	other threads:[~2021-11-16 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-16 17:13 積丹尼 Dan Jacobson [this message]
2021-11-16 21:31 ` bug#51899: Odd highlighting in compilation mode Kévin Le Gouguec
2021-11-16 21:39   ` Kévin Le Gouguec
2021-11-17  8:09   ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87wnl8hvle.8.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=51899@debbugs.gnu.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 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).