From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Font-lock seemingly interacting with insertion Date: Wed, 21 Mar 2018 15:11:49 +0100 Message-ID: <87d0zx8qmy.fsf@web.de> References: <87bmfi0zgb.fsf@mbork.pl> <83bmfhly00.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521641440 21619 195.159.176.226 (21 Mar 2018 14:10:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2018 14:10:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 21 15:10:36 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyeRm-0005UF-NF for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 15:10:34 +0100 Original-Received: from localhost ([::1]:55380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyeTp-0007dw-V8 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Mar 2018 10:12:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyeT7-0007Zp-JL for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 10:12:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyeT6-00038n-Ke for help-gnu-emacs@gnu.org; Wed, 21 Mar 2018 10:11:57 -0400 Original-Received: from mout.web.de ([217.72.192.78]:52415) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyeT2-00035n-Ro; Wed, 21 Mar 2018 10:11:53 -0400 Original-Received: from drachen.dragon ([88.75.99.135]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M1X0v-1ejacp1trV-00tSh7; Wed, 21 Mar 2018 15:11:50 +0100 In-Reply-To: <83bmfhly00.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Mar 2018 08:54:23 +0200") X-Provags-ID: V03:K0:oKQTrzKU074vsPStGu+L9WEMeFSOtlMoeh2c1Wnou8wM+truSQQ vg1zYpta6BdEttyeYPWXu7E7bpxBgxbc82mPSU/F4/qi5jXTYoxmb97bwoKdphVk9a6L1AP zzmS4PW8iJMowtkmHK2i2Y07OcBohNT6OaKoVTidBzFsaRFq7Gr7ceA+kCSYl5yK+rQjHGz xusIKbplawzYPFEEtZFnw== X-UI-Out-Filterresults: notjunk:1;V01:K0:gQxPlYXs7RM=:x8sSGE7sHARegbE3kC6Tiy 6gUbxMP/8obe5AS8+1D/imSFy0zYI4vCgcq+Jb5v3KxgRLxTj1GInppelJWk6+/04k1/TsbtD i3fRNFE88HMj7BHBkVeKPGpMwBjYQHBzZZHhEnF1ctd8rfsTbtTURctPA29ReHfHqrEQhh7oG 0bSUn0EKFCdGbDe2BHNH7DzifnOTd6d5n2/fi7AuxhjLHxaP+45S7qkhMWUQTFOIX/4E36bem 4woBWOEH1CDAUkttza9niybRzhCThnc81FV1O1Hc8WwtDyC3lV+y0z4o1mGkhiGLipZel4KYa 3H8zXxPy6ANZFoR7Hu69GyywnP/IiXRAScl0UGAEnOhVNU9k2OJRC7LJj5MhmF5BDkjgbjh7w I268F8JXwxJdR2rClI+jlRbrs6ATvZ62qf+aWtu41GGay17nytT1103SKVn2HgvQ/8JFqpSnz W6ieel+n7XbHbO/UuX3aBnH35eTfVeCgwkKuDYf8zYRmxZ75emLt4ioRMxAoMcdMukdV3Vy3j +zzW2qtraGzzGmHBJj2U4mNJJQLBopqA2ZdSw34r+Ui0sL6tI1PgZ7vyxBIG0NI5agGVAW0KE /hqjqe3WvbniyHrU3Wlo/Kllbcg79mbgxeMDO9T1yquYM5XuPblE1Stu+GT+A7dVtHo8Gfe3x D2kt+vXcoL1S0icdhTUjAt1aRuKbpWCe53ooeqMOPvRZ+AINB3YkQnJQI1DDN//SZEKZjq1u0 DlLCQ2+hTqr2ccS9e68D+s9GztbBF1Kr9yLbHa3yJmpiM32B0lvuqDi2ZAplDB/f5yI+FBg1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.78 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:116240 Archived-At: Eli Zaretskii writes: > > I want to insert a string with a part made bold (using > > `add-face-text-property'). In certain buffers (e.g. in Fundamental > > mode) this works, but in some other ones (e.g. in Org-mode or > > message-mode) it does not. After turning font-lock off, it works back > > again. This means that font-lock kicks in right after inserting and > > disables my boldface. > > Yes. > > > Is there a way to make it not happen, without turning font lock off? > > Not really. You can turn off JIT font-lock, but then you will have to > refontify manually, and I suspect that this would, for you, mean > "turning off font-lock". I thought the text property "font-lock-face" was exactly for such cases. Isn't it appropriate in this case? Michael.