From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Matthew McClure Newsgroups: gmane.emacs.help Subject: =?UTF-8?Q?Re=3A_emacsclient_=E2=80=93alternate=2Deditor=3D_=E2=80=9CCould_not_st?= =?UTF-8?Q?art_the_Emacs_daemon=E2=80=9D=3B_=22standard_input_is_not_a_tty=22?= Date: Mon, 19 Aug 2019 08:10:49 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="104896"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 19 14:38:28 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hzgvb-000R9h-Tj for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Aug 2019 14:38:28 +0200 Original-Received: from localhost ([::1]:49348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgva-0007s1-8h for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Aug 2019 08:38:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36679) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgV9-0003uh-R7 for help-gnu-emacs@gnu.org; Mon, 19 Aug 2019 08:11:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgV8-0003ap-0E for help-gnu-emacs@gnu.org; Mon, 19 Aug 2019 08:11:07 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:42614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzgV5-0003YH-Rf for help-gnu-emacs@gnu.org; Mon, 19 Aug 2019 08:11:04 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id b16so8461678wrq.9 for ; Mon, 19 Aug 2019 05:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=continuousdelta.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=eHnpMg8CAeIZKa4784Mj+7dG9+qXKPSBkwPBK4sX2y4=; b=bYI4MpvQ47SuWW8QaQU0dloeyceVmNzIcw3ARSLu3pJaUogy8XFoRph8D9rxUs9SZZ lwdg7q+VXhVguyJfiJNLSIWbKW4SMVKeMOj7vmiwF0lR4zkfzHISb8oZYY0IvxD4AbAR KTV2BGA5d256cycXb9sxd5wTXo5GPLl1/2zVxmY2kKmD/LkrBF9Mm+Q+27Gtg4wuo3+4 JuaUburp/iYGDMwW/SE4UHAANPkHmpTySD01h8fePzNTqDxw2MJxWmTo/R2GDhtmckvc jypPAC1v+nzr1fM97tsFKldVbmab3XxO39i/3Vo7WGTyX9fGe0+lkyS+TPFAKVTBEriT 4gRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=eHnpMg8CAeIZKa4784Mj+7dG9+qXKPSBkwPBK4sX2y4=; b=GHtgYhQgBpe8sRI+4mqiBCGpFgTVzqP5gcNjuKhOmTdh4+3/WqvTejGGIAPx2szecq qD2XVmqw4mArR1uTah4GHFvBz+2239jADVMJxq92v9NnmhhHWqugkRDc1VRNNk481DxU l5UcU+emjBrlwe0sVh6ZeoqxJONOQ6uxcT4ohFlKeM3TQgvLirAS9QVZ8veZ9y5AwT8h wkXv4VC1PjcFiPjRKGVuU7Mwp7T4Ra2B4swuL65U3TD7HuZec0BGTTMSmWoksq7lnr4f Pc+PaG5uX4wVQDdjTMGp7z+9si/g3OqkaEWdGg24Ja512Mfv5BOyWF8mecJlpZknQ+Dc UVbQ== X-Gm-Message-State: APjAAAXjpAWuh28RhGq/tSd6LhSgGUJJeu0TX6weoB+ojTu99fz6fASY PkG+oC/R/DLLWvXwNQxioEz9mFm5yN4ez0Qhv6YE2rIMsyMMnQ== X-Google-Smtp-Source: APXvYqyZ0VbsGnQroD+PdUYIxbqrq4oY/s0x/8iQlGF1UoNahEFzETEmlhu14/ji05OAhvu6MGUwgv+ejL+RNyXHqsU= X-Received: by 2002:adf:ea08:: with SMTP id q8mr3700358wrm.188.1566216660271; Mon, 19 Aug 2019 05:11:00 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121342 Archived-At: On Sun, Aug 18, 2019 at 12:03 PM Matthew McClure wrote: > > How might I tell emacsclient that it shouldn't need a tty to start the > Emacs daemon? > > I'm using Emacs 26.2 from Homebrew Cask. > > I have a Keyboard Maestro macro intended to create a new Emacs frame. > > /usr/local/bin/emacsclient -n -c --alternate-editor= > > Keyboard Maestro shows the following message. > > /usr/local/bin/emacsclient: can't find socket; have you started the server? > To start the server in Emacs, type "M-x server-start". > emacs: standard input is not a tty > Error: Could not start the Emacs daemon Disregard my question. The macro works after changing the script to: ``` PATH="/usr/local/bin:$PATH" emacsclient -c -n --alternate-editor= ``` Keyboard Maestro uses a different environment from Bash in Terminal, and `/usr/local/bin` wasn't in PATH. It was trying to start the Emacs daemon using /usr/bin/emacs. On my machine that's version 22.1.1, presumably included with macOS. -- Matthew McClure Continuous Delta https://www.continuousdelta.com/