all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: noosphere@mailc.net, Eli Zaretskii <eliz@gnu.org>
Cc: 44285@debbugs.gnu.org
Subject: bug#44285: 27.1; Invalid function: make-local-variable
Date: Thu, 29 Oct 2020 08:53:15 -0400	[thread overview]
Message-ID: <e89fe162-67da-99b2-07e9-2034fb77b3c6@cornell.edu> (raw)
In-Reply-To: <24b662de-7182-420e-9dcb-e36b9bb43dc1@www.fastmail.com>

[-- Attachment #1: Type: text/plain, Size: 694 bytes --]

On 10/28/2020 11:00 PM, noosphere@mailc.net wrote:
> Ken Brown on the Cygwin mailing list posted the following patch, which worked for me:
> 
> --- a/src/emacs.c
> +++ b/src/emacs.c
> @@ -170,7 +170,7 @@ #define MAIN_PROGRAM
>       We mark being in the exec'd process by a daemon name argument of
>       form "--daemon=\nFD0,FD1\nNAME" where FD are the pipe file descriptors,
>       NAME is the original daemon name, if any. */
> -#if defined NS_IMPL_COCOA || (defined HAVE_NTGUI && defined CYGWIN)
> +#if defined NS_IMPL_COCOA || defined CYGWIN
>    # define DAEMON_MUST_EXEC
>    #endif
> 

The full patch (with commit message) is attached.  Eli, is this OK for the 
emacs-27 branch?

Ken

[-- Attachment #2: 0001-Fix-failure-of-emacs-daemon-on-Cygwin.patch --]
[-- Type: text/plain, Size: 985 bytes --]

From 2d15296db112740bcb6e7fa5808b57f12a99e49e Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Thu, 29 Oct 2020 08:45:29 -0400
Subject: [PATCH] Fix failure of 'emacs --daemon' on Cygwin

* src/emacs.c (DAEMON_MUST_EXEC): Define unconditionally on
Cygwin, not just if HAVE_NTGUI is defined.  This fixes the failure
of 'emacs --daemon' to start on the non-w32 Cygwin builds.
(Bug#44285)
---
 src/emacs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/emacs.c b/src/emacs.c
index 11dcdb33fe..3836f179ab 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -171,7 +171,7 @@ #define MAIN_PROGRAM
    We mark being in the exec'd process by a daemon name argument of
    form "--daemon=\nFD0,FD1\nNAME" where FD are the pipe file descriptors,
    NAME is the original daemon name, if any. */
-#if defined NS_IMPL_COCOA || (defined HAVE_NTGUI && defined CYGWIN)
+#if defined NS_IMPL_COCOA || defined CYGWIN
 # define DAEMON_MUST_EXEC
 #endif
 
-- 
2.28.0


  reply	other threads:[~2020-10-29 12:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-28 15:50 bug#44285: 27.1; Invalid function: make-local-variable noosphere
2020-10-28 17:21 ` Eli Zaretskii
     [not found]   ` <874kmexn4d.fsf@mailc.net>
2020-10-28 17:47     ` Eli Zaretskii
2020-10-28 18:46       ` noosphere
2020-10-28 19:23         ` Eli Zaretskii
2020-10-28 19:31           ` noosphere
2020-10-28 19:52             ` Eli Zaretskii
2020-10-28 19:57               ` noosphere
2020-10-28 20:00                 ` Eli Zaretskii
2020-10-28 21:24                   ` noosphere
2020-10-29  1:46                     ` noosphere
2020-10-29  3:00                       ` noosphere
2020-10-29 12:53                         ` Ken Brown [this message]
2020-10-29 14:36                           ` Eli Zaretskii
2020-10-29 14:46                             ` Ken Brown

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=e89fe162-67da-99b2-07e9-2034fb77b3c6@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=44285@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=noosphere@mailc.net \
    /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.