[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45577: 27.1; please document default-directory for filters and senti
From: |
Lars Ingebrigtsen |
Subject: |
bug#45577: 27.1; please document default-directory for filters and sentinels |
Date: |
Tue, 05 Jan 2021 09:54:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hendrik Tews <hendrik@askra.de> writes:
> Lars Ingebrigtsen <larsi@gnus.org> 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