emacs-devel
[Top][All Lists]
Advanced

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

Re: write-region bug ?


From: Stefan Monnier
Subject: Re: write-region bug ?
Date: Sat, 04 Jan 2020 17:58:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> >> > → for some reason, the foo.el buffer is now associated to bar.txt
>> >> You asked for it.
>> > Indeed, because the VISIT argument of write-region was non-nil, and
>> > that's what it does.  It's in the documentation.
>> 
>> OTOH, the VISIT argument can't make sense when the text comes from
>> a string rather than from a buffer.
>
> Why does it not make sense?  FILENAME is still provided.

VISIT basically tells that the buffer should be considered as
visiting FILENAME.  Here, we have VISIT and FILENAME but we don't have
the buffer (except that by accident).


        Stefan




reply via email to

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