help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sql-postgres connect using URL


From: Rob Sargent
Subject: Re: sql-postgres connect using URL
Date: Fri, 28 Oct 2022 06:42:02 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2



On 10/28/22 01:05, Jean Louis wrote:
* 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.

That does look promising!  Thank you.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]