From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang 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 10:15:49 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4762"; mail-complaints-to="usenet@ciao.gmane.io" To: 61014@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 23 03:19:25 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 1pJmQe-00010n-7M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Jan 2023 03:19:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJmQK-0003cW-Dh; Sun, 22 Jan 2023 21:19:04 -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 1pJmQI-0003cO-Rf for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 21:19:02 -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 1pJmQI-0002Zv-JM for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 21:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJmQI-0003Ak-9a for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 21:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jan 2023 02:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61014 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167444029912142 (code B ref -1); Mon, 23 Jan 2023 02:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jan 2023 02:18:19 +0000 Original-Received: from localhost ([127.0.0.1]:52907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJmPb-00039k-8M for submit@debbugs.gnu.org; Sun, 22 Jan 2023 21:18:19 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJmPU-00039Z-RH for submit@debbugs.gnu.org; Sun, 22 Jan 2023 21:18:17 -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 1pJmPU-0003ZS-Id for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 21:18:12 -0500 Original-Received: from out203-205-221-191.mail.qq.com ([203.205.221.191]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJmPP-0002QI-OS for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 21:18:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1674440276; bh=O1vbtD3euhE5KLKHfFsfhoUbMPvnoIBI8fvRwXhSwPs=; h=From:To:Subject:Date; b=uXixlXQeTv/ZKtDzI0D1pRiG4K0EQa3NpJSOboWptWimx7fyMoHmcTzWQxwlwBvpV puoFmB30DHhuCDLJ0w4HF19PvyR7BPNiNGSPVYAIDps8ZhEXCkANe5sKsJQdly9+Mm 3kWi+00NxcLDWQidT5rPLAy1dS5erZl1FRFH2PQc= Original-Received: from macbook ([101.85.11.109]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 47701831; Mon, 23 Jan 2023 10:17:55 +0800 X-QQ-mid: xmsmtpt1674440275tpeyigup0 X-QQ-XMAILINFO: Nq1uWKlIb9DM7M9Sk11UgrwbXxTK18ytQM9M0oR/FeH3NuH3wdR73kJl0l34F7 xbWl24Ip0fcB84ZGvLKK4a1pjoq6ZhLaKNl3ck6eYe/+a4+O3wQnWiL4Jow9rLoQNLo6sYnxO5Fm njszyGGFHTO/5KlxMa8ZpGNGIPgJvS3qTictM/KXe4HUv25sRx4oNdgDfcPgKEOMwaaMRUKKbFaH TJq1A0dhzQttMbBMJ9AU1uM6hHWlsRJMsVdXiTXOIDjayWmpU47tpnfbWotqk7+gbj79tAYoo1vh +MVteIxxqa5MtvVJBudPBE132qCzQM1nR6Uuf6DdCN+0/HaEMrLLE6k1MK0j+1YW5SltqJENn/RP UAclQsQstyu/Jp0qwcJ7IDbt2H3arFNYSgJyPKKe5smq/bafvCnsxOytvXSM6dHDc9Q+WeeduhR9 nk1AQUYR42FGLyXF2dpkr/9leWHQfQkSUCSdijdb2Y/mf8dHEtps+ZX3aZfM1vdFABya7h+vFxKR 98ulG9znXlTunuAUr1fEGX1lGRGGSNq98FyuonL7bZbQ5uEWILe/RbSBuMjjI3lapvdce0sdqB8E DKbZTsE5P0t+kQcg7ucDMnDJM5l5a9vSQRK5FsB8HbPn0LS12DEi0reBeCaRw1vxfXemyFSlT1GQ wv0OITaqPqdq/ue9ezkGG9faMZeAOFoJ2oxSRc4SvSLFXwq196cwr7F5FskpkQIYCTq5vKtvqpdw GggE2ibOo6My7EERwHuFiBamVql3TGEy1vGm3Rz4pkOpHPG0i0Dt+Os6uzSSzDFLxWx5tyciounQ ntepl9X3Sqdd3bKg1NKSM8Kbq/28hnnC1nY4Fc4S Original-Message-ID: Received-SPF: pass client-ip=203.205.221.191; envelope-from=aqua0210@foxmail.com; helo=out203-205-221-191.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:253970 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. 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` -- Eason Huang In GNU Emacs 29.0.60 (build 1, x86_64-apple-darwin22.2.0, NS appkit-2299.30 Version 13.1 (Build 22C65), git sha1 846838dbab) of 2023-01-22 built on macbook Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.1 Configured using: 'configure --without-native-compilation --without-dbus 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath /opt/local/lib/gcc12 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr vc-git diff-mode easy-mmode vc-dispatcher emacsbug message mailcap yank-media puny rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra noutline outline dired-aux dired dired-loaddefs time-date subr-x checkdoc lisp-mnt help-mode cl-macs cl-seq flymake-proc flymake project byte-opt gv bytecomp byte-compile compile text-property-search comint ansi-osc ansi-color ring warnings icons thingatpt emacs-git-version cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 70613 13315) (symbols 48 8086 0) (strings 32 24199 1872) (string-bytes 1 729791) (vectors 16 16886) (vector-slots 8 227852 13364) (floats 8 38 127) (intervals 56 627 0) (buffers 984 18))