]> git.eshelyaron.com Git - emacs.git/commit
Rewrite sql-interactive-remove-continuation-prompt
authorFilipp Gunbin <fgunbin@fastmail.fm>
Tue, 3 May 2022 10:35:34 +0000 (12:35 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 3 May 2022 10:35:34 +0000 (12:35 +0200)
commit0b626ff8d6a29c452bc8bbbee79f5eff11d02548
tree93e617a9bfae56b0ec6b57a3884132c2eefb5590
parent0e8fc556b669cbb4794b76b8197519f808083dac
Rewrite sql-interactive-remove-continuation-prompt

* lisp/progmodes/sql.el (sql-starts-with-prompt-re): Remove.
(sql-ends-with-prompt-re): Remove
(sql-interactive-remove-continuation-prompt): Delete prompts from
anywhere in the process output, not just at the beginning of current
string.  Streamline logic, describe it in docstring.
* test/lisp/progmodes/sql-tests.el: Add tests
lisp/progmodes/sql.el
test/lisp/progmodes/sql-tests.el