aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMichael Mauger2010-08-10 19:04:32 -0400
committerMichael Mauger2010-08-10 19:04:32 -0400
commit3bd2cfef67d5eaf65a50ccc54a1f70a5328cc8d1 (patch)
tree3b49fcffc39e7f83180e338274c6308f892709c9 /etc
parent490b89acab3e759426ede25c31c94268df55e925 (diff)
downloademacs-3bd2cfef67d5eaf65a50ccc54a1f70a5328cc8d1.tar.gz
emacs-3bd2cfef67d5eaf65a50ccc54a1f70a5328cc8d1.zip
Suppress continuation prompts in SQL interactive mode
* progmodes/sql.el: Version 2.5 (sql-product-alist): Add :prompt-cont-regexp property for several database products. (sql-prompt-cont-regexp): New variable. (sql-output-newline-count, sql-output-by-send): New variables. Record number of newlines in input text. (sql-send-string): Handle multiple filters and count newlines. (sql-send-magic-terminator): Count terminator newline. (sql-interactive-remove-continuation-prompt): Filters output to remove continuation prompts; one for each newline. (sql-interactive-mode): Set up new variables, prompt regexp and output filter. (sql-mode-sqlite-font-lock-keywords): Correct some keywords. (sql-make-alternate-buffer-name): Correct buffer name in edge cases.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS11
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index bec5b3b3468..9837e6c95b8 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -283,6 +283,14 @@ variables `sql-product', `sql-user', `sql-server', `sql-database' and
283The custom variable `sql-port' can be specified for connection to 283The custom variable `sql-port' can be specified for connection to
284MySQL servers. 284MySQL servers.
285 285
286*** Command continuation prompts in SQL interactive mode are suppressed.
287Multiple line commands in SQL interactive mode, generate command
288continuation prompts which needlessly confuse the output. These
289prompts are now filtered out from the output. This change impacts
290multiple line SQL statements entered with C-j between each line,
291statements yanked into the buffer and statements sent with
292`sql-send-*' functions.
293
286*** Custom variables control prompting for login parameters. 294*** Custom variables control prompting for login parameters.
287Each supported product has a custom variable `sql-*-login-params' 295Each supported product has a custom variable `sql-*-login-params'
288which is a list of the parameters to be prompted for before a 296which is a list of the parameters to be prompted for before a
@@ -302,7 +310,8 @@ names (without the directory portion). Generally these strings will
302be of the form ".+\.SUF" where SUF is the desired file suffix. 310be of the form ".+\.SUF" where SUF is the desired file suffix.
303 311
304When :completion is specified, the ARG corresponds to the PREDICATE 312When :completion is specified, the ARG corresponds to the PREDICATE
305argument to the `completing-read' function. 313argument to the `completing-read' function (a list of possible values
314or a function returning such a list).
306 315
307*** Added `sql-connection-alist' to record login parameter values. 316*** Added `sql-connection-alist' to record login parameter values.
308An alist for recording different username, database and server 317An alist for recording different username, database and server