From: Michael Mauger <michael@mauger.com>
To: "Simen Heggestøyl" <simenheg@gmail.com>
Cc: "alex@gnu.org" <alex@gnu.org>,
"24646@debbugs.gnu.org" <24646@debbugs.gnu.org>
Subject: bug#24646: [PATCH] Complete the name of PostgreSQL databases
Date: Mon, 14 Nov 2016 15:51:52 +0000 (UTC) [thread overview]
Message-ID: <1306009066.3273743.1479138712402@mail.yahoo.com> (raw)
In-Reply-To: <1478949102.7910.0@smtp.gmail.com>
> On Saturday, November 12, 2016 6:12 AM, Simen Heggestøyl <simenheg@gmail.com> wrote:
> > Thank you for your detailed feedback, Michael.
>
> I agree with all of your points and have modified the patch accordingly,
> except for one:
>
> On Mon, Nov 7, 2016 at 5:03 AM, Michael Mauger <michael@mauger.com>
> wrote:
>> * `dolist' can specify the return value rather than having a separate
>> expression after the loop. That is, (dolist (row (process-lines ...)
>> (nreverse res)) ...)) is equivalent to (dolist (row (process-lines
>> ...)) ...) (nreverse res)
>
> I'm aware of it, but I tend to avoid using it, since I have many times
> myself overlooked it when reading code that uses it. If it's OK with you
> I'll leave it like it is, but if you insist I can change it.
>
>> * I'm concerned about the change to the `completing-read' call in
>> `sql-get-login-ext'. Rather than `nil', I'd suggest
> `confirm' so that
>> if the value isn't in the list, it must be confirmed.
>> * If the REQUIRE-MATCH parameter should really be something other
>> than `t', then possibbly we should add another keyword
>> :completion-required whose value would be used in the
>> `completing-read' call (default to `t' to preserve current
>> functionality).
>
> It's not important to me. I made the change because I thought it could
> be frustrating for the user if `sql-postgres-list-databases' doesn't
> work as it should, but I realize now that changing it probably deserves
> a discussion and a patch on its own.
>
>
> -- Simen
>
Looks good. Go ahead and commit this.
Thank you, I appreciate the contribution.
I'll take a look at making the completion REQUIRE-MATCH change separately; I do think that control of completion behavior is needed here but it impacts more than just database selection for Postgres. The advantage of adding a keyword to the `sql-product-alist' is that the user can control the behavior to meet their preferences.
--
MICHAEL MAUGER // FSF Member // GNU Emacs sql-mode maintainer // GNU Linux, GNU Emacs
next prev parent reply other threads:[~2016-11-14 15:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-09 9:55 bug#24646: [PATCH] Complete the name of PostgreSQL databases Simen Heggestøyl
2016-10-23 12:00 ` Simen Heggestøyl
2016-10-23 21:50 ` Michael Mauger
2016-10-24 6:32 ` Eli Zaretskii
2016-11-06 14:46 ` Simen Heggestøyl
2016-11-07 4:03 ` Michael Mauger
2016-11-12 11:11 ` Simen Heggestøyl
2016-11-14 15:51 ` Michael Mauger [this message]
2016-11-15 18:11 ` Simen Heggestøyl
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306009066.3273743.1479138712402@mail.yahoo.com \
--to=michael@mauger.com \
--cc=24646@debbugs.gnu.org \
--cc=alex@gnu.org \
--cc=simenheg@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).