[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: safe way to add contents to a file ?
From: |
Stefan Monnier |
Subject: |
Re: safe way to add contents to a file ? |
Date: |
Wed, 18 Dec 2019 09:10:22 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> The code is a most simple one liner variation on the following:
>
> (write-region "stuff" nil "path/to/my/file/test.txt" nil t nil t).
>
> Sometimes the whole *line* above (contained in file "test.el") would be
> copied to the file "test.txt" and I have no idea why.
Very curious. If you can come up with a recipe to reproduce it
somewhat-reliably, then please `M-x report-emacs-bug`.
>> Which part of which reference?
> The elisp reference. I'm not aware that there is any other reference
> material regarding elisp. Is there ?
I thought maybe you had found some material on a web page somewhere, but
other than that and the Emacs Lisp manual, there are of course other
books and last but not least docstrings (which is the reference I use
most of the time).
>> What have you looked for?
> The files chapter, the buffers chapter. It's all descriptions of function
> after function and overall very confusing when you don't know the basics of
> what's necessary.
Hmm... we do assume familiarity with how files work, yes.
Could propose a concrete change which would have helped you?
Stefan
- Re: safe way to add contents to a file ?, (continued)
- Re: safe way to add contents to a file ?, Jean-Christophe Helary, 2019/12/21
- Re: safe way to add contents to a file ?, Jean-Christophe Helary, 2019/12/21
- Re: safe way to add contents to a file ?, Óscar Fuentes, 2019/12/22
- Re: safe way to add contents to a file ?, Jean-Christophe Helary, 2019/12/22
- Re: safe way to add contents to a file ?, Óscar Fuentes, 2019/12/22
- Re: safe way to add contents to a file ?, Stefan Monnier, 2019/12/22
Re: safe way to add contents to a file ?, Stefan Monnier, 2019/12/17