unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jiri Pejchal <jiri.pejchal@gmail.com>
Subject: Tabs and ends of lines in sql mode
Date: Sat, 22 Apr 2006 19:31:40 +0200	[thread overview]
Message-ID: <87wtdhikjn.fsf@gmail.com> (raw)

The function sql-send-paragraph in sql.el sends current paragraph to the
SQL process. However it sends the paragraph with leading tabs and ends
of lines. In database front-ends like mysql or psql tabs are bound to
completion and so the completion is printed. Moreover ends of lines
cause secondary prompts to be printed.


So if I send:

create table stock (
	id int4,
	avail int4,
	ordered int4,
	valid bool,
	description text
);

six secondary prompts and five times the completions (several lines) are
printed, that is very inconvenient.

Could sql mode not send the internal tabs and ends of lines?

Jiri Pejchal

Sending the previous example produces following output:

test=> test(>
ABORT        COMMIT       END          LISTEN       RELEASE      SHOW
ALTER        COPY         EXECUTE      LOAD         RESET        START
ANALYZE      CREATE       EXPLAIN      LOCK         REVOKE       TRUNCATE
BEGIN        DEALLOCATE   FETCH        MOVE         ROLLBACK     UNLISTEN
CLOSE        DECLARE      GRANT        NOTIFY       SAVEPOINT    UPDATE
CLUSTER      DELETE FROM  CHECKPOINT   PREPARE      SELECT       VACUUM
COMMENT      DROP         INSERT       REINDEX      SET
test(>
ABORT        COMMIT       END          LISTEN       RELEASE      SHOW
ALTER        COPY         EXECUTE      LOAD         RESET        START
ANALYZE      CREATE       EXPLAIN      LOCK         REVOKE       TRUNCATE
BEGIN        DEALLOCATE   FETCH        MOVE         ROLLBACK     UNLISTEN
CLOSE        DECLARE      GRANT        NOTIFY       SAVEPOINT    UPDATE
CLUSTER      DELETE FROM  CHECKPOINT   PREPARE      SELECT       VACUUM
COMMENT      DROP         INSERT       REINDEX      SET
test(>
ABORT        COMMIT       END          LISTEN       RELEASE      SHOW
ALTER        COPY         EXECUTE      LOAD         RESET        START
ANALYZE      CREATE       EXPLAIN      LOCK         REVOKE       TRUNCATE
BEGIN        DEALLOCATE   FETCH        MOVE         ROLLBACK     UNLISTEN
CLOSE        DECLARE      GRANT        NOTIFY       SAVEPOINT    UPDATE
CLUSTER      DELETE FROM  CHECKPOINT   PREPARE      SELECT       VACUUM
COMMENT      DROP         INSERT       REINDEX      SET
test(>
ABORT        COMMIT       END          LISTEN       RELEASE      SHOW
ALTER        COPY         EXECUTE      LOAD         RESET        START
ANALYZE      CREATE       EXPLAIN      LOCK         REVOKE       TRUNCATE
BEGIN        DEALLOCATE   FETCH        MOVE         ROLLBACK     UNLISTEN
CLOSE        DECLARE      GRANT        NOTIFY       SAVEPOINT    UPDATE
CLUSTER      DELETE FROM  CHECKPOINT   PREPARE      SELECT       VACUUM
COMMENT      DROP         INSERT       REINDEX      SET
test(>
ABORT        COMMIT       END          LISTEN       RELEASE      SHOW
ALTER        COPY         EXECUTE      LOAD         RESET        START
ANALYZE      CREATE       EXPLAIN      LOCK         REVOKE       TRUNCATE
BEGIN        DEALLOCATE   FETCH        MOVE         ROLLBACK     UNLISTEN
CLOSE        DECLARE      GRANT        NOTIFY       SAVEPOINT    UPDATE
CLUSTER      DELETE FROM  CHECKPOINT   PREPARE      SELECT       VACUUM
COMMENT      DROP         INSERT       REINDEX      SET
test(> CREATE TABLE
test=>

                 reply	other threads:[~2006-04-22 17:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wtdhikjn.fsf@gmail.com \
    --to=jiri.pejchal@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).