From: Pankaj Jangid <pankaj.jangid@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: (require) is still required, even after (package-initialize)
Date: Wed, 30 Oct 2019 08:36:51 +0530 [thread overview]
Message-ID: <m2v9s7kk38.fsf@gmail.com> (raw)
In-Reply-To: <874kzr9xzb.fsf@web.de> (Michael Heerdegen's message of "Tue, 29 Oct 2019 20:02:16 +0100")
Michael Heerdegen <michael_heerdegen@web.de> writes:
> 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?
>
I am using the built-in flymake only. Have installed only two
extensions:
flymake-rust
flymake-lua
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))
Regards,
--
Pankaj Jangid
next prev parent reply other threads:[~2019-10-30 3:06 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
2019-10-30 3:06 ` Pankaj Jangid [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2v9s7kk38.fsf@gmail.com \
--to=pankaj.jangid@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.