Ah, apologies. I should've done more testing.

Turns out I have `find-file-visit-truename` set to non-nil which causes the 
behaviour I describe.

Best regards,
-- Al

On 28/05/2024, David Bremner wrote:
> Al Haji-Ali <abdo.haji....@gmail.com> writes:
>
>>
>> On my setup (MacOS, Emacs 29.1) this prints something like
>>
>> ,----
>> | Filename: /Users/al/link-tmp/notmuch-ical7MtHvd
>> | get-file-buffer: nil
>> | find-buffer-visiting: #<buffer notmuch-ical7MtHvd>
>> | buffer-file-name: /private/tmp/notmuch-ical7MtHvd
>> `----
>
> Here it prints
>
>     Filename: /home/bremner/link-tmp/notmuch-icalDC01xk
>     get-file-buffer: #<buffer notmuch-icalDC01xk>
>     find-buffer-visiting: #<buffer notmuch-icalDC01xk>
>     buffer-file-name: /home/bremner/link-tmp/notmuch-icalDC01xk
>
> So I guess this is some system dependent (or emacs dependent; I have
> 29.3 here) behaviour. I can convert the test to a regression test after
> the change is applied. It's not as nice, but it's better than not
> testing it at all.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to