Skip to content

Let comint mode cover the tasks too - #2157

Merged
bbatsov merged 1 commit into
masterfrom
feature/2156-comint-for-tasks
Aug 13, 2026
Merged

Let comint mode cover the tasks too#2157
bbatsov merged 1 commit into
masterfrom
feature/2156-comint-for-tasks

Conversation

@bbatsov

@bbatsov bbatsov commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Fixes #2156.

projectile-use-comint-mode says it makes the commands Projectile runs interactive, and t reads as all of them - but projectile--run-task never passed the flag on, so a task always got a read-only compilation buffer. The reporter's case is a system rebuild that wants a sudo password, and there's nowhere to type it.

Not a regression from folding the six per-command options into one in 3.4, since no per-task option ever existed. But the single option reads like it covers everything, and tasks go through the same runner and feed the same command history, so they're covered now: name task in the list, or set t.

While in there, projectile-use-comint-mode-p returns an actual boolean. It was handing back whatever memq found, so a list-valued option sent its own tail down into compile as the COMINT argument - harmless, since only truthiness was read, but it made the new spec assert on (task).

`projectile-use-comint-mode' promises an interactive buffer for what
Projectile runs, and `t' reads as all of it - but `projectile--run-task'
never passed the flag on, so a task always landed in a read-only
compilation buffer. The reporter's case is a system rebuild that needs a
sudo password: there is nowhere to type it, so the task simply can't be
run.

Not a regression from folding the six per-command options into one in
3.4 - no per-task option ever existed - but the single option reads like
it covers everything, and tasks go through the same runner and the same
command history. So they're covered now: `task' can be named in the list,
and `t' includes them.

`projectile-use-comint-mode-p' also returns a real boolean now. It was
handing back whatever `memq' found, so a list-valued option sent its own
tail into `compile' as the COMINT argument. Harmless, since only its
truthiness was ever read, but it made the new spec assert on `(task)'.
@bbatsov
bbatsov merged commit 10fa399 into master Aug 13, 2026
10 checks passed
@bbatsov
bbatsov deleted the feature/2156-comint-for-tasks branch August 13, 2026 14:23
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.

projectile-use-comint-mode does not apply to tasks

1 participant