emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13836: closed (24.3.50; `put-text-property' creates lock files for i


From: GNU bug Tracking System
Subject: bug#13836: closed (24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications')
Date: Tue, 24 Dec 2019 20:17:02 +0000

Your message dated Tue, 24 Dec 2019 22:16:13 +0200
with message-id <address@hidden>
and subject line Re: bug#13836: 24.3.50; `put-text-property' creates lock files 
for indirect buffer despite `with-silent-modifications'
has caused the debbugs.gnu.org bug report #13836,
regarding 24.3.50; `put-text-property' creates lock files for indirect buffer 
despite `with-silent-modifications'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
13836: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13836
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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
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 address@hidden-20130227092013-ragyq0ly29qocc47
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:     Ubuntu 12.10



--- End Message ---
--- Begin Message --- Subject: Re: bug#13836: 24.3.50; `put-text-property' creates lock files for indirect buffer despite `with-silent-modifications' 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
Version: 25.1

On 15.08.2019 9:36, Lars Ingebrigtsen wrote:
Dmitry Gutov <address@hidden> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]