Skip to content

Use add-function to append process filter instead of replacing it#138

Merged
tarsius merged 1 commit into
magit:mainfrom
fuzy112:main
May 18, 2026
Merged

Use add-function to append process filter instead of replacing it#138
tarsius merged 1 commit into
magit:mainfrom
fuzy112:main

Conversation

@fuzy112

@fuzy112 fuzy112 commented May 18, 2026

Copy link
Copy Markdown
Contributor

When async-shell-command-display-buffer is nil, the display of the
shell command buffer is delayed until there is output. This is
achieved by adding a function to the process filter. Previously we
replaced that filter, which prevented the intended delayed display.
Use add-function to append our filter instead.

When `async-shell-command-display-buffer' is nil, the display of
the shell command buffer is delayed until there is output.  This is
achieved by adding a function to the process filter.  Previously we
replaced that filter, which prevented the intended delayed display.
Use `add-function' to append our filter instead.

Co-authored-by: Jonas Bernoulli <[email protected]>
  Decision to drop support for Emacs 26 and 27, so `add-function'
  can be used.
@tarsius tarsius merged commit e1ab360 into magit:main May 18, 2026
9 checks passed
@tarsius

tarsius commented May 18, 2026

Copy link
Copy Markdown
Member

Thanks!

@npostavs

npostavs commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Decision to drop support for Emacs 26 and 27, so `add-function' can be used.

Wasn't add-function introduced in Emacs 24?

(Not super important regardless, I'm just updating my setup right now and going through old revisions of packages I use)

@tarsius

tarsius commented Jun 8, 2026

Copy link
Copy Markdown
Member

Yes it was. Emacs 28 is actually needed for the unrelated commit right before this one. Got confused there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants