From unknown Sun Jun 22 11:32:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#13715 <13715@debbugs.gnu.org> To: bug#13715 <13715@debbugs.gnu.org> Subject: Status: 24.2; Invalid function when calling sql-connect Reply-To: bug#13715 <13715@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:32:13 +0000 retitle 13715 24.2; Invalid function when calling sql-connect reassign 13715 emacs submitter 13715 roman.scherer@nugg.ad severity 13715 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 14 14:01:32 2013 Received: (at submit) by debbugs.gnu.org; 14 Feb 2013 19:01:32 +0000 Received: from localhost ([127.0.0.1]:56555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U643n-0000jM-BM for submit@debbugs.gnu.org; Thu, 14 Feb 2013 14:01:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41633) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U63oG-0000Ay-Ma for submit@debbugs.gnu.org; Thu, 14 Feb 2013 13:45:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U63nV-0008K1-Ra for submit@debbugs.gnu.org; Thu, 14 Feb 2013 13:44:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U63L0-0004dy-92 for submit@debbugs.gnu.org; Thu, 14 Feb 2013 13:15:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U63DN-0000cP-DG for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 13:07:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U60hw-000799-Ua for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 10:27:34 -0500 Received: from [212.45.111.145] (port=33225 helo=gondwana.office.nugg.ad) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U60hw-00078p-Kn for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 10:26:44 -0500 Received: by gondwana.office.nugg.ad (Postfix, from userid 1000) id C72279E1DBE; Thu, 14 Feb 2013 15:51:27 +0100 (CET) From: roman.scherer@nugg.ad To: bug-gnu-emacs@gnu.org Subject: 24.2; Invalid function when calling sql-connect Date: Thu, 14 Feb 2013 15:51:27 +0100 Message-ID: <87wqub6j9s.fsf@gondwana.office.nugg.ad> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 14 Feb 2013 14:01:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) I defined some connections in sql-connection-alist like this: (require 'sql) (setq sql-connection-alist '((db1 (sql-product 'mysql) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db1") (sql-port 3306)) (db2 (sql-product 'mysql) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db2")))) 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. In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2013-01-20 on eric Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ 8 ~ C-x C-e ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ 8 ~ C-x C-e RET RET ESC x s q TAB c o TAB n TAB RET d b 1 RET ESC x ESC x ESC ESC ESC ESC x e m a TAB TAB ESC DEL r e p o r t TAB RET Recent messages: ("emacs" "sql.el") For information about GNU Emacs and the GNU system, type C-h C-a. sql ((db1 (sql-product (quote mysql)) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db1") (sql-port 3306)) (db2 (sql-product (quote mysql)) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db2"))) Making completion list... test-completion: Invalid function: (db1 db2) completing-read-default: Command attempted to use minibuffer while in minibuffer [2 times] Quit Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message idna format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode view sql easymenu thingatpt comint regexp-opt ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 14 18:51:13 2013 Received: (at 13715) by debbugs.gnu.org; 14 Feb 2013 23:51:13 +0000 Received: from localhost ([127.0.0.1]:56729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U68a8-0002nO-Ox for submit@debbugs.gnu.org; Thu, 14 Feb 2013 18:51:13 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:33549) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U68a6-0002nF-W2 for 13715@debbugs.gnu.org; Thu, 14 Feb 2013 18:51:11 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U68ZS-0003G3-CK; Thu, 14 Feb 2013 18:50:30 -0500 From: Glenn Morris To: roman.scherer@nugg.ad Subject: Re: bug#13715: 24.2; Invalid function when calling sql-connect References: <87wqub6j9s.fsf@gondwana.office.nugg.ad> X-Spook: bemd benelux smuggle anarchy SDI Soviet Serbian CNCIS X-Ran: f.-0w-oo/>S&QFO;+S71"O#0UZ{2/Cns'2,M_~ (roman scherer's message of "Thu, 14 Feb 2013 15:51:27 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 13715 Cc: 13715@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) 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))) From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 14 20:51:13 2013 Received: (at 13715) by debbugs.gnu.org; 15 Feb 2013 01:51:14 +0000 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 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 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 From: Glenn Morris To: roman.scherer@nugg.ad Subject: Re: bug#13715: 24.2; Invalid function when calling sql-connect References: <87wqub6j9s.fsf@gondwana.office.nugg.ad> 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-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 14 Feb 2013 20:50:28 -0500 In-Reply-To: (Glenn Morris's message of "Thu, 14 Feb 2013 18:50:30 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 13715 Cc: mmaug@yahoo.com, 13715@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 14 20:55:14 2013 Received: (at 13715) by debbugs.gnu.org; 15 Feb 2013 01:55:14 +0000 Received: from localhost ([127.0.0.1]:56775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6AWA-0006Ux-6G for submit@debbugs.gnu.org; Thu, 14 Feb 2013 20:55:14 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:36481) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6AW9-0006Ur-9C for 13715@debbugs.gnu.org; Thu, 14 Feb 2013 20:55:13 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U6AVU-0000Nm-M2; Thu, 14 Feb 2013 20:54:32 -0500 From: Glenn Morris To: roman.scherer@nugg.ad Subject: Re: bug#13715: 24.2; Invalid function when calling sql-connect References: <87wqub6j9s.fsf@gondwana.office.nugg.ad> X-Spook: Dick Cheney Vickie Weaver enigma Rand Corporation Hamas X-Ran: P@W{]Ob\sBcctTmrCxMXxoM>Q.*d X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 14 Feb 2013 20:54:32 -0500 In-Reply-To: (Glenn Morris's message of "Thu, 14 Feb 2013 20:50:28 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 13715 Cc: mmaug@yahoo.com, 13715@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Glenn Morris wrote: > sql-connection-alist says "CONNECTION is a symbol identifying the connection" Yet the associated custom :type is a string, so I guess this is just a doc bug and that you are supposed to use a string rather than a symbol. From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 15 12:10:46 2013 Received: (at 13715) by debbugs.gnu.org; 15 Feb 2013 17:10:46 +0000 Received: from localhost ([127.0.0.1]:57851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Oo8-0004pe-Sg for submit@debbugs.gnu.org; Fri, 15 Feb 2013 12:10:45 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:55163) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Oo6-0004pX-8b for 13715@debbugs.gnu.org; Fri, 15 Feb 2013 12:10:43 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U6OnN-0003DL-HQ; Fri, 15 Feb 2013 12:09:57 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20766.27621.472832.970606@gnu.org> Date: Fri, 15 Feb 2013 12:09:57 -0500 From: Glenn Morris to: 13715@debbugs.gnu.org Subject: Re: bug#13715: 24.2; Invalid function when calling sql-connect In-Reply-To: References: <87wqub6j9s.fsf@gondwana.office.nugg.ad> X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 13715 Cc: Roman Scherer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Please keep debbugs cc'd. Resending your comments so they are more visible. Date: Fri, 15 Feb 2013 10:11:04 +0100 From: Roman Scherer thanks for your help. If I remember correctly it used to work with symbols. I also tried this with strings like this: (require 'sql) (setq sql-connection-alist '(("db1" (sql-product 'mysql) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db1") (sql-port 3306)) ("db2" (sql-product 'mysql) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db2")))) This seems to work. However only after the second time I call sql-connect. The first time I get the error "eval: Attempt to set a constant symbol: nil". Calling it the second time works. I think it breaks in sql-connect near this line: ;; Start the SQLi session with revised list of login parameters (eval `(let ((,param-var ',rem-params)) (sql-product-interactive sql-product new-name)))) Roman From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 10 21:55:41 2013 Received: (at 13715) by debbugs.gnu.org; 11 Mar 2013 01:55:41 +0000 Received: from localhost ([127.0.0.1]:44851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UErxl-0005ou-7q for submit@debbugs.gnu.org; Sun, 10 Mar 2013 21:55:41 -0400 Received: from nm6.bullet.mail.bf1.yahoo.com ([98.139.212.165]:29823) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1UErxj-0005oh-A5 for 13715@debbugs.gnu.org; Sun, 10 Mar 2013 21:55:40 -0400 Received: from [98.139.212.145] by nm6.bullet.mail.bf1.yahoo.com with NNFMP; 11 Mar 2013 01:54:42 -0000 Received: from [98.139.212.216] by tm2.bullet.mail.bf1.yahoo.com with NNFMP; 11 Mar 2013 01:54:42 -0000 Received: from [127.0.0.1] by omp1025.mail.bf1.yahoo.com with NNFMP; 11 Mar 2013 01:54:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 307788.64280.bm@omp1025.mail.bf1.yahoo.com Received: (qmail 70451 invoked by uid 60001); 11 Mar 2013 01:54:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1362966882; bh=9AgJe/vTwzsNMpaSpq4oCOfWTY7mjqTTC2eCB49nCA8=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZdqwWwtHhz59swFJInQADzqFPOgPYyPGioMqgo69dHNGRPZvsgOHW3ZgCkjj9GD/KY86hVctj0WAGaU0paTOYKezebYpwkV5nBeGKBDxgzD721HrU+esnYplczCXPiIfdX0/BaNKuIBu7BEcxSt5RLkh4t0qJl4whqVRWDMNtj8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4/JxyC/hjaMkng8BI7HsTCUyOteE4CevTXXVqrkZQ+G984A6H6k5XP93cu7+yM8KkAmcdM/fv9KagRVdg4VaicDtsexAwd87K/ojqu6w0lYHmuP5Tkx5BBJst67+tUh0GVciFFcgHBVOJCrnRBV3ZH0S19gE94EkTmg3DW+IiOc=; X-YMail-OSG: 4k6jOtkVM1kyiY57wKBG6M9G2_lnCg1DCPZa7TziXeO2xnw IHGOSoP..yGx2_3w5.rrHuAiL3V8rfw3a9GkfLYeB5RSb4E5ypxKuiTFfQ5. BS_VYVqqzQXqyUicTvDyL8PBb_6rUrMhOiYCyoxfTPFJwAL4YFnivKJdhH9_ zEKQfais_GCaiTaC7tMwETiNNMphqAhDrYAe2IlhY713poet32ymFFGOXFrO Z7bnD_I0wypyeCejAYv3iMRFxCXuR8E_2os66PtqBWyzwjr_vs7JuzeWY3ze lmhW5S0dg_0hWQqQV2CCAym1s6zqD0RKwwyvSrmnTJK2HDpB1n_mSqJat7Lh pBWqfjxt6JawBrYzS1PcdYHAWO4qaYUcAsWMmQX3XF9Ruf0vNHQRt_14Arg0 QlxCwVzpwSs.D.6z3zWdjMlq4E9Vyi87xaQzAaaK9d7iJXhxhbYs9X5MYCNT Tf0ZyIBBx5LzjSyY4s_dVi4sIDDfNBB2BP5QY_tJVvND.I9cSV5zB3G0ZH_w 3QP9HrItFwQ-- Received: from [98.216.52.54] by web160906.mail.bf1.yahoo.com via HTTP; Sun, 10 Mar 2013 18:54:42 PDT X-Rocket-MIMEInfo: 001.001, VGhpcyB3YXMgYSBkb2N1bWVudGF0aW9uIGVycm9yLCB2ZXJzaW9uIDMuMiBjb3JyZWN0cyB0aGlzLCBhbmQgdGhlICJXcm9uZyBudW1iZXIgb2YgYXJndW1lbnRzIiBlcnJvci4KClJlcGxhY2VkICJzeW1ib2wiIHdpdGggImNhc2UtaW5zZW5zaXRpdmUgc3RyaW5nIgoKVGhhbmtzIGZvciB0aGUgcmVwb3J0LgoKLS1NaWNoYWVsCgoKLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQo.IEZyb206IEdsZW5uIE1vcnJpcyA8cmdtQGdudS5vcmc.Cj4gVG86IHJvbWFuLnNjaGVyZXJAbnVnZy5hZAo.IENjOiAxMzcBMAEBAQE- X-Mailer: YahooMailWebService/0.8.135.514 References: <87wqub6j9s.fsf@gondwana.office.nugg.ad> Message-ID: <1362966882.70002.YahooMailNeo@web160906.mail.bf1.yahoo.com> Date: Sun, 10 Mar 2013 18:54:42 -0700 (PDT) From: Michael Mauger Subject: Re: bug#13715: 24.2; Invalid function when calling sql-connect To: Glenn Morris , "roman.scherer@nugg.ad" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 13715 Cc: "13715@debbugs.gnu.org" <13715@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Michael Mauger List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) This was a documentation error, version 3.2 corrects this, and the "Wrong n= umber of arguments" error.=0A=0AReplaced "symbol" with "case-insensitive st= ring"=0A=0AThanks for the report.=0A=0A--Michael=0A=0A=0A----- Original Mes= sage -----=0A> From: Glenn Morris =0A> To: roman.scherer@nugg.= ad=0A> Cc: 13715@debbugs.gnu.org; mmaug@yahoo.com=0A> Sent: Thursday, Febru= ary 14, 2013 8:50 PM=0A> Subject: Re: bug#13715: 24.2; Invalid function whe= n calling sql-connect=0A> =0A> Re: http://debbugs.gnu.org/13715=0A> =0A> Gl= enn Morris wrote:=0A> =0A>> roman.scherer@nugg.ad wrote:=0A>> =0A>>> When= calling sql-connect Emacs errors with the message "Invalid=0A>>> function= : (db1 db2)" when hitting tab or when typing the =0A> connection name=0A>>>= and pressing enter.=0A>> =0A>> Thanks for the report. This should fix it= :=0A>> =0A>> *** lisp/progmodes/sql.el=A0=A0=A0 2013-01-01 09:11:05 +0000= =0A>> --- lisp/progmodes/sql.el=A0=A0=A0 2013-02-14 23:46:50 +0000=0A>> *= **************=0A>> *** 3919,3925 ****=0A>> =A0 =A0 "Read a connection na= me."=0A>> =A0 =A0 (let ((completion-ignore-case t))=0A>> =A0 =A0 =A0 (com= pleting-read prompt=0A>> !=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (map= car (lambda (c) (car c))=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 sql-connection-alist)=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 nil t initial 'sql-connection-history default)))=0A>> = =A0 =0A>> --- 3919,3925 ----=0A>> =A0 =A0 "Read a connection name."=0A>> = =A0 =A0 (let ((completion-ignore-case t))=0A>> =A0 =A0 =A0 (completing-re= ad prompt=0A>> !=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (mapcar (lambd= a (c) (symbol-name (car c)))=0A>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 sql-connection-alist)=0A>> =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 nil t initial 'sql-connection-history default)))=0A= > =0A> =0A> However, there seems to be an inconsistency, in that:=0A> =0A> = sql-connection-alist says "CONNECTION is a symbol identifying the =0A> conn= ection"=0A> =0A> whereas sql-connect (above) assumes it to be a string.=0A>= AFAICS, sql-save-connection also saves strings rather than symbols for NAM= E.=0A> =0A> So maybe it is a doc bug?=0A> =0A> =0A> On a semi-related note:= =0A> =0A> emacs -Q -l sql=0A> M-x sql-connect=0A> =A0 -> "Wrong number of a= rguments" error=0A> From debbugs-submit-bounces@debbugs.gnu.org Fri May 17 20:37:12 2013 Received: (at control) by debbugs.gnu.org; 18 May 2013 00:37:12 +0000 Received: from localhost ([127.0.0.1]:49684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdV96-0007Kj-77 for submit@debbugs.gnu.org; Fri, 17 May 2013 20:37:12 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:56130 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdV94-0007Kc-TK for control@debbugs.gnu.org; Fri, 17 May 2013 20:37:11 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UdV8m-0004wh-48 for control@debbugs.gnu.org; Fri, 17 May 2013 20:36:52 -0400 Date: Fri, 17 May 2013 20:36:52 -0400 Message-Id: Subject: control message for bug 13715 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.6 (-----) close 13715 24.4 From unknown Sun Jun 22 11:32:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Jun 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 02:57:06 2013 Received: (at control) by debbugs.gnu.org; 16 Sep 2013 06:57:06 +0000 Received: from localhost ([127.0.0.1]:40001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLSk5-0003j3-H2 for submit@debbugs.gnu.org; Mon, 16 Sep 2013 02:57:06 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:41463 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VLSk3-0003it-FL for control@debbugs.gnu.org; Mon, 16 Sep 2013 02:57:03 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VLSk2-00040K-Pw for control@debbugs.gnu.org; Mon, 16 Sep 2013 02:57:02 -0400 Date: Mon, 16 Sep 2013 02:57:02 -0400 Message-Id: Subject: control message for bug 15391 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) unarchive 13715 forcemerge 13715 15391 From unknown Sun Jun 22 11:32:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 Oct 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator