From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13715: 24.2; Invalid function when calling sql-connect Date: Thu, 14 Feb 2013 20:50:28 -0500 Message-ID: References: <87wqub6j9s.fsf@gondwana.office.nugg.ad> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1360893094 20266 80.91.229.3 (15 Feb 2013 01:51:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 01:51:34 +0000 (UTC) Cc: mmaug@yahoo.com, 13715@debbugs.gnu.org To: roman.scherer@nugg.ad Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 02:51:55 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6ASx-0001i7-KI for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 02:51:55 +0100 Original-Received: from localhost ([::1]:40198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6ASe-0007Ng-4W for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Feb 2013 20:51:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6ASV-0007Mg-WB for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 20:51:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6ASR-00019Q-06 for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 20:51:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6ASQ-00019L-Sn for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 20:51:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6AT4-0006QC-Ef for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 20:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Feb 2013 01:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13715 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13715-submit@debbugs.gnu.org id=B13715.136089307424620 (code B ref 13715); Fri, 15 Feb 2013 01:52:02 +0000 Original-Received: (at 13715) by debbugs.gnu.org; 15 Feb 2013 01:51:14 +0000 Original-Received: from localhost ([127.0.0.1]:56769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6ASH-0006P3-L8 for submit@debbugs.gnu.org; Thu, 14 Feb 2013 20:51:13 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:36379) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6ASE-0006Ov-Jm for 13715@debbugs.gnu.org; Thu, 14 Feb 2013 20:51:11 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U6ARY-0008Uk-Nq; Thu, 14 Feb 2013 20:50:29 -0500 X-Spook: argus INSCOM Crowell CIDA espionage fundamentalist X-Ran: q+/s,2$y>6QwCc=q7P8fjQi-z8Up[qo)`M}>-W;}'aGT){+"^dcHqgcB|GWHCYI9+f"_/~ X-Hue: blue X-Attribution: GM In-Reply-To: (Glenn Morris's message of "Thu, 14 Feb 2013 18:50:30 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71292 Archived-At: Re: http://debbugs.gnu.org/13715 Glenn Morris wrote: > roman.scherer@nugg.ad wrote: > >> When calling sql-connect Emacs errors with the message "Invalid >> function: (db1 db2)" when hitting tab or when typing the connection name >> and pressing enter. > > Thanks for the report. This should fix it: > > *** lisp/progmodes/sql.el 2013-01-01 09:11:05 +0000 > --- lisp/progmodes/sql.el 2013-02-14 23:46:50 +0000 > *************** > *** 3919,3925 **** > "Read a connection name." > (let ((completion-ignore-case t)) > (completing-read prompt > ! (mapcar (lambda (c) (car c)) > sql-connection-alist) > nil t initial 'sql-connection-history default))) > > --- 3919,3925 ---- > "Read a connection name." > (let ((completion-ignore-case t)) > (completing-read prompt > ! (mapcar (lambda (c) (symbol-name (car c))) > sql-connection-alist) > nil t initial 'sql-connection-history default))) However, there seems to be an inconsistency, in that: sql-connection-alist says "CONNECTION is a symbol identifying the connection" whereas sql-connect (above) assumes it to be a string. AFAICS, sql-save-connection also saves strings rather than symbols for NAME. So maybe it is a doc bug? On a semi-related note: emacs -Q -l sql M-x sql-connect -> "Wrong number of arguments" error