Subject: bug#45577: 27.1; please document default-directory for filters and sentinels

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 05 Jan 2021 09:54:34 +0100

Hendrik Tews <[email-masked]> writes:

> Lars Ingebrigtsen <[email-masked]> writes:
>
>> nothing special about default-directory for sentinels/process filters --
>> they're called in a buffer
>
> OK, but where does the manual say in which buffer sentinels and
> filters are called? A valid choice could also be the associated
> buffer of the process, if it is present.

As with most (all?) async functions, it's undefined what buffer they're
called from.  As the "Filter Functions" node says, this is the canonical
way of running a filter function:

(defun ordinary-insertion-filter (proc string)
  (when (buffer-live-p (process-buffer proc))
    (with-current-buffer (process-buffer proc)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no