1 |
On 22/08/24 11:05AM, Jack wrote: |
2 |
> Checking here for any ideas or suggestions before I report as a KDE bug. |
3 |
> |
4 |
> I have my KDE Plasma desktop set to show my ~/Desktop folder. Two days ago, |
5 |
> I created a script.pl Perl script in that folder. (No, I don't generally do |
6 |
> work in that folder, but I just needed a quick script to deal with a file I |
7 |
> had just downloaded there.) After editing that file in emacs, a script.pl~ |
8 |
> also showed up on the Desktop. However, so did a file #script.pl#, and |
9 |
> actually I now have three files showing that name. The original and the |
10 |
> emacs backup also show up in Dolphin and an "ls" command in a terminal. |
11 |
> None of the "#" files do, however, which is expected, as there are transient |
12 |
> working files only during an active emacs session. |
13 |
> |
14 |
> Trying to edit one (double click) from the desktop opens an empty file, and |
15 |
> right clicking and selecting Properties shows the correct info as of when |
16 |
> the file actually existed - but if I ask for any checksums, they show up as |
17 |
> blank fields. |
18 |
> |
19 |
> I've looked, and have not found any relevant bug on the KDE bugzilla. (As |
20 |
> it's not likely a Gentoo bug, I don't see any point in filing at b.g.o.) |
21 |
> |
22 |
> Has anyone else noticed this? Can anyone else reproduce it? |
23 |
> |
24 |
> Thanks for any feedback. |
25 |
> |
26 |
> Jack |
27 |
|
28 |
I'm fairly sure this isn't a bug, the files exits, and are just empty, |
29 |
as they show both in Dolphin and using ls. |
30 |
|
31 |
script.pl~ is an Emacs backup file, it's created automatically and won't |
32 |
be removed. It was created by Emacs when the original file was still |
33 |
empty. |
34 |
|
35 |
#script.pl# is an Emacs auto-saved file, which was also saved when the |
36 |
buffer was empty. "auto-saves happen every 300 keystrokes, or after |
37 |
around 30 seconds of idle time", from manual, so you probably left the |
38 |
empty buffer for more than 30 seconds, but the script was shorter than |
39 |
300 characters, so it only auto saved the empty file. |
40 |
|
41 |
Those file exist on your system, they are just empty. That's why the |
42 |
dates are correct. You can simply delete them if you want. |
43 |
|
44 |
Those resources might be useful: |
45 |
https://stackoverflow.com/a/12031838 |
46 |
https://stackoverflow.com/a/18330742 |
47 |
|
48 |
In particular you can disable backup files, if you don't care or use git |
49 |
for example. |
50 |
|
51 |
Regards, |
52 |
mmokulus |