[Top][All Lists]

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

Re: (require) is still required, even after (package-initialize)

From: Pankaj Jangid
Subject: Re: (require) is still required, even after (package-initialize)
Date: Wed, 30 Oct 2019 08:36:51 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)

Michael Heerdegen <> writes:

> Pankaj Jangid <> 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?

I am using the built-in flymake only. Have installed only two


But I don't think this is causing any issue in init.el. For server
setup, I have only this in my init.el:

;; start server for emacsclient support
(require 'server)                       ; I don't know why this is
                                        ; required after
                                        ; package-initialize
(unless (server-running-p) (server-start))

Pankaj Jangid

reply via email to

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