From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61014: 29.0.60; flymake-mode stderr warning is confusing when edit the init.el or eary-init.el Date: Mon, 23 Jan 2023 15:09:53 +0200 Message-ID: <831qnljt26.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61014@debbugs.gnu.org To: Eason Huang , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 23 14:10:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJwaV-0008jD-H8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Jan 2023 14:10:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJwaM-0005I8-Or; Mon, 23 Jan 2023 08:10:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwaJ-0005Hw-13 for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:10:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJwaI-0005Zt-My for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJwaI-0006Ks-4h for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2023 08:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jan 2023 13:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61014 X-GNU-PR-Package: emacs Original-Received: via spool by 61014-submit@debbugs.gnu.org id=B61014.167447939524338 (code B ref 61014); Mon, 23 Jan 2023 13:10:02 +0000 Original-Received: (at 61014) by debbugs.gnu.org; 23 Jan 2023 13:09:55 +0000 Original-Received: from localhost ([127.0.0.1]:53612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwaA-0006KU-Sx for submit@debbugs.gnu.org; Mon, 23 Jan 2023 08:09:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJwa9-0006KF-F7 for 61014@debbugs.gnu.org; Mon, 23 Jan 2023 08:09:53 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwa2-0005YS-RV; Mon, 23 Jan 2023 08:09:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=PKF1bYk8eRio+qsVTHARrU2Ae04+qnNL8fTJQaFcJYU=; b=rbZNzulYC98ZxrEDqvsZ 4z1kGoTIGE8+BRA4oA4u+YmTa0yycv/Bd0++kkZLuLAnlYBb0OJugyro2skejsSabMvvHyjyczoaA ls098m1XRWlz1Bt4mBBh2ebiL7UQZ0IT9JYdSqiS6QqpsSuyJO3ZoxHP5j8mUL9IlY6HK0T6tm2fo 55sTpAtSpvfL8dtVTRH6BxoTIQFzVSqtqNP1py0AqGYHtjt/Y8CrS+2LBjurfl+2kHQ/QIUt1L/lg LZKIa5WYLsfInzuC8Yuwe4vmN3uW5dZQkcx554CzXIP92u6rVy2NHdb91XWumfk+JAXV92hYPbqzf 8Xrwmz2ZcYzyNg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJwa2-0001to-7S; Mon, 23 Jan 2023 08:09:46 -0500 In-Reply-To: (message from Eason Huang on Mon, 23 Jan 2023 10:15:49 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253992 Archived-At: > From: Eason Huang > Date: Mon, 23 Jan 2023 10:15:49 +0800 > > > I found that when editing the init.el or eary-ini.el under > `user-emacs-directory`, flymake will report the warning as below: > > ``` > Warning (initialization): Your `load-path' seems to contain > your `.emacs.d' directory: /Users/eason/.emacs.d/ > This is likely to cause problems... > Consider using a subdirectory instead, e.g.: /Users/eason/.emacs.d/lisp > ``` > > And this is because the variable `elisp-flymake-byte-compile-load-path` > has a defaut value `("./")` > > so flymake adding the `.emacs.d` to the load-path and then also > complaining about it, it is confusing to users. May be we can improve > it. > > Steps to reproduce: > > 1. create a new .emacs.d folder in the HOME directory > 2. create an empty init.e and eary-init.el file in the .emacs.d folder > 3. Start Emacs and C-x, C-f open the init.el or early.el > 4. M-x flymake-mode, add some blank lines in the init.el or early.el > 5. C-x b, Switch to buffer: *stderr of elisp-flymake-byte-compile* > Now you will see the warnings. Joćo, any comments? The warning comes from startup.el, but it is triggered by what Flymake does, AFAICT. > By the way, the message "Your `load-path' seems to contain > your `.emacs.d' directory" should use `user-emacs-directory` instead, > because some user will use `~/.config/emacs/` folder instead of > `.emacs.d` I fixed this part.