Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'dap--persist': 'with-temp-file' creates a fresh buffer that is already empty, so there is no need to erase it again. Print data-to-persist directly to output buffer, avoiding roundtrip via temporary string. 'dap--print-to-output-buffer': modes are enabled with a 'nil' or nonnegative numeric argument rather than with 't'; using 'turn-on-font-lock' avoids both this pitfall, as well as redundantly reenabling the mode. Use an 'inhibit-read-only' binding for temporary read-only overrides, as modifications to 'buffer-read-only' will not be undone in case of a non-local exit. 'dap-debug-edit-template': Avoid temporary string roundtrip when checking for an empty buffer. Use 'insert-char' for repetitions of the same character. Remove redundant 'prin1-to-string' in arguments to 'format'; it already uses 'prin1' for the '%s' sequence.
- Loading branch information