From: Jean Louis <bugs@gnu.support>
To: Rob Sargent <rsargent@xmission.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: sql-postgres connect using URL
Date: Fri, 28 Oct 2022 10:05:35 +0300 [thread overview]
Message-ID: <Y1t/P8+gG+SIlpib@protected.localdomain> (raw)
In-Reply-To: <cc6cf168-ae84-54fd-ed35-0ceffd0aff21@xmission.com>
* Rob Sargent <rsargent@xmission.com> [2022-10-28 08:37]:
> But question becomes How to stop emacs from prompting for all the usual args
> (host, etc).
I have just tried this and it opens buffer straight without asking:
(let ((buffer (generate-new-buffer "*PostgreSQL*")))
(apply #'make-comint-in-buffer "psql" buffer "psql" nil)
(switch-to-buffer buffer))
You can make function out of it. I also use ~/.pgpass if it matters.
`apply' is there if you wish to replace the last `nil' with `psql'
arguments.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-10-28 7:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 22:43 sql-postgres connect using URL Rob Sargent
2022-10-27 20:19 ` Emanuel Berg
2022-10-27 20:56 ` Jean Louis
2022-10-28 1:53 ` Rob Sargent
2022-10-28 4:11 ` Jean Louis
2022-10-28 4:45 ` Rob Sargent
2022-10-28 5:25 ` Jean Louis
2022-10-28 5:36 ` Rob Sargent
2022-10-28 7:05 ` Jean Louis [this message]
2022-10-28 12:42 ` Rob Sargent
2022-10-28 6:18 ` Yuri Khan
2022-10-28 12:51 ` Rob Sargent
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=Y1t/P8+gG+SIlpib@protected.localdomain \
--to=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=rsargent@xmission.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.
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).