There is a race condition in vim 7.2 (and probably in earlier too) on POSIX platforms. Below, there is fragment of strace output related to this problem. ...
Adam Osuchowski
adwol@...
Jan 3, 2009 10:26 pm
52894
... See ... Best regards, Tony. -- ARTHUR: Be quiet! DENNIS: --but by a two-thirds majority in the case of more-- ARTHUR: Be quiet! I order you to be...
Tony Mechelynck
antoine.mechelynck@...
Jan 3, 2009 10:44 pm
52895
... I try different settings of this variables and there was always the same situation: open("testfile", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 3 write(3, "test...
Adam Osuchowski
adwol@...
Jan 4, 2009 3:19 am
52896
... I don't know. There're only one keyboard and one display on this machine, and I try to avoid having several programs modify a single file simultaneously...
Tony Mechelynck
antoine.mechelynck@...
Jan 4, 2009 3:41 am
52897
... Cases like mbox files are not so rare. There are many examples of simultaneously access to single file, but problem exists even without concurrent...
Adam Osuchowski
adwol@...
Jan 4, 2009 4:27 am
52898
... rename(2) doesn't do everything needed. What if the file being written is a symlink, or a hard link? rename() would break the link, which probably isn't...
Matt Wozniski
mjw@...
Jan 4, 2009 9:26 am
52899
... That's all taken care of when 'backupcopy' is "auto". If you want the original file to always exist set 'backupcopy' to "yes". Saving files will be...
Bram Moolenaar
Bram@...
Jan 4, 2009 12:01 pm
52900
The attached patch fixes the problem with displaying the value of the NL character in files edited with 'ff' set to "mac". The solution was to replace CARs...
Lech Lorens
lech.lorens@...
Jan 4, 2009 2:39 pm
52901
... Right, but current behaviour is even worse. We can't protect if somebody create file while vim saves it due to system limitations, but we can protect...
Adam Osuchowski
adwol@...
Jan 4, 2009 2:47 pm
52902
... Not quite. Of course, with 'backupcopy' set to "yes", there are not moment when another process find file missing, but still file may be empty or not...
Adam Osuchowski
adwol@...
Jan 4, 2009 2:58 pm
52903
... I haven't really understood what the problem is (I don't believe that there actually is one), but would opening the file exclusively solve the problem? ...
Nikolai Weibull
now@...
Jan 4, 2009 3:11 pm
52904
... There is a non-zero time period between open file and write complete content. Because vim truncate file while opening (O_TRUNC), another process which...
... Yeah, so? That's not a bug. File systems are, generally, not databases with ACID properties. They don't provide transactions (at the level we're...
Nikolai Weibull
now@...
Jan 4, 2009 10:08 pm
52907
... If you're talking Unix/Linux/etc -- flock is a cooperative file locking mechanism, and processes which ignore it are not impeded. Look into mandatory file...
Charles E. Campbell, ...
drchip@...
Jan 4, 2009 10:20 pm
52908
On Sun, Jan 4, 2009 at 23:19, Charles E. Campbell, Jr. ... Just to make sure, did you read the part where I wrote "[flock] doesn't seem to be very interesting...
Nikolai Weibull
now@...
Jan 4, 2009 10:37 pm
52909
... Nikolai -- you're getting a bit sensitive here -- it was "simply to fill in extra information...", as you hadn't explained why flock "wasn't interesting." ...
Charles E. Campbell, ...
drchip@...
Jan 4, 2009 10:54 pm
52910
... So what is your advice? Ignore it? It's very comfortable to call flows features, we have perfect situation and don't need to worry about consequences. ... ...
Adam Osuchowski
adwol@...
Jan 4, 2009 11:07 pm
52911
... I didn't tell about multiple people editing the same file or editing log files. I told about _ONE_ person editing file which could be read by another ...
Adam Osuchowski
adwol@...
Jan 4, 2009 11:13 pm
52912
... ? ... That's what crontab -e is for, among other things. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev"...
Nikolai Weibull
now@...
Jan 4, 2009 11:48 pm
52913
... He didn't mean it's your problem personally and that no other user would experience it. He meant it's your problem as the user, not the editor's problem. ...
Ben Schmidt
mail_ben_schmidt@...
Jan 5, 2009 4:35 am
52914
... I sent this to Bram before the Holidays, but I forgot to CC the mailing list. Please take a look at this patch and tell me what you think. Here is a patch...
Erik Falor
ewfalor@...
Jan 5, 2009 6:38 pm
52915
Patch 7.2.078 Problem: When deleting a fold that is specified with markers the cursor position may be wrong. Folds may not be displayed properly after a...
Bram Moolenaar
Bram@...
Jan 6, 2009 2:03 pm
52916
Patch 7.2.079 Problem: "killed" netbeans events are not handled correctly. Solution: A "killed" netbeans event is sent when the buffer is deleted or wiped...
Bram Moolenaar
Bram@...
Jan 6, 2009 3:14 pm
52917
... It turns out that the "X" inserted is keymapped to a composing character. When deleting the completed text this causes the character bofore it, the "-",...
Bram Moolenaar
Bram@...
Jan 6, 2009 5:58 pm
52918
Hi, list, as title, if so, why can't many functions still handle correctly with unicode? For example the func: getline('.')[col('.')-1] Can't return a...
anhnmncb
anhnmncb@...
Jan 6, 2009 10:39 pm
52919
... because string[index] returns a byte value, not a character value: see ":help expr8". If the character at the cursor is > U+007F, you'll get the first byte...
Tony Mechelynck
antoine.mechelynck@...
Jan 6, 2009 11:10 pm
52920
On Tue, Jan 6, 2009 at 6:10 PM, Tony Mechelynck wrote:
>
> On 06/01/09 12:31, anhnmncb wrote:
>> Hi, list, as title, if so, why can't many functions
>> still...
Matt Wozniski
mjw@...
Jan 6, 2009 11:40 pm
52921
... col() gives a one-based byte ordinal. [] takes a zero-based argument. I stand by what I said. ... OK, I didn't think of virtual editing, nor even, it...
Tony Mechelynck
antoine.mechelynck@...
Jan 7, 2009 12:26 am
52922
On 1/6/09, Tony Mechelynck wrote:
>
> On 07/01/09 00:39, Matt Wozniski wrote:
> > On Tue, Jan 6, 2009 at 6:10 PM, Tony Mechelynck wrote:
> >> On 06/01/09...