all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Mauger <mmaug@yahoo.com>
To: Glenn Morris <rgm@gnu.org>,
	"roman.scherer@nugg.ad" <roman.scherer@nugg.ad>
Cc: "13715@debbugs.gnu.org" <13715@debbugs.gnu.org>
Subject: bug#13715: 24.2; Invalid function when calling sql-connect
Date: Sun, 10 Mar 2013 18:54:42 -0700 (PDT)	[thread overview]
Message-ID: <1362966882.70002.YahooMailNeo@web160906.mail.bf1.yahoo.com> (raw)
In-Reply-To: <a67gmal50b.fsf@fencepost.gnu.org>

This was a documentation error, version 3.2 corrects this, and the "Wrong number of arguments" error.

Replaced "symbol" with "case-insensitive string"

Thanks for the report.

--Michael


----- Original Message -----
> From: Glenn Morris <rgm@gnu.org>
> To: roman.scherer@nugg.ad
> Cc: 13715@debbugs.gnu.org; mmaug@yahoo.com
> Sent: Thursday, February 14, 2013 8:50 PM
> Subject: Re: bug#13715: 24.2; Invalid function when calling sql-connect
> 
> 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
>





      parent reply	other threads:[~2013-03-11  1:54 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
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 [this message]

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=1362966882.70002.YahooMailNeo@web160906.mail.bf1.yahoo.com \
    --to=mmaug@yahoo.com \
    --cc=13715@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    --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.