From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] font-core: add font-lock-{enable, disable}-global-for functions Date: Mon, 05 Jan 2015 03:02:15 +0300 Message-ID: <54A9D487.6070109@yandex.ru> References: <1420300300-29754-1-git-send-email-mpn@google.com> <54A94BA7.8000705@yandex.ru> <54A9B9A2.2020301@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1420416154 10858 80.91.229.3 (5 Jan 2015 00:02:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2015 00:02:34 +0000 (UTC) Cc: Michal Nazarewicz , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 05 01:02:27 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y7v7r-0004A4-1V for ged-emacs-devel@m.gmane.org; Mon, 05 Jan 2015 01:02:27 +0100 Original-Received: from localhost ([::1]:58537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7v7q-0003T4-Ca for ged-emacs-devel@m.gmane.org; Sun, 04 Jan 2015 19:02:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7v7m-0003Pf-Ps for emacs-devel@gnu.org; Sun, 04 Jan 2015 19:02:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7v7j-0002Uw-LL for emacs-devel@gnu.org; Sun, 04 Jan 2015 19:02:22 -0500 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:57048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7v7j-0002Uf-DN for emacs-devel@gnu.org; Sun, 04 Jan 2015 19:02:19 -0500 Original-Received: by mail-la0-f46.google.com with SMTP id q1so17526170lam.19 for ; Sun, 04 Jan 2015 16:02:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=JTpb/v5S73rQPqWLQ/Cw62NQyBSMb2pAYmwuf8N4rNg=; b=RN9g5xnXYcoLuwve9AiVZ2Khtq1Q/ew1Z+8ZWm5XqDGAxeC/z0kZDbQoXk4r6VAg8j lNF3nXp2++kxBiIQWZQH7d32E3Uk8jggpE0+7Q8Ppmi18ScwXVknW5IJ74SdIvfjdcSt 44AWeRq0qrUE5BTtGJZj0lGmDfnTWoLY89OUO2l/y/dX3TBVmtkpGHtDcwSyydgVpM5c NB2MbNnhRoufWwvRGfnwfp8eQji2tEGBhAndj9fAiR/MeQs3DnXAioWXLmIRhQxanr5T /zfHIcjkZaSpVIQBa+kN6FY2K7eCOdwMYmeVqnf6/32j7HNvOJjVuahOyUN6QTiy2hZP hIpg== X-Received: by 10.152.36.37 with SMTP id n5mr86703669laj.27.1420416138526; Sun, 04 Jan 2015 16:02:18 -0800 (PST) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id c5sm14287453laa.34.2015.01.04.16.02.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jan 2015 16:02:18 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180984 Archived-At: On 01/05/2015 02:44 AM, Stefan Monnier wrote: > Depends what you mean by "derived modes problem". My version of the > problem is when activating foo-mode in parent-mode and foo-mode fails to > be activated in child-mode. If you want derived modes to always be affected, you could just as well (aside from backward incompatibility) change `turn-on-font-lock-if-desired' to use `derived-mode-p'. My version is more complicated: in some cases we might want derived modes to be affected, in others not. A graphical interface for picking the modes and modifiers might turn out to be more confusing than editing the Lisp form. > That's no worse than the current font-lock-global-modes. It makes to pretence of solving that problem, though. Often that's better than solving a problem halfway (no misconceptions for the user).