all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roger Mason <rmason@esd.mun.ca>
Subject: sql-mode and LaTeX
Date: Wed, 25 Feb 2004 10:58:48 -0330	[thread overview]
Message-ID: <y6565dvs067.fsf@minnie.esd.mun.ca> (raw)

Hello,

I have written some lisp functions that allow the output from an SQL buffer
to be redirected to another buffer.  It is designed to work with Alex
Schroeder's sql-mode and Postgres.  The original intent was to be able to formulate
queries in, say, a LaTeX-mode buffer and have the results returned
there for subsequent formatting with latex.  If it ever works reliably
I intend to make it available to the Emacs community.

The problem I am having is that when the output appears in the latex
(AucTeX) buffer the column headings are lost.  For example, this query,
executed in an sql-mode buffer and returning the output to that buffer
produces this output:

--  This outputs the preamble
select'\\documentclass{article}
\\title{GAC Budget 2004}
\\author{Roger Mason \\\\ (with help from Karen Johnston \\& Karen Dawe)}
\\usepackage{float}
\\begin{document}
\\maketitle\n';

?column?                                                                                                                                                             
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
\documentclass{article}
\title{GAC Budget 2004}
\author{Roger Mason \\ (with help from Karen Johnston \& Karen Dawe)}
\usepackage{float}
\begin{document}
\maketitle

(1 row)

Apart from the ^M (which is easy to clean up), this is the normal, expected output.

The same query, with output redirected to a LaTeX buffer produces
this:

...
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
\documentclass{article}
\title{GAC Budget 2004}
\author{Roger Mason \\ (with help from Karen Johnston \& Karen Dawe)}
\usepackage{float}
\begin{document}
\maketitle

(1 row)

'C-x =' on the ... and ^M characters yields: RET.  Only in the LaTeX
buffer does this character suppress the rest of the line.

I have looked at the coding systems for the LaTeX and sql-mode
buffers with describe-current-coding-system: they are identical.

If anyone has any idea how to fix this problem I'd be most grateful.

Thanks,

Roger Mason

             reply	other threads:[~2004-02-25 14:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25 14:28 Roger Mason [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-02-25 17:33 sql-mode and LaTeX Joe Corneli
2004-02-25 20:19 ` Roger Mason
     [not found] <mailman.468.1077720063.340.help-gnu-emacs@gnu.org>
2004-02-26  7:04 ` Kai Grossjohann
2004-02-26 11:53   ` Roger Mason
     [not found]   ` <mailman.563.1077796563.340.help-gnu-emacs@gnu.org>
2004-02-27 12:28     ` Kai Grossjohann
2004-02-27 14:08       ` Roger Mason

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

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

  git send-email \
    --in-reply-to=y6565dvs067.fsf@minnie.esd.mun.ca \
    --to=rmason@esd.mun.ca \
    /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 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.