From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Van Dusen Newsgroups: gmane.emacs.help Subject: Re: sql-completion.el messing with sql-mysql? Date: Thu, 20 Feb 2014 05:06:30 -0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392894412 17734 80.91.229.3 (20 Feb 2014 11:06:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 11:06:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Frank Stutzman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 20 12:07:00 2014 Return-path: Envelope-to: geh-help-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 1WGRT0-00045P-G4 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 12:06:58 +0100 Original-Received: from localhost ([::1]:37444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRSz-0002iB-UV for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 06:06:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRSi-0002i4-Dg for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 06:06:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGRSb-00019i-Ck for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 06:06:40 -0500 Original-Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:37302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGRSb-00019P-7S for help-gnu-emacs@gnu.org; Thu, 20 Feb 2014 06:06:33 -0500 Original-Received: by mail-ob0-f177.google.com with SMTP id wp18so1849861obc.8 for ; Thu, 20 Feb 2014 03:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=STBLy/qtYmGEikLB/bF8YKJVRQ0+4ML7+Yh8qPymX3E=; b=OpcsQmlnpuUGbTGzyuw/8DZrZCpPKH3L8DeKDNL4ZgTNUfzunQYBvw8A3hv093Wo8u n/PaIMehYPUQ+1q0MFe9iQFFLgbIQ3BxiDIlYRqTvIu72j+EXTTVSE94RelCy/pGwCMy FzSIKjhyVhPkBxWW2R9zl+wx8DzgZaTtfoy+8y434rcOk/xUzpYITmedxcyacHUBug6F 24FC7sgRmVzTcYMvQRH8TOLArEyZqkUpP7EaTiXwbrXyaa1Qqml451H75bmvJeMj5voF bJQeEksAa5sFjPb/ZtYzMDZlwkG5TEa3TAoi0hWozJN7sPts2gEMOcbATydzoqLTyrmy zqTQ== X-Received: by 10.60.124.137 with SMTP id mi9mr862507oeb.11.1392894392149; Thu, 20 Feb 2014 03:06:32 -0800 (PST) Original-Received: from [192.168.0.33] (cpe-76-184-166-92.tx.res.rr.com. [76.184.166.92]) by mx.google.com with ESMTPSA id ru3sm10543379obc.2.2014.02.20.03.06.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 03:06:31 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1510) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96133 Archived-At: Frank, On Feb 19, 2014, at 5:47 PM, Frank Stutzman = wrote: > Has anyone else had problems with sql-completion.el messing with = sql-mysql=20 > mode am I doing something dumb? >=20 > I'm using GNU Emacs 24.3.1. If I have no init file (--no-init) when I = start > it, I have no problems with going into sql-mode and opening up a SQLi=20= > connection to my remote database. Works great. >=20 > However, if I install sql-completion.el (version 1.1.1.1) and put: >=20 > (require 'mysql) > (require 'sql-completion) > (setq sql-interactive-mode-hook > (lambda () > (define-key sql-interactive-mode-map "\t" = 'comint-dynamic-complete) > (sql-mysql-completion-init))) >=20 > Into my .emacs file (that bit is exactly what the is sql-completion.el = file > tells you to do), do a 'M-x sql-mysql' and suddenly things start = breaking. =20 > Namely, right after I enter the login information I get an error = saying: >=20 > "if: ERROR 2002 (HY000): Can't connect to local MySQL server through=20= > socket '/var/run/mysqld/mysqld.sock' (13)" >=20 I believe this is because sql-completion.el assumes that MySQL is = running on localhost. See the function mysql-shell-query. > Oddly enough the *SQL* buffer is created and is functioning, and I can = set=20 > 'sql-set-sqli-buffer' to it, but if I try to 'c-c c-r' a snippet of > sql code, I get a 'Wrong type arguement: processp, nil' >=20 >=20 This may be a separate issue since you do have a running process. >=20 > --=20 > Frank Stutzman >=20 >=20 hth, Chris.=