From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#13836: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361986755 7208 80.91.229.3 (27 Feb 2013 17:39:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2013 17:39:15 +0000 (UTC) To: 13836@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 27 18:39:35 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UAkya-0003Lr-G2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2013 18:39:32 +0100 Original-Received: from localhost ([::1]:39583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkyC-0000UI-Cz for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Feb 2013 12:39:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkxZ-0008GZ-6p for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:38:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAkxL-0007DH-B7 for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:38:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAkxK-0007BV-4i for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:38:15 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UAkz4-00027N-6C for bug-gnu-emacs@gnu.org; Wed, 27 Feb 2013 12:40:02 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13619867768064 (code B ref -1); Wed, 27 Feb 2013 17:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2013 17:39:36 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71919 Archived-At: 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