comparison etc/NEWS @ 109742:581430ee307c

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.
author Michael Mauger <mmaug@yahoo.com>
date Tue, 10 Aug 2010 19:04:32 -0400
parents 405e0ceb00e2
children be18c3b67d66
comparison
equal deleted inserted replaced
109741:e513ca0a1979 109742:581430ee307c
281 281
282 *** Added ability to login with a port on MySQL. 282 *** Added ability to login with a port on MySQL.
283 The custom variable `sql-port' can be specified for connection to 283 The custom variable `sql-port' can be specified for connection to
284 MySQL servers. 284 MySQL servers.
285 285
286 *** Command continuation prompts in SQL interactive mode are suppressed.
287 Multiple line commands in SQL interactive mode, generate command
288 continuation prompts which needlessly confuse the output. These
289 prompts are now filtered out from the output. This change impacts
290 multiple line SQL statements entered with C-j between each line,
291 statements 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.
287 Each supported product has a custom variable `sql-*-login-params' 295 Each supported product has a custom variable `sql-*-login-params'
288 which is a list of the parameters to be prompted for before a 296 which is a list of the parameters to be prompted for before a
289 connection is established. 297 connection is established.
290 298
300 The ARG when :file is specified is a regexp that will match valid file 308 The ARG when :file is specified is a regexp that will match valid file
301 names (without the directory portion). Generally these strings will 309 names (without the directory portion). Generally these strings will
302 be of the form ".+\.SUF" where SUF is the desired file suffix. 310 be of the form ".+\.SUF" where SUF is the desired file suffix.
303 311
304 When :completion is specified, the ARG corresponds to the PREDICATE 312 When :completion is specified, the ARG corresponds to the PREDICATE
305 argument to the `completing-read' function. 313 argument to the `completing-read' function (a list of possible values
314 or 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.
308 An alist for recording different username, database and server 317 An alist for recording different username, database and server
309 values. If there are multiple databases that you connect to the 318 values. If there are multiple databases that you connect to the
310 parameters needed can be stored in this alist. 319 parameters needed can be stored in this alist.