From: Lars Ingebrigtsen <larsi@gnus.org>
To: haj@posteo.de (Harald Jörg)
Cc: 46302@debbugs.gnu.org
Subject: bug#46302: 28.0.50; cperl-mode cleanup: Eliminate dead code
Date: Fri, 05 Feb 2021 09:57:40 +0100 [thread overview]
Message-ID: <871rdunb7f.fsf@gnus.org> (raw)
In-Reply-To: <87o8gztqlv.fsf@hajtower> ("Harald Jörg"'s message of "Thu, 04 Feb 2021 23:28:28 +0100")
haj@posteo.de (Harald Jörg) writes:
> Did I hallucinate? I had a look: The variable _is_ obsolete as of
> font-lock.el:
>
> (make-obsolete-variable 'font-lock-syntactic-keywords
> 'syntax-propertize-function "24.1")
>
> Isn't `make-obsolete-variable` supposed to generate a compiler warning?
It is supposed to, but somehow it didn't... I just tried putting a
(setq-local font-lock-syntactic-keywords
(if cperl-syntaxify-by-font-lock
'((cperl-fontify-syntaxically))
into the function, and I got a
cperl-mode.el:1678:15: Warning: ‘font-lock-syntactic-keywords’ is an obsolete
variable (as of 24.1); use ‘syntax-propertize-function’ instead.
as expected.
Hm... perhaps it's because of this?
- (if cperl-use-syntax-table-text-property
- (if (eval-when-compile (fboundp 'syntax-propertize-rules))
- (progn
And the compiler got confused and didn't output a warning (always)?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-02-05 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 19:21 bug#46302: 28.0.50; cperl-mode cleanup: Eliminate dead code Harald Jörg
2021-02-04 19:52 ` Lars Ingebrigtsen
2021-02-04 22:28 ` Harald Jörg
2021-02-05 8:57 ` Lars Ingebrigtsen [this message]
2021-02-05 10:54 ` Harald Jörg
2021-02-05 11:03 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871rdunb7f.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=46302@debbugs.gnu.org \
--cc=haj@posteo.de \
/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.