From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JuanLeon Lahoz Newsgroups: gmane.emacs.bugs Subject: bug#19452: 24.4; sql-connect fails in first invocation: "Attempt to set a constant symbol: nil" Date: Sat, 27 Dec 2014 07:45:21 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc81923acec6050b2cfc61 X-Trace: ger.gmane.org 1419662775 25892 80.91.229.3 (27 Dec 2014 06:46:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Dec 2014 06:46:15 +0000 (UTC) To: 19452@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 27 07:46:09 2014 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 1Y4l8b-0005DQ-AK for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Dec 2014 07:46:09 +0100 Original-Received: from localhost ([::1]:55184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4l8a-0006Xs-9O for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Dec 2014 01:46:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4l8V-0006Xl-K6 for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 01:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4l8U-0001W1-DT for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 01:46:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4l8U-0001Vx-AC for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 01:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y4l8U-0006jE-2q for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 01:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: JuanLeon Lahoz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Dec 2014 06:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141966273125820 (code B ref -1); Sat, 27 Dec 2014 06:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Dec 2014 06:45:31 +0000 Original-Received: from localhost ([127.0.0.1]:58562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4l7y-0006iL-8T for submit@debbugs.gnu.org; Sat, 27 Dec 2014 01:45:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55391) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4l7v-0006iD-DB for submit@debbugs.gnu.org; Sat, 27 Dec 2014 01:45:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4l7t-0001RI-E4 for submit@debbugs.gnu.org; Sat, 27 Dec 2014 01:45:26 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4l7t-0001RE-4T for submit@debbugs.gnu.org; Sat, 27 Dec 2014 01:45:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4l7r-0006WT-TT for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 01:45:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4l7q-0001Qo-MF for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 01:45:23 -0500 Original-Received: from mail-qa0-x235.google.com ([2607:f8b0:400d:c00::235]:51640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4l7q-0001Qi-GD for bug-gnu-emacs@gnu.org; Sat, 27 Dec 2014 01:45:22 -0500 Original-Received: by mail-qa0-f53.google.com with SMTP id j7so7535925qaq.26 for ; Fri, 26 Dec 2014 22:45:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bYMxclhkggOvFuKo23SZNJSszSe4ZK4yS2jZOC/vdUY=; b=OB3WABH+f7TJisbpDKZ1z6wRpZLwt7CadYBksnOe8G0+h7yNR88ipO39R85FGDsr/J fdvGJ8faj6+6oVJ32gpxDcd/TMzjwSpcnzcsxjoMqqNXKqT8NDvPbD/B/41hlN4ndN+k MteKz5Pb2aoJIvxehWnJW/6E+DXMV9cQl26OhSdIPnTd9fXgaDzTXk06KpApIg14oyn/ XLfMCKXdo47rsp6ZeBwlsbLc5Ujr+vM1vUWF6NtgKo72ZYrHMVmEsWf4UPE2e7+ncO2z x/QlokWXc7mkYAhuaCP2hoBmypI3W9xv2V1V1FsYrzDF09LVVUL6Sj1qB0CxUWytcVzO eWWA== X-Received: by 10.224.26.4 with SMTP id b4mr9905966qac.26.1419662721730; Fri, 26 Dec 2014 22:45:21 -0800 (PST) Original-Received: by 10.140.18.171 with HTTP; Fri, 26 Dec 2014 22:45:21 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:97754 Archived-At: --047d7bdc81923acec6050b2cfc61 Content-Type: text/plain; charset=UTF-8 First time in an emacs session I call interactively to sql-connect, after I am prompted with the "Connection: " to use, emacs fails to process the request with: eval: Attempt to set a constant symbol: nil Subsequent invocations of the comman works fine I can reproduce with emacs -Q, evalling this: (setq sql-connection-alist '(("foo" (sql-product 'mysql) (sql-database "foo") (sql-server "localhost") (sql-user "foo") (sql-password "")))) And doing M-x sql-connect, then typing "foo" at the prompt. I tried to use foo, instead of "foo" in the variable definition. It is the same. If this is a bug, I would be happy to test a patch. Thanks juanleon In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2) of 2014-12-26 on malaz Windowing system distributor `The X.Org Foundation', version 11.0.11406000 System Description: Ubuntu 12.04.5 LTS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: SQLi[MySQL] Minor modes in effect: popwin-mode: t yas-global-mode: t yas-minor-mode: t global-auto-complete-mode: t shell-dirtrack-mode: t projectile-global-mode: t projectile-mode: t back-button-mode: t flx-ido-mode: t ido-everywhere: t global-yascroll-bar-mode: t yascroll-bar-mode: t winner-mode: t show-paren-mode: t auto-image-file-mode: t recentf-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 temp-buffer-resize-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t --047d7bdc81923acec6050b2cfc61 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
First time in an emacs session I call interactively to sql= -connect,
after I am prompted with the "Connection: " to use, = emacs fails to
process the request with:

=C2=A0=C2=A0=C2=A0 eval:= Attempt to set a constant symbol: nil

Subsequent invocations of the= comman works fine

I can reproduce with emacs -Q, evalling this:
=
=C2=A0=C2=A0=C2=A0 (setq sql-connection-alist
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '(("foo"
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (sql-= product=C2=A0 'mysql)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (sql-database "foo")
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (s= ql-server=C2=A0=C2=A0 "localhost")
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (sql-user=C2=A0=C2=A0= =C2=A0=C2=A0 "foo")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (sql-password ""))))

= And doing M-x sql-connect, then typing "foo" at the prompt.
I tried to use foo, instead of "foo" in the variable definition= .=C2=A0 It is
the same.

If this is a bug, I would be happy to tes= t a patch.

Thanks
juanleon


In GNU Emacs 24.4.1 (x86_64= -unknown-linux-gnu, GTK+ Version 3.4.2)
=C2=A0of 2014-12-26 on malaz
= Windowing system distributor `The X.Org Foundation', version 11.0.11406= 000
System Description:=C2=A0=C2=A0=C2=A0 Ubuntu 12.04.5 LTS

Impo= rtant settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-codi= ng-system: utf-8-unix

Major mode: SQLi[MySQL]

Minor modes in = effect:
=C2=A0 popwin-mode: t
=C2=A0 yas-global-mode: t
=C2=A0 yas= -minor-mode: t
=C2=A0 global-auto-complete-mode: t
=C2=A0 shell-dirtr= ack-mode: t
=C2=A0 projectile-global-mode: t
=C2=A0 projectile-mode: = t
=C2=A0 back-button-mode: t
=C2=A0 flx-ido-mode: t
=C2=A0 ido-eve= rywhere: t
=C2=A0 global-yascroll-bar-mode: t
=C2=A0 yascroll-bar-mod= e: t
=C2=A0 winner-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 auto-i= mage-file-mode: t
=C2=A0 recentf-mode: t
=C2=A0 tooltip-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 file= -name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock= -mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode:= t
=C2=A0 auto-compression-mode: t
=C2=A0 temp-buffer-resize-mode: t<= br>=C2=A0 size-indication-mode: t
=C2=A0 column-number-mode: t
=C2=A0= line-number-mode: t

--047d7bdc81923acec6050b2cfc61--