all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 8509-done@debbugs.gnu.org, Frank Terbeck <ft@bewatermyfriend.org>
Subject: bug#8509: 24.0.50; cperl-mode with which-function-mode breaks font-locking
Date: Fri, 5 Jul 2019 21:55:19 +0200	[thread overview]
Message-ID: <CADwFkm=Z81VQAHg7XsjqjHvrRpOGcCQB=_jOqkrLV-otu1Yt=A@mail.gmail.com> (raw)
In-Reply-To: <87lizay1pu.fsf@bones.voodoo.lan>

Frank Terbeck <ft@bewatermyfriend.org> writes:

> This is my first bug report for emacs, so bear with me:
>
> I'm encountering odd behaviour when using `which-function-mode' with
> `cperl-mode' in emacs version 24. It's a build of trunk's 103902
> revision.
>
>
> Consider these two files:
>
> foo.el:
>
> [snip]
> (mapc
>   (lambda (pair)
>     (if (eq (cdr pair) 'perl-mode)
>       (setcdr pair 'cperl-mode)))
>   (append auto-mode-alist interpreter-mode-alist))
>
> (which-function-mode t)
> [snap]
>
> And foo.pl:
>
> [snip]
> $foo = qq{I'm just another Perl Hacker.};
> [snap]
>
> Then I would start emacs like this:
>
> % emacs -nw -Q
>
> ...and then:
>
> M-x load-file RET foo.el RET
> C-x C-f foo.pl RET
>
> Now font locking is screwed up. The "qq" is highlighted as
> `cperl-nonoverridable-face', which is correct. But "{I" shows up in
> `default'. Which is wrong. Now, the ' looks like the start of a string
> and it's highlighted as `font-lock-string-face'. But because the "q{"
> isn't the start of the string but the single quote, the closing "}"
> doesn't end the string and so the ";" (and in fact, any following lines
> would be too, until another single quote would be encountered) is
> highlighted in `font-lock-string-face', as well.
>
> When I'm removing the "(which-function-mode t)" line from "foo.el", the
> problem goes away.

Hi,

I can't reproduce this on Emacs 26.2, the latest version of Emacs.

Since the bug was reported 8 years ago, I will assume that this bug has
been fixed while you were waiting for a reply.  I am therefore closing
this bug.

If you can still reproduce this issue on the latest version of Emacs,
please report back and we can re-open the issue.

Thanks,
Stefan Kangas





      reply	other threads:[~2019-07-05 19:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-16  9:39 bug#8509: 24.0.50; cperl-mode with which-function-mode breaks font-locking Frank Terbeck
2019-07-05 19:55 ` Stefan Kangas [this message]

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='CADwFkm=Z81VQAHg7XsjqjHvrRpOGcCQB=_jOqkrLV-otu1Yt=A@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=8509-done@debbugs.gnu.org \
    --cc=ft@bewatermyfriend.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.