summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-search.el
diff options
context:
space:
mode:
authorIngo Lohmar <ingo.lohmar@posteo.net>2021-05-16 16:32:10 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-05-16 16:32:10 +0200
commit5a82d4ce5add6d5eb3c5071537eef950e583e699 (patch)
tree95f10f7abb89488b569295254d3a821b820b7572 /lisp/gnus/gnus-search.el
parentb6d02dc3766f30078fdf7778951e2be78589f446 (diff)
downloademacs-5a82d4ce5add6d5eb3c5071537eef950e583e699.tar.gz
emacs-5a82d4ce5add6d5eb3c5071537eef950e583e699.tar.bz2
emacs-5a82d4ce5add6d5eb3c5071537eef950e583e699.zip
prepend newline in sqli buffer
(sql-remove-continuation-prompt, sql-send-string): Move newline insertion. Previously, the preoutput filter `sql-remove-continuation-prompt' inserted a leading newline in the interactive SQL buffer if it decided that is has to remove continuation prompts and that it had found all it was looking for. 1) This filter function was a doubtful place to do that (arguably, its name does not suggest any action like this). 2) The behavior worked inconsistently, eg, when sending a single-line "SELECT" statement, because it only ran when the filter function needed to remove any prompts (for example, not when sending a region without newlines). This can lead to misaligned table headers, which explains why emacswiki and stackoverflow both present several fixes to this behavior.
Diffstat (limited to 'lisp/gnus/gnus-search.el')
0 files changed, 0 insertions, 0 deletions