From unknown Mon Jun 23 04:13:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13836: 24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications' Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Feb 2013 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13836 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13836@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13619867768064 (code B ref -1); Wed, 27 Feb 2013 17:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Feb 2013 17:39:36 +0000 Received: from localhost ([127.0.0.1]:53811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAkyd-000261-SC for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:39:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35085) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAkyb-00025q-0z for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:39:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAkwY-0006wo-F7 for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:37:38 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkwX-0006w2-9g for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:37:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkwI-00081F-BF for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:37:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAkw0-0006ob-Ma for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:37:02 -0500 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:37370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkvz-0006iT-An for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:36:52 -0500 Received: by mail-la0-f50.google.com with SMTP id ec20so832431lab.23 for ; Wed, 27 Feb 2013 09:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:mime-version :content-type; bh=WLTcQ2DR2AeHXscX0E8kNYgvePQDwHhCgbpihA5rlsg=; b=RB68l8XQzT+FlW+0M9wF/EgeXW3qRpIt7fjTzBBgYUh5nZ+R4uE7lthx4ATq85jd+z AHZy7K+n9A/jmXl2n8Q0JG/7xSJ8cbuk5C33LSka3MaIj/nkkRUeiLLzZdnJRIy0O2VI Rt5xf4xv3OxfMAh2xA6LtyVGo6mML9r1BT9PX/7MxaQGTWe/Te2bxSQaXpnpaKUH3WYA u/JXWNs9qo1wl5uA07e//ncn5aJx9NAf+OEjwGVs0SbV+8xOjVgrPbISHTQyJbAqj68k 9OoLQn+N9aBrkisCfrSjw8UNHdSh69ebrZO+A0nVzk/8F+ZgIY5lh1sQS3Zbh68K3ka2 Nxtg== X-Received: by 10.112.26.10 with SMTP id h10mr2441435lbg.63.1361986592903; Wed, 27 Feb 2013 09:36:32 -0800 (PST) Received: from vbx ([178.252.98.87]) by mx.google.com with ESMTPS id oy10sm3126633lab.8.2013.02.27.09.36.30 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 27 Feb 2013 09:36:31 -0800 (PST) From: Dmitry Gutov Date: Wed, 27 Feb 2013 21:36:25 +0400 Message-ID: <87bob5wteu.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 1. Open a file that has some syntax highlighting in the associated mode (e.g. ~/test.js, in js-mode). 2. (switch-to-buffer (make-indirect-buffer (current-buffer) "foo")) 3. M-x js-mode 4. Observe the created .#test.js symlink. * (buffer-modified-p) returns nil in both buffers. * The lock file won't be removed when the indirect and the base buffer are killed, and even after Emacs is killed. * If I remove the lock file manually, it will be re-created each time `put-text-property' is called. * Possibly related to Bug#3038. * Reproduces in 24.2 and 23.4, so not a regression, as far as 24.3 is concerned. Here's a typical Lisp-level backtrace: (gdb) xbacktrace "put-text-property" (0xffff7ea0) "jit-lock-refontify" (0xffff83b0) "jit-lock-mode" (0xffff88e0) "jit-lock-register" (0xffff8de0) "font-lock-turn-on-thing-lock" (0xffff92f0) "font-lock-mode-internal" (0xffff97f0) "font-lock-default-function" (0xffff9cf0) "font-lock-mode" (0xffffa1f0) "turn-on-font-lock" (0xffffa6d0) "turn-on-font-lock-if-desired" (0xffffabc0) "global-font-lock-mode-enable-in-buffers" (0xffffb148) "run-hooks" (0xffffb230) "run-mode-hooks" (0xffffb730) "js-mode" (0xffffbc40) (Same thing happens inside `syntax-propertize', so it's not just jit-lock). Abbreviated C backtrace: (gdb) backtrace #0 lock_file (fn=26156449) at filelock.c:615 #1 0x0000000000630043 in prepare_to_modify_buffer (start=1, end=38, preserve_ptr=0x0) at insdel.c:1829 #2 0x000000000062faf0 in modify_region_1 (start=1, end=38, preserve_chars_modiff=true) at insdel.c:1763 #3 0x0000000000759df0 in modify_region (buffer=40447669, start=4, end=152) at textprop.c:97 #4 0x000000000075e9f0 in Fadd_text_properties (start=4, end=152, properties=39370150, object=40447669) at textprop.c:1178 #5 0x000000000075ee63 in Fput_text_property (start=4, end=152, property=15828690, value=15589922, object=15589922) at textprop.c:1240 #6 0x00000000006ba77c in Ffuncall (nargs=5, args=0x7fffffff7e98) at eval.c:2691 #7 0x000000000072bf41 in exec_byte_code (bytestr=13193993, vector=13194165, maxdepth=24, args_template=15589922, nargs=0, args=0x0) at bytecode.c:898 In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2013-02-27 on vbx Bzr revision: 111886 michael.albinus@gmx.de-20130227092013-ragyq0ly29qocc47 Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10 From unknown Mon Jun 23 04:13:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13836: 24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications' Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2019 06:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13836 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 13836@debbugs.gnu.org Received: via spool by 13836-submit@debbugs.gnu.org id=B13836.15658510027499 (code B ref 13836); Thu, 15 Aug 2019 06:37:01 +0000 Received: (at 13836) by debbugs.gnu.org; 15 Aug 2019 06:36:42 +0000 Received: from localhost ([127.0.0.1]:50482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy9NK-0001wt-6J for submit@debbugs.gnu.org; Thu, 15 Aug 2019 02:36:42 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy9NJ-0001wj-69 for 13836@debbugs.gnu.org; Thu, 15 Aug 2019 02:36:41 -0400 Received: from 24-104-73-23-ip-static.hfc.comcastbusiness.net ([24.104.73.23] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hy9NE-0000Ew-Pl; Thu, 15 Aug 2019 08:36:39 +0200 From: Lars Ingebrigtsen References: <87bob5wteu.fsf@yandex.ru> Date: Wed, 14 Aug 2019 23:36:34 -0700 In-Reply-To: <87bob5wteu.fsf@yandex.ru> (Dmitry Gutov's message of "Wed, 27 Feb 2013 21:36:25 +0400") Message-ID: <87woffx7d9.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > 1. Open a file that has some syntax highlighting in the associated mode > (e.g. ~/test.js, in js-mode). > 2. (switch-to-buffer (make-indirect-buffer (current-buffer) "foo")) > 3. M-x js-mode > 4. Ob [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > 1. Open a file that has some syntax highlighting in the associated mode > (e.g. ~/test.js, in js-mode). > 2. (switch-to-buffer (make-indirect-buffer (current-buffer) "foo")) > 3. M-x js-mode > 4. Observe the created .#test.js symlink. I'm unable to reproduce this bug in Emacs 27. Instead I get (when saying `M-x js-mode'): --- Not enabling jit-lock: it does not work in indirect buffer --- So has this been fixed by now or is this just some... other thing? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Jun 23 04:13:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dmitry Gutov Subject: bug#13836: closed (Re: bug#13836: 24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications') Message-ID: References: <87bob5wteu.fsf@yandex.ru> X-Gnu-PR-Message: they-closed 13836 X-Gnu-PR-Package: emacs Reply-To: 13836@debbugs.gnu.org Date: Tue, 24 Dec 2019 20:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1577218622-6056-1" This is a multi-part message in MIME format... ------------=_1577218622-6056-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13836: 24.3.50; `put-text-property' creates lock files for indirect buffer= despite `with-silent-modifications' which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13836@debbugs.gnu.org. --=20 13836: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13836 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1577218622-6056-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13836-done) by debbugs.gnu.org; 24 Dec 2019 20:16:24 +0000 Received: from localhost ([127.0.0.1]:53097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijqbP-0001Yn-R5 for submit@debbugs.gnu.org; Tue, 24 Dec 2019 15:16:23 -0500 Received: from mail-wm1-f48.google.com ([209.85.128.48]:37443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijqbO-0001YY-93 for 13836-done@debbugs.gnu.org; Tue, 24 Dec 2019 15:16:22 -0500 Received: by mail-wm1-f48.google.com with SMTP id f129so3218993wmf.2 for <13836-done@debbugs.gnu.org>; Tue, 24 Dec 2019 12:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=osrZ6uHkjzq8+OrJSOBn3FQ0wcUEjJvMUWdsActn4bI=; b=mMvn6iM0DwkB/Hzuj6yiyBaduyrW1dVamcM/Sh8WXlhW8CftrjYXa6S0Pm+GvFVGJq mIxRqkCjf/K2SgU0dU+w8c4AqdFCjA8wOiTIRzx3/A3U+fM55gfnNwYt3mnlUsGuuZF6 fcvZ1ub+t/wJlmkyVLXIBibCKXQ7arodOirPGijW82fFHSRWqo7F+gyAPpHc3ZNXke8T cbmyncylHMrbiw+CQf9JWB2TS4D7U6T2O3d585vF3wHXNJ9a/22DXnUywdx06sQnwhYR jW9vgb2IuNhcomjs+jEusw/9MJGiuUK0D426PeOAM359wQoWihlM40Yn/cXiV4C0eNXG v92w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=osrZ6uHkjzq8+OrJSOBn3FQ0wcUEjJvMUWdsActn4bI=; b=pUYZJvrTEcA8hYCbjdBsKkSPg2/+EuM95E4DjmIgzxj055snLHvWvYNNyG+cPf/nh1 HU/fRbded0Eg3+BvIm0S4LIMEnkrVzRHlpVpForZBiOUfhq071Ign147aakqlxFbRPMt PqHcZuEndQVDZrFZULVtHB/dpEI+D/siDjk4xMndEkQqIPSx3qAmnlTmSOo4nDDyMmFj Dnom7y16ROynUzSqPlR1EYWy9PtfjlJ9ztqLc3XECczz9tqMmt5SrOOVxH8XiPOocTuB BZhbLKxYTWtMqJuh5FvLlQFlEf9z/wigGJVY3f4YXq0S43ss9s//cKSXS9VbQWi9on3U olmw== X-Gm-Message-State: APjAAAXUn8eJeKnvMSliOzLNefNYH8HPBk4Pnt7qOtXPWjxXp1lW6PEp WjfDvBnkBD224rnezgx7ZTRX1gvJa1M= X-Google-Smtp-Source: APXvYqx35b+HKi4g4lpAHs7+mSIjJE7rZpQRTMeOqRYWoKV2RZrRBkNi3ksy21qUrn/4En234op1qg== X-Received: by 2002:a1c:541b:: with SMTP id i27mr5844025wmb.137.1577218576145; Tue, 24 Dec 2019 12:16:16 -0800 (PST) Received: from [192.168.0.2] ([212.50.117.215]) by smtp.googlemail.com with ESMTPSA id e16sm24690415wrs.73.2019.12.24.12.16.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Dec 2019 12:16:15 -0800 (PST) Subject: Re: bug#13836: 24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications' To: Lars Ingebrigtsen References: <87bob5wteu.fsf@yandex.ru> <87woffx7d9.fsf@mouse.gnus.org> From: Dmitry Gutov Message-ID: Date: Tue, 24 Dec 2019 22:16:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <87woffx7d9.fsf@mouse.gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 13836-done Cc: 13836-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Version: 25.1 On 15.08.2019 9:36, Lars Ingebrigtsen wrote: > Dmitry Gutov writes: > >> 1. Open a file that has some syntax highlighting in the associated mode >> (e.g. ~/test.js, in js-mode). >> 2. (switch-to-buffer (make-indirect-buffer (current-buffer) "foo")) >> 3. M-x js-mode >> 4. Observe the created .#test.js symlink. > > I'm unable to reproduce this bug in Emacs 27. Instead I get (when > saying `M-x js-mode'): > > --- > Not enabling jit-lock: it does not work in indirect buffer > --- > > So has this been fixed by now or is this just some... other thing? Thanks for looking into this. Seems fixed to me as well. Actually can't reproduce going as far back as Emacs 25 (even by calling put-text-property inside with-silent-modifications manually). So, closing. ------------=_1577218622-6056-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Feb 2013 17:39:36 +0000 Received: from localhost ([127.0.0.1]:53811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAkyd-000261-SC for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:39:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35085) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAkyb-00025q-0z for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:39:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAkwY-0006wo-F7 for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:37:38 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkwX-0006w2-9g for submit@debbugs.gnu.org; Wed, 27 Feb 2013 12:37:26 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkwI-00081F-BF for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:37:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAkw0-0006ob-Ma for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:37:02 -0500 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:37370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkvz-0006iT-An for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:36:52 -0500 Received: by mail-la0-f50.google.com with SMTP id ec20so832431lab.23 for ; Wed, 27 Feb 2013 09:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:mime-version :content-type; bh=WLTcQ2DR2AeHXscX0E8kNYgvePQDwHhCgbpihA5rlsg=; b=RB68l8XQzT+FlW+0M9wF/EgeXW3qRpIt7fjTzBBgYUh5nZ+R4uE7lthx4ATq85jd+z AHZy7K+n9A/jmXl2n8Q0JG/7xSJ8cbuk5C33LSka3MaIj/nkkRUeiLLzZdnJRIy0O2VI Rt5xf4xv3OxfMAh2xA6LtyVGo6mML9r1BT9PX/7MxaQGTWe/Te2bxSQaXpnpaKUH3WYA u/JXWNs9qo1wl5uA07e//ncn5aJx9NAf+OEjwGVs0SbV+8xOjVgrPbISHTQyJbAqj68k 9OoLQn+N9aBrkisCfrSjw8UNHdSh69ebrZO+A0nVzk/8F+ZgIY5lh1sQS3Zbh68K3ka2 Nxtg== X-Received: by 10.112.26.10 with SMTP id h10mr2441435lbg.63.1361986592903; Wed, 27 Feb 2013 09:36:32 -0800 (PST) Received: from vbx ([178.252.98.87]) by mx.google.com with ESMTPS id oy10sm3126633lab.8.2013.02.27.09.36.30 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 27 Feb 2013 09:36:31 -0800 (PST) From: Dmitry Gutov To: bug-gnu-emacs@gnu.org Subject: 24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications' Date: Wed, 27 Feb 2013 21:36:25 +0400 Message-ID: <87bob5wteu.fsf@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 1. Open a file that has some syntax highlighting in the associated mode (e.g. ~/test.js, in js-mode). 2. (switch-to-buffer (make-indirect-buffer (current-buffer) "foo")) 3. M-x js-mode 4. Observe the created .#test.js symlink. * (buffer-modified-p) returns nil in both buffers. * The lock file won't be removed when the indirect and the base buffer are killed, and even after Emacs is killed. * If I remove the lock file manually, it will be re-created each time `put-text-property' is called. * Possibly related to Bug#3038. * Reproduces in 24.2 and 23.4, so not a regression, as far as 24.3 is concerned. Here's a typical Lisp-level backtrace: (gdb) xbacktrace "put-text-property" (0xffff7ea0) "jit-lock-refontify" (0xffff83b0) "jit-lock-mode" (0xffff88e0) "jit-lock-register" (0xffff8de0) "font-lock-turn-on-thing-lock" (0xffff92f0) "font-lock-mode-internal" (0xffff97f0) "font-lock-default-function" (0xffff9cf0) "font-lock-mode" (0xffffa1f0) "turn-on-font-lock" (0xffffa6d0) "turn-on-font-lock-if-desired" (0xffffabc0) "global-font-lock-mode-enable-in-buffers" (0xffffb148) "run-hooks" (0xffffb230) "run-mode-hooks" (0xffffb730) "js-mode" (0xffffbc40) (Same thing happens inside `syntax-propertize', so it's not just jit-lock). Abbreviated C backtrace: (gdb) backtrace #0 lock_file (fn=26156449) at filelock.c:615 #1 0x0000000000630043 in prepare_to_modify_buffer (start=1, end=38, preserve_ptr=0x0) at insdel.c:1829 #2 0x000000000062faf0 in modify_region_1 (start=1, end=38, preserve_chars_modiff=true) at insdel.c:1763 #3 0x0000000000759df0 in modify_region (buffer=40447669, start=4, end=152) at textprop.c:97 #4 0x000000000075e9f0 in Fadd_text_properties (start=4, end=152, properties=39370150, object=40447669) at textprop.c:1178 #5 0x000000000075ee63 in Fput_text_property (start=4, end=152, property=15828690, value=15589922, object=15589922) at textprop.c:1240 #6 0x00000000006ba77c in Ffuncall (nargs=5, args=0x7fffffff7e98) at eval.c:2691 #7 0x000000000072bf41 in exec_byte_code (bytestr=13193993, vector=13194165, maxdepth=24, args_template=15589922, nargs=0, args=0x0) at bytecode.c:898 In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2013-02-27 on vbx Bzr revision: 111886 michael.albinus@gmx.de-20130227092013-ragyq0ly29qocc47 Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10 ------------=_1577218622-6056-1--