From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [patch] SQL enhancements Date: Sat, 17 Apr 2010 03:06:33 +0300 Organization: JURTA Message-ID: <871vefj62e.fsf@mail.jurta.org> References: <313753.60852.qm@web62504.mail.re1.yahoo.com> <87sk6v2kpu.fsf@mail.jurta.org> <467448.14252.qm@web62501.mail.re1.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271463278 2738 80.91.229.12 (17 Apr 2010 00:14:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2010 00:14:38 +0000 (UTC) Cc: Emacs Devel To: Michael Mauger Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 17 02:14:37 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O2vgC-0005un-Fu for ged-emacs-devel@m.gmane.org; Sat, 17 Apr 2010 02:14:36 +0200 Original-Received: from localhost ([127.0.0.1]:42204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2vgB-0006ys-Tc for ged-emacs-devel@m.gmane.org; Fri, 16 Apr 2010 20:14:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2vdh-0006L3-IB for emacs-devel@gnu.org; Fri, 16 Apr 2010 20:12:01 -0400 Original-Received: from [140.186.70.92] (port=59226 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2vdg-0006KJ-54 for emacs-devel@gnu.org; Fri, 16 Apr 2010 20:12:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2vde-0001G5-5o for emacs-devel@gnu.org; Fri, 16 Apr 2010 20:12:00 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:56081 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2vdd-0001FV-Vu for emacs-devel@gnu.org; Fri, 16 Apr 2010 20:11:58 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.70.170.cable.starman.ee [82.131.70.170]) by mx2.starman.ee (Postfix) with ESMTP id 868133F40AD; Sat, 17 Apr 2010 03:11:53 +0300 (EEST) In-Reply-To: <467448.14252.qm@web62501.mail.re1.yahoo.com> (Michael Mauger's message of "Fri, 16 Apr 2010 16:06:32 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123789 Archived-At: > 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). Thank you! `sql-sqlite-login-params' is exactly what I wanted. I hope this will be documented in the documentation, so users of SQL mode will know how to do that. PS: While looking at `sql-sqlite-login-params' in your patch, I noticed a small typo: the docstring of `sql-sqlite-login-params' mentions Oracle instead of SQLite. -- Juri Linkov http://www.jurta.org/emacs/