From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: Strange warnings from htmlize.el Date: Thu, 01 Aug 2024 15:16:42 +0000 Message-ID: <87jzh0b7dx.fsf@localhost> References: <66ab70d8.5d0a0220.1d6779.38fa@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1605"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Bruno Barbier , emacs-orgmode@gnu.org, emacs-devel To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 01 17:16:27 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sZXXV-0000E8-R4 for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Aug 2024 17:16:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZXWa-0001T7-N0; Thu, 01 Aug 2024 11:15:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZXWY-0001RQ-KY for emacs-devel@gnu.org; Thu, 01 Aug 2024 11:15:26 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZXWW-0004P3-9u for emacs-devel@gnu.org; Thu, 01 Aug 2024 11:15:26 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4429D24002A for ; Thu, 1 Aug 2024 17:15:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722525320; bh=UQgNNQFUDuX9EfgvZyk7t5pSCumcuqgXJbIXFk3axbU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=VInFJFn83SbkOFtmPhI7tcj5GrZw2MrklM+L5C9hmpXYCMPr8NKpgj7M41FSdAJ76 /fzDSFsOLPSIqnlkBLNbKv372Z/lC9YzJ1Tb3gCsL1uU32XEd0xH44Z4Nu8UggZPi8 vhv+GY/PDaoQpJtLZliqs/fX5S/5RSDE1GBoVre1UyMi68MVluZVPv/0Z1R4C4S+45 Gla6BH6eLkhVPkpPswurfEpFmXyNxseOGv0eCTMOFSDsS7xkWv1edBuP9Txld9eBAp n1bBkKE5J57VGE0ee4huid/EaaW8GIwSVbM3HrnMqwsNnHfeStThuWEFQ8LO2H9cqm jiy6bVa+bliyw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WZXZv3pG5z9rxF; Thu, 1 Aug 2024 17:15:19 +0200 (CEST) In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322269 gmane.emacs.orgmode:162751 Archived-At: Angelo Graziosi writes: >> This warning is from Org. It's telling you that you need to install the >> htmlize package in your new Emacs. > > If ORG is in Emacs core and it needs this package, shouldn't the package > be in core too? That's out of our control. htmlize is not strictly required. But without htmlize, code in the code blocks is not colored. Note that what is now a warning used to be a message. Now, it is more visible, which was the reason why this was promoted to warning. > In any case I have "fixed" this removing the language from #+BEGIN_SRC. > For example: > > -#+BEGIN_SRC sh > +#+BEGIN_SRC > > which for me is enough. You can also: 1. Suppress the warning 2. Set `org-html-htmlize-output-type' to nil to tell Org not to try coloring -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at