From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Devereux Newsgroups: gmane.emacs.bugs Subject: bug#11908: 24.1; "Unable to locate SQL program" when using sql-mysql with tramp and the client does not have the SQL program (but the server does) Date: Fri, 13 Jul 2012 15:45:41 +0100 Message-ID: <81E3E56C-E75C-4F0C-9F81-B08B11EB0611@devrx.org> References: <0C01659A-3017-4D3E-AE26-03DED52A29A7@devrx.org> <87fw8vg2bo.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1280) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1342190801 20521 80.91.229.3 (13 Jul 2012 14:46:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 14:46:41 +0000 (UTC) Cc: 11908@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 16:46:39 2012 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 1Sph8e-0005gn-JT for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jul 2012 16:46:36 +0200 Original-Received: from localhost ([::1]:41163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sph8d-0008EZ-KB for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jul 2012 10:46:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sph8W-0008ET-U1 for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2012 10:46:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sph8S-0005UQ-Rp for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2012 10:46:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sph8S-0005UM-Nn for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2012 10:46:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SphDu-0000DO-8a for bug-gnu-emacs@gnu.org; Fri, 13 Jul 2012 10:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Francis Devereux Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jul 2012 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11908 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11908-submit@debbugs.gnu.org id=B11908.1342191084774 (code B ref 11908); Fri, 13 Jul 2012 14:52:02 +0000 Original-Received: (at 11908) by debbugs.gnu.org; 13 Jul 2012 14:51:24 +0000 Original-Received: from localhost ([127.0.0.1]:39483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SphDI-0000CR-4e for submit@debbugs.gnu.org; Fri, 13 Jul 2012 10:51:24 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:52478) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SphDF-0000CH-Jg for 11908@debbugs.gnu.org; Fri, 13 Jul 2012 10:51:22 -0400 Original-Received: from neptune.brightoffice.local (no-dns-yet-88-98-41-121.zen.net.uk [88.98.41.121]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MNyEJ-1Sx76s3BOt-006y4O; Fri, 13 Jul 2012 16:45:41 +0200 In-Reply-To: <87fw8vg2bo.fsf@gmx.de> X-Mailer: Apple Mail (2.1280) X-Provags-ID: V02:K0:O/DFKFAmAxSOpROIzq78UHwTrl+mHYlpZHafP7HaZW/ ZPV5RSYxGKFlFXb+qSPz4u0+id3pa3GoMrnniD0MBl8T9vXKGT UANg6I6ca3N1OdRLPXFmmsOIn+bwVeR7oumCNHZXPEADoImmde dsGm8qUHGmLHh9eTt0occObvEpVjOJIW7ymtHPbPGKXWE4zyJJ 4o8q9YNrtx58jYBzhEzr2pDtdm4iCs9rZStGggApV9myUL+Mfe 2lPZFMxFNM0RnnCzg1n2HOBMX+LzJnmbPBrFyZn0WirnfznHWw 8a4zWYQ3ohiK/tcnEgMeYYJw+B7BBvB67by0whzwi2cgD0sax7 wBuYirqF6OMjySFKeeiOGd4hyWqL2E/WMFGtI4BFGBPt0TEci1 62U3x0Axrf7ZA== 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 (newer, 2) 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:61890 Archived-At: On 13 Jul 2012, at 15:31, Michael Albinus wrote: > Francis Devereux writes: >=20 >> However, if you comment out the following lines in sql-comint in = sql.el: >> ; (unless (executable-find program) >> ; (error "Unable to locate SQL program \'%s\'" program)) >> then it works - you get an SQLi buffer running mysql in an ssh = session on >> the server. >=20 > Indeed, `executable-find' does not work in this case. I would propose > the following check, which keeps the test for local processes: [ patch snipped] > Could you, please, check, whether this works for you? Yes, this does work for me. I have tested both for a remote host, where = the check is correctly skipped, and for the local host, where the check = is done and correctly fails when sql-mysql-program can't be found. Thanks Michael :-) Francis