From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] font-core: add font-lock-{enable, disable}-global-for functions Date: Sun, 04 Jan 2015 14:42:19 -0500 Message-ID: References: <1420300300-29754-1-git-send-email-mpn@google.com> <54A94BA7.8000705@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420400570 22110 80.91.229.3 (4 Jan 2015 19:42:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 19:42:50 +0000 (UTC) Cc: Michal Nazarewicz , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 04 20:42:38 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 1Y7r4O-00041h-Fi for ged-emacs-devel@m.gmane.org; Sun, 04 Jan 2015 20:42:36 +0100 Original-Received: from localhost ([::1]:57891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7r4N-0000mD-Tz for ged-emacs-devel@m.gmane.org; Sun, 04 Jan 2015 14:42:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7r4B-0000m7-Rr for emacs-devel@gnu.org; Sun, 04 Jan 2015 14:42:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7r48-0003wV-N4 for emacs-devel@gnu.org; Sun, 04 Jan 2015 14:42:23 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:42567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7r48-0003wR-It for emacs-devel@gnu.org; Sun, 04 Jan 2015 14:42:20 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kiEoJ1lkBAQEBBgEBAQEekG8HhEgFiwGkLoF4hBkhgncBAQE X-IPAS-Result: AjwPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCwsOJhIUGA0kiEoJ1lkBAQEBBgEBAQEekG8HhEgFiwGkLoF4hBkhgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="106531373" Original-Received: from 69-165-141-1.dsl.teksavvy.com (HELO ceviche.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Jan 2015 14:42:20 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id C82EB66100; Sun, 4 Jan 2015 14:42:19 -0500 (EST) In-Reply-To: <54A94BA7.8000705@yandex.ru> (Dmitry Gutov's message of "Sun, 04 Jan 2015 17:18:15 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:180973 Archived-At: > For centralized user customization, I believe. But the redundancy is rather problematic, not to mention the fact that the semantics is unclear (e.g. how does it interact with derived modes? How does it interact with explicit calls in the mode hook? ...). > It's a nice pattern: you see all the major modes font-lock-mode won't be > enabled in. Maybe we should provide something like M-x customize-minor-mode-states RET which would collect the presence/absence of `foo-mode' or `(lambda () (foo-mode N))' in all the hooks and let the user add/remove them from those hooks. Stefan