bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#43573: 26.1; set-process-buffer doesn't create a process marker


From: marmot-te
Subject: bug#43573: 26.1; set-process-buffer doesn't create a process marker
Date: Sat, 03 Oct 2020 14:13:49 +0000

On Thu, Sep 24 2020, Lars Ingebrigtsen wrote:

> marmot-te <marmot-te@riseup.net> writes:
>
>> I noticed that creating a buffer for a process with set-process-buffer
>> does not create also a marker specific to that process that can be
>> retrieved with process-mark afteward.
>
> Yes, pretty odd, but it’s just a normal marker, I think, so if you want
> it to point somewhere else, you can just use do
>
> (set-marker (process-mark proc) (point-max) buffer)

Now I see it it feels so obvious :)

> However, while there is some potential for breakage here, I think it
> makes sense to have set-process-buffer do this, so I’ve applied it to
> Emacs 28. If this breaks anything (and that is possible – somebody
> could be using `process-mark’ as a weird way to keep track of what the
> previous buffer was – it should be reverted.
>
> I think that’s very unlikely, but I guess we’ll find out.

Ok, thanks you !


<:3nn~~
<:3nn~~
<:3nn~~


reply via email to

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