all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tabs and ends of lines in sql mode
@ 2006-04-22 17:31 Jiri Pejchal
  0 siblings, 0 replies; 5+ messages in thread
From: Jiri Pejchal @ 2006-04-22 17:31 UTC (permalink / 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=>

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Tabs and ends of lines in sql mode
@ 2006-02-08  0:23 jiri.pejchal
  2006-02-08 12:24 ` Thien-Thi Nguyen
  2006-02-09 13:18 ` Tim X
  0 siblings, 2 replies; 5+ messages in thread
From: jiri.pejchal @ 2006-02-08  0:23 UTC (permalink / raw)


I'm using the latest sql mode with emacs from cvs.

The function sql-send-parafraph sends current paragraph
to the SQL process. However it sends the paragraph with
tabs and ends of lines. In 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 for:
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.

Is there a way for sql-send-paragraph to not sends the tabs and ends
of lines?

--
Jiri Pejchal

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-22 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-22 17:31 Tabs and ends of lines in sql mode Jiri Pejchal
  -- strict thread matches above, loose matches on Subject: below --
2006-02-08  0:23 jiri.pejchal
2006-02-08 12:24 ` Thien-Thi Nguyen
2006-02-09 13:18 ` Tim X
2006-02-10  0:21   ` Thien-Thi Nguyen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.