From: Michael Mauger <mmaug@yahoo.com>
To: Juri Linkov <juri@jurta.org>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: [patch] SQL enhancements
Date: Fri, 16 Apr 2010 16:06:32 -0700 (PDT) [thread overview]
Message-ID: <467448.14252.qm@web62501.mail.re1.yahoo.com> (raw)
In-Reply-To: <87sk6v2kpu.fsf@mail.jurta.org>
> > Since my employer has decided that they no longer need my services,
> > I've got time to dedicate to Emacs!
>
> I haven't looked at your patch yet, but could you answer
> if you fixed annoyances that I noticed in the current SQL mode:
>
> 1. `sql-product' is not marked as a safe local variable.
I have added
(put 'sql-product 'safe-local-variable 'symbolp)
in this patch (sql-user, sql-database, and sql-server have been marked safe as well)
> 2. I see no way to start SQL interactive mode without entering
> its login parameters (user, password, database, server) in the
> minibuffer.
>
> I'd like to create a command that let-binds parameters:
>
> (let ((sql-database "database.sqlite"))
> (sql-sqlite))
>
> but it still asks for the database name (with the correct default value).
> I mean it's right to ask this by default, but there should be a way
> to skip confirmation of already defined parameters.
With this patch you can do the following:
(let ((sql-database "database.sqlite")
(sql-sqlite-login-params nil))
(sql-sqlite))
to set the parameters and avoid the prompting. You can set `sql-sqlite-login-params' to
a list of the parameters you want to be prompted for; the default for sqlite
is '(user password server database).
or
(sql-set-product-feature 'sqlite :sqli-login nil) ; Permanently disable prompting
(let ((sql-database "database.sqlite"))
(sql-sqlite))
[There's actually a bug in my patch in this second case that I have since corrected.]
> 3. And this is not directly related to SQL mode but important:
> A colleague of mine has switched from Emacs to other editors
> because in SQL mode Emacs doesn't have horizontal scroll bars!
>
> Unlike other modes, SQL mode produces the wide output where
> it's necessary to easily scroll tabular data horizontally.
I've encountered the same issue but found that C-x > (scroll-right) and C-x < (scroll-left)
provide a useful way to pan left and right without having to reach for the mouse.
But, point taken.
next prev parent reply other threads:[~2010-04-16 23:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 4:14 [patch] SQL enhancements Michael Mauger
2010-04-16 20:42 ` Juri Linkov
2010-04-16 21:32 ` Horizontal scroll bars (was: [patch] SQL enhancements) Juri Linkov
2010-04-16 23:06 ` Michael Mauger [this message]
2010-04-17 0:06 ` [patch] SQL enhancements Juri Linkov
2010-04-18 23:57 ` Juri Linkov
2010-04-21 3:29 ` Michael Mauger
2010-04-21 8:49 ` Juri Linkov
2010-04-22 4:25 ` Michael Mauger
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=467448.14252.qm@web62501.mail.re1.yahoo.com \
--to=mmaug@yahoo.com \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.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.