unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Pankaj Jangid <pankaj.jangid@gmail.com>
Cc: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: (require) is still required, even after (package-initialize)
Date: Tue, 29 Oct 2019 20:02:16 +0100	[thread overview]
Message-ID: <874kzr9xzb.fsf@web.de> (raw)
In-Reply-To: <m28sp4n3b1.fsf@gmail.com> (Pankaj Jangid's message of "Mon, 28 Oct 2019 23:46:34 +0530")

Pankaj Jangid <pankaj.jangid@gmail.com> writes:

> The documentation says that (require 'package) is not required if
> (package-initialize) is already invoked in init.el.
>
> But flymake is reporting "server-running-p is not known to be defined"
> in the below statement,
>
> (unless (server-running-p) (server-start))
>
> I have also tried to call,
>
> (eval-when-compile (package-initialize)) instead of just
> (package-initialize). But still flymake is reporting the error.
>
> (require 'server) solves the error.
>
> Am I using package-initialize wrongly?

No, probably not.  "server" is built-in Emacs, so (package-initialize)
will not help.  Maybe it's a bug in a flymake addon package you use?  I
don't the the flymake source files in Emacs doing anything with the
server.  What's your setup - or do you have a recipe?

Regards,

Michael.



  reply	other threads:[~2019-10-29 19:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-28 18:16 (require) is still required, even after (package-initialize) Pankaj Jangid
2019-10-29 19:02 ` Michael Heerdegen [this message]
2019-10-30  3:06   ` Pankaj Jangid
2019-10-30 10:35     ` Michael Heerdegen

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=874kzr9xzb.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pankaj.jangid@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.
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).