aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prog-shell--make-script-executable.el
Commit message (Collapse)AuthorAgeFilesLines
* fix(prog-shell): only auto-chmod scripts in prog-mode buffersCraig Jennings4 days1-0/+14
| | | | cj/make-script-executable runs from a global after-save-hook and set +x on any saved file whose first line was a shebang, in every buffer. A downloaded script you were reading, a template, or a shebang in a text or org file silently became executable. I gated it on derived-mode-p prog-mode, so it only acts on actual script buffers. Real scripts (sh-mode, python-mode) still get the fast path.
* test(prog-shell): add tests for cj/make-script-executableCraig Jennings2026-01-241-0/+130
9 tests covering: - Normal: bash/python shebangs, already executable - Boundary: no shebang, empty file, shebang on line 2, hash without ! - Edge: no buffer file, shebang with space Closes TODO item for make-script-executable tests. Also closes already-done ANSI codes TODO.