all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roger Mason <rmason@esd.mun.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: sql-mode and LaTeX
Date: Wed, 25 Feb 2004 16:49:22 -0330	[thread overview]
Message-ID: <y65wu6ayks5.fsf@minnie.esd.mun.ca> (raw)
In-Reply-To: <E1Aw2ut-0002b1-00@linux183.ma.utexas.edu> (Joe Corneli's message of "Wed, 25 Feb 2004 11:33:51 -0600")

Joe Corneli <jcorneli@math.utexas.edu> writes:

> What query were you talking about?  I think you omitted that.  I
> don't know sql, but your code does sounds interesting.  However it
> is going to be too hard for me to help debug when I can't see it.

This is the query (it was embeded in my original post):

--  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';

Not a very interesting query perhaps, but a simple one that
demonstrates the problem.  It just outputs the preamble to a LaTeX
document.  I don't think there is anything wrong with the SQL
statement itself.  The issue is that RET is prepended to the first
line of output, which contains table headings from the database.  In
an sql-mode buffer the RET is displayed as '^M' and the (first line
of) output from the database follows.  This is easy to clean up to
leave behind only the SQL output.  If the output is instead redirected
to a buffer that is in LaTeX mode the RET is displayed as '...' and
the output from the SQL query is lost - the line ends after '...'.

I would like to be able to filter out the prepended RET so it never
reaches the LaTeX buffer or, failing that, have it displayed in a form
that preserves the SQL output and can be removed manually.

I hope my question clearer now.

Thanks for your interest.

Roger

  reply	other threads:[~2004-02-25 20:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25 17:33 sql-mode and LaTeX Joe Corneli
2004-02-25 20:19 ` Roger Mason [this message]
     [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
  -- strict thread matches above, loose matches on Subject: below --
2004-02-25 14:28 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=y65wu6ayks5.fsf@minnie.esd.mun.ca \
    --to=rmason@esd.mun.ca \
    --cc=help-gnu-emacs@gnu.org \
    /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.