emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Possible File Saving Bug with [/]?


From: Summer Emacs
Subject: Re: Possible File Saving Bug with [/]?
Date: Thu, 7 Sep 2023 12:40:40 +0200

Hi! Sorry for the delay in replies. I was super busy yesterday, last night, and 
this morning. Ok! Let’s get to it:

1) I’m not going to reproduce the bug because it’s super annoying for me to try 
to get rid of because I have to kill extra buffers to do it, restart emacs, fix 
the git repo etc…and I don’t have time for that right now. I just have a few 
minutes before lunch so here goes:

2) My help file includes examples of commands, such as:
* C-x C-q - In dired, lets you enter edit mode to rename files
* C-u C-c C-q - Re-aligns tags (this isn’t a direct quote I’m just making this 
up to show you examples.

3) In one of the headers, it looked something like this:
* C-c C-c on [/] to update done items in todo list.

That [/] just like that was creating a backup file on every save named 
.#emacshelp.org# —> summer@summer.local.23434:882343 (those are made up numbers 
but it was always random and looked something like that in the ls -la command 
in terminal.)

Since I regularly add notes to my file, I also use Magit to save a backup copy 
(M-x g). But whenever I did that, it would ask if I wanted to save 
emacshelp.org. Obviously it was being affected by the backup file (which was 
never open in a buffer, it just was “there” in the directory).

An example of Magit interaction for adding/committing changes to that file 
would look something like this: (from emacshelp.org file)

1) M-x g
2) Minibuffer: Do you want to save emacshelp.org? Y/n/etc…
3) s
4) Minibuffer: Do you want to save emacshelp.org? Y/n/etc…
5) c c
6) Minibuffer: Do you want to save emacshelp.org? Y/n/etc…
7) Write commit message
8) C-c C-c
9) Minibuffer: Do you want to save emacshelp.org? Y/n/etc…
10) q
11) Minibuffer: Do you want to save emacshelp.org? Y/n/etc…

You get the idea. Every single thing I did in Magit would ask me this. My file 
(the original - emacshelp.org) was saved with C-x C-s AND even C-x s to save 
all files. But it didn’t matter how I answered that question, it would keep 
asking it no matter what. No matter what I did, it kept asking me that 
question, over and over and over again. Because of that “backup” file.

Note: This is behaviour which *only* happened with this single file, not with 
any other file I use.

Finally, putting = = around [/] in my notes to produce: =[/]= escaped that 
behaviour. It no longer does that. It took me an hour of rebuilding my file 
line by line to figure out *why* this was happening, but that was the line and 
that was the exact problem.

I don’t know why it did that but I *suspect* (and remember I’m a personal 
assistant, not a coder) that since URLs start and end with [] in org-mode, it 
may be trying to look for some sort of url fetch thing? Like it’s a broken link 
it’s trying to figure out? Hence the port number in the backup file name? I 
honestly don’t know and I’m not the person to ask. 🙃

That’s all I can say about it.  That’s all the info that I have. I hope that I 
was more clear this time. 🙃 TYSM for trying to help and again sorry for the 
delayed response.

Summer.


> On Sep 7, 2023, at 12:12, Ihor Radchenko <yantar92@posteo.net> wrote:
> 
> Samuel Wales <samologist@gmail.com> writes:
> 
>> lock file?  in 27 (info "(emacs) Interlocking") strangely does not
>> mention .# but it could be the concept in question.
> 
> #... is a backup file. There is nothing wrong or surprising about it.
> 
> However, the bug report is not clear enough for me to try reproducing
> things on my side. I am even not sure what exactly is the problem - is
> it creating the backup (which is normal) or is it save confirmation
> dialogue?
> 
> That's why I asked more details.
> 
> -- 
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at <https://orgmode.org/>.
> Support Org development at <https://liberapay.com/org-mode>,
> or support my work at <https://liberapay.com/yantar92>




reply via email to

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