all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: roman.scherer@nugg.ad
Cc: mmaug@yahoo.com, 13715@debbugs.gnu.org
Subject: bug#13715: 24.2; Invalid function when calling sql-connect
Date: Thu, 14 Feb 2013 20:50:28 -0500	[thread overview]
Message-ID: <a67gmal50b.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <wyfw0y316h.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 14 Feb 2013 18:50:30 -0500")

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






  reply	other threads:[~2013-02-15  1:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 14:51 bug#13715: 24.2; Invalid function when calling sql-connect roman.scherer
2013-02-14 23:50 ` Glenn Morris
2013-02-15  1:50   ` Glenn Morris [this message]
2013-02-15  1:54     ` Glenn Morris
     [not found]       ` <CAOkyP-ZTuVAHRpRVAAV2WiH5N0n2MRAaWRo6PfzbJKw_pGPyNg@mail.gmail.com>
2013-02-15 17:09         ` Glenn Morris
2013-03-11  1:54     ` Michael Mauger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a67gmal50b.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=13715@debbugs.gnu.org \
    --cc=mmaug@yahoo.com \
    --cc=roman.scherer@nugg.ad \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.