From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: Re: (require) is still required, even after (package-initialize) Date: Wed, 30 Oct 2019 08:36:51 +0530 Organization: Code is Great! Message-ID: References: <874kzr9xzb.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238097"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cc: Emacs mailing list To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 04:07:20 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 1iPeKN-000zo5-Nu for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 04:07:19 +0100 Original-Received: from localhost ([::1]:36564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPeKL-0000Ol-Sm for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2019 23:07:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38530) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPeK7-0000OP-2b for help-gnu-emacs@gnu.org; Tue, 29 Oct 2019 23:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPeK5-00077S-RG for help-gnu-emacs@gnu.org; Tue, 29 Oct 2019 23:07:02 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:39240) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPeK3-00075j-JD for help-gnu-emacs@gnu.org; Tue, 29 Oct 2019 23:07:00 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id t12so282172plo.6 for ; Tue, 29 Oct 2019 20:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version; bh=+K6S0xPAxeIM0ViqhRvvYvs6i9Nwb/I33Jllup8ajOo=; b=qMdoPFKP1zhccUyFUcuWIWXMpJTa4b2BpuqyOVLG95invHfW4es9wUGEYwHDv5LhpB lvYb8kZULNd9KyiMnl61g/nL/oJV17j1MTW1thx+ChCyHl5ko7CTbtTbriK9tnsopquO OY11FnbjfeWXuPrJOeFrH27sjwwgi+pJyDpdqujAMRNcO/8prsemnwjPtSdikRUr+9kr 49DXERyjtfOe0VkbHAJrgxtUv8qoC8HE0YZdXZIbe0xIUESk7uumDvxKCYy1tymDwSHL UXa3It3OnJnrVLXXIQOVy+eDZaDp5XjJxgxp4hit0kSQVcRyI0gWBDtTlSAjs3MG/MGh I/OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=+K6S0xPAxeIM0ViqhRvvYvs6i9Nwb/I33Jllup8ajOo=; b=eyWZViRQ2CQZDaMgrLRnPINwLb/Mh0V8uM2qKLFZ0/iFn0KkyfafTqjsrY4nk613tC dRHxQznwwcv4oxyEXV+IKuOF5Y/OaEn4f9TwMlz039FfGxj8ihlC/9WnszruEzR5RqJ3 dPcApumyjR9tl/lBNjl/6aZsXCIp6BqLIeUoqz64pqaVryrLJXJj4LjssB1BpdYBhSO4 fuPjwnDCw6JtWVXWC4foIwjGwXCSwDBTZF8gCL5qfMvAoQId7jzD+ls9JG/JLYtfGyo7 yQSr+mRc4iEAXO8XUY+mBfq1HFroCsCu4lYQcTeZGYPQxEgw4iISVPB4OY/zCCoN1/ob xvvA== X-Gm-Message-State: APjAAAXfTXEK0y6iM88Er8+dOk7MWr1GD8oa3FP5FynrAHIfjKnLBR/8 fRgMSTuJByG41v6Fiwdd+q5P8gc= X-Google-Smtp-Source: APXvYqzK9uOxNA/ezD92/8+aGJAnvRArtG8Z6ykJDR5BfcfSSHbmFtbPqD1z5TruQGneNeO8UGezng== X-Received: by 2002:a17:902:b102:: with SMTP id q2mr2148039plr.43.1572404816485; Tue, 29 Oct 2019 20:06:56 -0700 (PDT) Original-Received: from Pankajs-MacBook-Pro.local ([157.47.246.236]) by smtp.gmail.com with ESMTPSA id j25sm491506pfi.113.2019.10.29.20.06.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Oct 2019 20:06:55 -0700 (PDT) Original-Received: by Pankajs-MacBook-Pro.local (Postfix, from userid 501) id 24A9A203CE996D; Wed, 30 Oct 2019 08:36:51 +0530 (IST) In-Reply-To: <874kzr9xzb.fsf@web.de> (Michael Heerdegen's message of "Tue, 29 Oct 2019 20:02:16 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::633 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:121772 Archived-At: 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 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