From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Stutzman Newsgroups: gmane.emacs.help Subject: sql-completion.el messing with sql-mysql? Date: Wed, 19 Feb 2014 23:47:24 +0000 (UTC) Organization: Nothing witty to write here Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392855532 28212 80.91.229.3 (20 Feb 2014 00:18:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 00:18:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 20 01:19:01 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 1WGHLx-0001R7-CR for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2014 01:19:01 +0100 Original-Received: from localhost ([::1]:34681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGHLw-00007A-UF for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 19:19:00 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: cat2.kjsl.com Original-X-Trace: news.kjsl.com 1392853644 70154 66.109.111.28 (19 Feb 2014 23:47:24 GMT) Original-X-Complaints-To: usenet@news.kjsl.com Original-NNTP-Posting-Date: Wed, 19 Feb 2014 23:47:24 +0000 (UTC) User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/9.2-RELEASE-p3 (amd64)) Original-Xref: usenet.stanford.edu gnu.emacs.help:203863 X-Mailman-Approved-At: Wed, 19 Feb 2014 19:18:50 -0500 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:96131 Archived-At: Has anyone else had problems with sql-completion.el messing with sql-mysql mode am I doing something dumb? 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 connection to my remote database. Works great. However, if I install sql-completion.el (version 1.1.1.1) and put: (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))) 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. Namely, right after I enter the login information I get an error saying: "if: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13)" Oddly enough the *SQL* buffer is created and is functioning, and I can set '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' I'm pretty new to emacs customization (almost as new as I am to emacs) so maybe I'm missing something, but it sure seems to me something is broken. Just a few more details. My database is on a machine different than the one I'm running emacs on. The shell mysql client has no problems connecting to the remote database. Originally I had a bunch of other code in my .emacs, but I have trimmed it all down to what I show above. If its not obvious, I can cut and paste elisp but I really don't understand it. -- Frank Stutzman