Skip to content

Address review feedback on context increment/decrement helpers#170

Merged
Wilfred merged 1 commit into
masterfrom
claude/deadgrep-pr-161-comments-lp9ifq
Jun 29, 2026
Merged

Address review feedback on context increment/decrement helpers#170
Wilfred merged 1 commit into
masterfrom
claude/deadgrep-pr-161-comments-lp9ifq

Conversation

@Wilfred

@Wilfred Wilfred commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Follow-up to #161, applying the review feedback left on that PR:

  • Use cond directly rather than nesting it inside an if. The deadgrep-restart call now lives inside each matching branch, which preserves the original behaviour (only restart when the context actually changes) without relying on the setq return value as the if condition.
  • Use the symbols 'before / 'after instead of strings, matching the existing deadgrep--context button handler that already dispatches on the before/after symbols via cl-case. The docstring is updated to match.
  • Fix the deadgrep-decrement-after-context docstring, which previously read "Increment context after."

No behavioural change beyond the docstring fix — purely a style/consistency cleanup.

🤖 Generated with Claude Code

https://claude.ai/code/session_0146BcDvXCLTfdcXE3KFoWL3


Generated by Claude Code

- Use cond directly rather than nesting it inside an if
- Use the symbols 'before and 'after instead of strings, matching
  the existing deadgrep--context button handler
- Fix the deadgrep-decrement-after-context docstring, which
  previously said "Increment"

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0146BcDvXCLTfdcXE3KFoWL3
@Wilfred Wilfred merged commit 9ba86ac into master Jun 29, 2026
3 of 15 checks passed
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.

2 participants