From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: `font-lock-add-keywords' works... sometimes Date: Tue, 19 Mar 2019 15:42:57 +0100 Message-ID: <871s33q61a.fsf@web.de> References: <86sgvjjpeu.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="31184"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 19 16:02:30 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6GG4-0007we-Bf for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 16:02:28 +0100 Original-Received: from localhost ([127.0.0.1]:58645 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6GG3-0003Xy-8b for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Mar 2019 11:02:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h6GCX-0000Yu-L8 for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 10:58:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h6FxO-0000pj-1j for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 10:43:11 -0400 Original-Received: from mout.web.de ([212.227.17.11]:45773) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h6FxN-0000D7-08 for help-gnu-emacs@gnu.org; Tue, 19 Mar 2019 10:43:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1553006578; bh=yMqMEdhc932KGtDKVViPG6ossqXm3v1Oo9dUWc3e770=; h=X-UI-Sender-Class:From:To:Subject:References:Date:In-Reply-To; b=A2XXNeqLkPYZexlyMz0OF2WMHRCSLwl0/aJL6TtdGzoCM0xPgCevD4CBYkrCeoOXI 7cGOFdLQdUdrULzVFD8Q8/Q/FDw3gaZqIHTw+Im14qbZW37D7gk+dbGe7WE+3izilA XxcK6/tXAK/MgJWVBo9ubp+qOdE6JHMkf12EwMJk= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.67.111.211]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lrb3x-1h0mBY3fI5-013Or8; Tue, 19 Mar 2019 15:42:57 +0100 In-Reply-To: <86sgvjjpeu.fsf@zoho.eu> (Emanuel Berg's message of "Tue, 19 Mar 2019 08:26:17 +0100") X-Provags-ID: V03:K1:txOwzMclh/NZdUklruHAIo4lR2XlToM4iBL6TxbqAZk3xcvYcEC MGil6LkEo0xOG4sCooua1/5lGiJvxU3iN4tUph66SPcbgDG8OPziIJWKu6nZdqUVBC9vVR+ HBqmwbQN/6nQN7t9ZDLtr0hir+TYo4mOrP5SxtC/UZiZqu9cER3QO6685uWcMR6FTqRRfAa gNFGKjTUaaGxY5zgICNmA== X-UI-Out-Filterresults: notjunk:1;V03:K0:LnehyjaARDo=:zZywLHqt5eW4KuLZ3c0scU wVGFvdF+fRiZ8uvpgyHY0dsXbqOG1fPvXIbT6+3hR98/PsjgXdAJdIfU6dhqdCORG9FaaHFwH UNBAoUV/Bm7SofGobB6q1POqnkqZw3IW1yn/MfrK+MB4lGwiMBA3pzB8f1H1WqlDbxLkZfci0 t7lS2m7RQypYMqXIeZGc2XkbPy/wPIc32DV30xdkwIWPIqm5R92Sx/WheqIGFvFOV8eUjdKtP f2EWARmSI8e4XBFRMs3n94evnQo1p6FPbLQQs4dSPkRfKNCGfdG+NrrLC6aX83Ipx7GQv5SVE DLxjAXSPbK0xZuYzBZCuyfcn0SbUktNPzyyptAwduA1EpVeATdx1+VuvwyOSyzN/+NZ4ga/CO 1Okw6Mtzsr7uAYs4thRDU1pTWEaphAUF5aCscWW29DumWUsnV9R58XeyRz/WweJA4wJkSWPSR l45b0aKctxST7FMmlFNC1SGcVRiIke/FaOwxgCz/zH8gjwkGSHGdZK2OZEBZ9PeBvUwXQY+5a JArd5VKnPmH0f0mxSpMfXwkG7RQz7Qx25k7tOLze3C/E4hfLXe2HX3BpwNbJdyz1+/60WDrnh UANW6fIQ+J5kQ47afoPO6yCqnErqD1iSNmah8GX55Mbb0zZlxkzBD9dmeTSogl5QbIQVGej9F 8n1Pn3nirz8dKBRg4vjetSmf3ZDBybxL1mbRKNcD9FhMGNWHI8SMt9RjGXZJWj3scSOOLeQdl E2OQZtuvbyoucHSAlVTFU17D00C5B7vkoY76KrmLyIOspgfCLBnUbqe1eSu0rhdb5P2fCZOr X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119673 Archived-At: Emanuel Berg writes: > Why does this work > > (font-lock-add-keywords 'message-mode > '( > ("yellow" . font-lock-function-name-face) > ) > t) ; append [2] > > but not this > > (font-lock-add-keywords 'text-mode > '( > ("yellow" . font-lock-function-name-face) > ) > t) ; append [3] > > ? This works: (progn (font-lock-add-keywords 'text-mode '(("yellow" . font-lock-function-name-face)) t) (font-lock-ensure)) But I don't know much about the details. Michael.