From unknown Fri Jun 20 18:20:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45197 <45197@debbugs.gnu.org> To: bug#45197 <45197@debbugs.gnu.org> Subject: Status: Saving customizations makes ~/.config/emacs/init (no .el extension) Reply-To: bug#45197 <45197@debbugs.gnu.org> Date: Sat, 21 Jun 2025 01:20:43 +0000 retitle 45197 Saving customizations makes ~/.config/emacs/init (no .el exte= nsion) reassign 45197 emacs submitter 45197 tsuucat severity 45197 normal tag 45197 fixed confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 13:19:03 2020 Received: (at submit) by debbugs.gnu.org; 12 Dec 2020 18:19:03 +0000 Received: from localhost ([127.0.0.1]:46380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko9Tz-0008WK-5J for submit@debbugs.gnu.org; Sat, 12 Dec 2020 13:19:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:57644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko9Tx-0008W0-FY for submit@debbugs.gnu.org; Sat, 12 Dec 2020 13:19:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ko9Tw-0000bF-MG for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 13:19:01 -0500 Received: from pv50p00im-ztdg10021201.me.com ([17.58.6.45]:37449) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ko9Tu-00025P-Gx for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2020 13:19:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1607796625; bh=Y2VO3e+RGvLEx2eOlNCE+Xiz9pAY58Yo9aQcQpUNSWs=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=OJm6suUGNu8i19lMhlqJyGey3rztDIdWuto8TG1hzkwxJOVIRriHvk/n/Tny0w9F/ DtVY9H7/jYhMcmqtg/vSJlE2F8kcZCrHYkE2jC5vqnC4VjfEeKCvEyw5bYHTd+8n3C uLwwCuDG5Flhjb0PP2swWfGCzsITDQl9P3T0jDCyf3gcq7QH37H+EXj6TaNusHC1Ub uaevE1bq8TMysKqFNFUI0vCaSK1+m48Hse0Hh2DQS1VmcxgcWHh5XcZrgUpT5aJfCd vlY2HaXz3d5CmxdkytPB013bWon+wjyN4NDyVSJLkyl89qEfyitJFOfPLz8h6OIXGL PC3B5PiLl9kZA== Received: from [192.168.129.26] (i114-186-197-142.s41.a008.ap.plala.or.jp [114.186.197.142]) by pv50p00im-ztdg10021201.me.com (Postfix) with ESMTPSA id 70884A40296 for ; Sat, 12 Dec 2020 18:10:24 +0000 (UTC) From: tsuucat Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Saving customizations makes ~/.config/emacs/init (no .el extension) Message-Id: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> Date: Sun, 13 Dec 2020 03:10:22 +0900 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2020-12-12_05:2020-12-11, 2020-12-12 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=812 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2012120142 Received-SPF: pass client-ip=17.58.6.45; envelope-from=tsuucat@icloud.com; helo=pv50p00im-ztdg10021201.me.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Subject says all. How to reproduce: 1. $ cd /tmp 2. $ mkdir -p test-home/.config/emacs 3. $ cd test-home 4. $ HOME=3D$PWD emacs 5. M-x customize, edit something and Save for Future Sessions. =3D> Wrote /tmp/test-home/.config/emacs/init init (not init.el) is created. This is because user-init-file is set to = =E2=80=9C/tmp/test-home/.config/emacs/init=E2=80=9D. Emacs manual doesn=E2=80=99t refer ~/.config/emacs/init so I think this = is not intended. Changing (lambda () (expand-file-name =E2=80=9Cinit" startup-init-directory)) to (lambda () (expand-file-name =E2=80=9Cinit.el" startup-init-directory)) in startup.el maybe solve this (like early-init.el)? -- tsuucat From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 12:12:02 2020 Received: (at 45197) by debbugs.gnu.org; 14 Dec 2020 17:12:02 +0000 Received: from localhost ([127.0.0.1]:54093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korOD-0007ya-JO for submit@debbugs.gnu.org; Mon, 14 Dec 2020 12:12:02 -0500 Received: from quimby.gnus.org ([95.216.78.240]:45216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korOB-0007y7-LW for 45197@debbugs.gnu.org; Mon, 14 Dec 2020 12:12:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7JTaP/VEq1FdWCTjyCf0Lcxt+d1+F4NgDGTAR4UOhbY=; b=sWEPo/o2U1pi79Er4uW+BjXS1x lGHUNKKr/jgrcssnisFJvoJGnr3NWaG0XWHfsw+pkt0vEMvoEvXO/VVMv5kOdx6rFrokFkcOvDsn2 qMhzIZ02+/ANedO61Q4TtvcNxsvPgQ/DQArX2FFtcEM2hiMIfcq8+N9NaTzksJ+bVIQ8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1korO2-0004wi-TF; Mon, 14 Dec 2020 18:11:53 +0100 From: Lars Ingebrigtsen To: tsuucat Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> X-Now-Playing: Efterklang's _Springer_: "Kloy Gyn" Date: Mon, 14 Dec 2020 18:11:49 +0100 In-Reply-To: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> (tsuucat@icloud.com's message of "Sun, 13 Dec 2020 03:10:22 +0900") Message-ID: <878sa0z50q.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tsuucat writes: > This is because user-init-file is set to “/tmp/test-home/.config/emacs/init”. This was part of: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45197 Cc: 45197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tsuucat writes: > This is because user-init-file is set to =E2=80=9C/tmp/test-home/.config/= emacs/init=E2=80=9D. This was part of: Add early init file, stop package-initialize insertion =20=20=20=20 Discussion on emacs-devel leading up to this change (approximately 150 messages): =20=20=20=20 - https://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00154.html - https://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00433.html - https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00023.html - https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00599.html - https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00332.html I did not read those 150 messages, and this code is uncommented in startup.el: (lambda () (expand-file-name "init" startup-init-directory)) Does anybody know whether this is just a typo? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 12:12:18 2020 Received: (at control) by debbugs.gnu.org; 14 Dec 2020 17:12:18 +0000 Received: from localhost ([127.0.0.1]:54096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korOU-0007zA-3E for submit@debbugs.gnu.org; Mon, 14 Dec 2020 12:12:18 -0500 Received: from quimby.gnus.org ([95.216.78.240]:45232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korOS-0007yy-Mq for control@debbugs.gnu.org; Mon, 14 Dec 2020 12:12:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Dt1zASPAXSW5Yd/8W/T0zLeICgA5ntyZBnOu548QIBY=; b=ox3743TxNmXNHtKsdAllYbAf+F UsLsqiuc5Qw2afjct7ek8epyut3IOe4h0LQcarCfw8Alc6KpJigoYzRIKVdDzWO9o2bNBpMd/4XE5 TY9kGSbTDEtv8T7qfrCt8v7z5HuaCplKreBlf6VrSl88VfBLjWccCKnoRY8AakP50sZE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1korOL-0004x6-7e for control@debbugs.gnu.org; Mon, 14 Dec 2020 18:12:11 +0100 Date: Mon, 14 Dec 2020 18:12:08 +0100 Message-Id: <877dpkz507.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45197 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 45197 + confirmed quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 45197 + confirmed quit From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 12:23:48 2020 Received: (at 45197) by debbugs.gnu.org; 14 Dec 2020 17:23:48 +0000 Received: from localhost ([127.0.0.1]:54167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korZc-00022z-H0 for submit@debbugs.gnu.org; Mon, 14 Dec 2020 12:23:48 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:42555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korZb-00022m-Jg for 45197@debbugs.gnu.org; Mon, 14 Dec 2020 12:23:48 -0500 Received: by mail-wr1-f51.google.com with SMTP id m5so17210759wrx.9 for <45197@debbugs.gnu.org>; Mon, 14 Dec 2020 09:23:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=klETFK5jDpctD6z+uqEiOqF4sFJagSy5mCrbkb0Qqj4=; b=DiS3KsSCmqhopptAq49CwGWCO50rOKOcdidlbt32BS9HLRZ8s/c/11XFd5+0QEFJSP LxU5MI85egSY7mOL/QMSzTRLCIMvpsHRuGdQR+1qzm8HJje/gCd/YNCKjq/Sb02A4OsI MLHOr8j9Sa8R8mDSOf4ZMwXVZTtMUNE16Sgx1+atg4SqB4ljmcbAHjAqF4FRegamlBjB DK6HK9Tr+Q1L3n5b7AUSUu+Eucx1BktvrdLYDoUHrjjfr8AK46QjyacEzymFn7MZ7Ovs V0/chaAcW8FzhMPplKvgdAv7pKH9d9XCwJcnfw+gfonO463ie6rYLe5Ndkc8o4XMcgqP nvFA== 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:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=klETFK5jDpctD6z+uqEiOqF4sFJagSy5mCrbkb0Qqj4=; b=jYJAocRgfZ2+CbDy6RJiwj1lOh4RWd+fvZTPG7vMawUx55H0dOeZ+Px5MItuWEOLyp wRpVQWpOYicptduRotBeA7WqjrqzG3l37cSkQoKHl2bFtLYElrpssKi6OpY5ZuSMO/bR gutUwITLkfuzy+CscXp3zmy0JyPE6vPrpkmnT8yOLR5NaQtrhadNwdi/9MeB0XpwWzQt O+HZczCcHpBjwlm2buR5AxFNDSpDMCcJTC5iMp2/I8ilBVJrebx2OIJNEBJtlPtcAh4M FfHGyZFCMUSMpEsCuBjKC0FvWAc9942TFrqDpTWLaHn5ZgAsO8IgEHvYd3Luie6DQ08x YT1Q== X-Gm-Message-State: AOAM531zNxJ60hjpmJsR/+P3PoAq78WX6kPP3VwwZilm8pC/Te0Xcm0F PQ63ldYxZwbK+DYx3ACZdmIPkIYDyHc= X-Google-Smtp-Source: ABdhPJzGi5uotqoX4OfqaziTMpN0SWiWmx5Miijmnn23jK2inkGdb7LAc+A3NHaO5nHuysm3qj1qOw== X-Received: by 2002:a5d:488b:: with SMTP id g11mr30898087wrq.210.1607966621270; Mon, 14 Dec 2020 09:23:41 -0800 (PST) Received: from rltb (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id s13sm32273448wrt.80.2020.12.14.09.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 09:23:40 -0800 (PST) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> <878sa0z50q.fsf@gnus.org> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Mon, 14 Dec 2020 18:23:39 +0100 In-Reply-To: <878sa0z50q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 14 Dec 2020 18:11:49 +0100") Message-ID: <87y2i0e1yc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45197 Cc: 45197@debbugs.gnu.org, tsuucat X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > tsuucat writes: > I did not read those 150 messages, and this code is uncommented in > startup.el: > > (lambda () > (expand-file-name > "init" > startup-init-directory)) > > Does anybody know whether this is just a typo? I=CA=BCm not sure it is. startup--load-user-init-file does this: (when (and (eq user-init-file t) alternate-filename-function) (let ((alt-file (funcall alternate-filename-function))) (and (equal (file-name-extension alt-file) "el") (setq alt-file (file-name-sans-extension alt-file))) (unless init-file-name (setq init-file-name alt-file)) (load alt-file 'noerror 'nomessage))) which makes me wonder if it=CA=BCs trying to cater for people who compile their init.el file, since this code doesn=CA=BCt actually probe the filesystem, but presumably later we do (load init-file-name), which will match .elc and .el suffixes. Robert From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 12:46:43 2020 Received: (at 45197) by debbugs.gnu.org; 14 Dec 2020 17:46:43 +0000 Received: from localhost ([127.0.0.1]:54192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korvm-0004jV-Ti for submit@debbugs.gnu.org; Mon, 14 Dec 2020 12:46:43 -0500 Received: from pv50p00im-ztdg10021101.me.com ([17.58.6.44]:60097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1korvl-0004jI-Ns for 45197@debbugs.gnu.org; Mon, 14 Dec 2020 12:46:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1607967995; bh=bffhx18gctSaCeZ8p9rY6hnQ1zuvQYiTMD7uexuyfbk=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=HL0UomknGxiCW9iZkjXUyw+znw1Tp4ZtTta3C6k1xNo5ucyfAfWaZ4X4hCx/ecyUF Z941wo7c+HF6ulcCRnprmoA4AkJsHK0heo735vUD4WbLi9JFKjbpsq5vko3KkVuWGR KOQxDKiWHns19G4LH0gotpCA6Xr+4Tt9M7f2O9kHKHpGgWWrpYkjE0tfdasK3b9uqe cQ7pPzuJwoaCfKNIyYBopPS9mS6/FOxZnQxDGv+VfO0MeehSpUjOdfg/qpdv6scQzG l1UzDlLkfaQV7bT0bEs7MCkCWM2st+7Q7AhTkCe6SPFrQdewT+m9WY5GlMTd3lks+o ls+bV6M3IHk4g== Received: from [192.168.129.26] (i114-186-197-142.s41.a008.ap.plala.or.jp [114.186.197.142]) by pv50p00im-ztdg10021101.me.com (Postfix) with ESMTPSA id 37743180853; Mon, 14 Dec 2020 17:46:34 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) From: tsuucat In-Reply-To: <878sa0z50q.fsf@gnus.org> Date: Tue, 15 Dec 2020 02:46:32 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <8E621FE9-6B93-49E4-B993-6A915E0EE033@icloud.com> References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> <878sa0z50q.fsf@gnus.org> To: Lars Ingebrigtsen X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2020-12-14_09:2020-12-11, 2020-12-14 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=653 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2012140120 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45197 Cc: 45197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > I did not read those 150 messages, and this code is uncommented in > startup.el: >=20 > (lambda () > (expand-file-name > "init" > startup-init-directory)) I found the explicit .el extension of "early-init.el=E2=80=9D in = startup.el is from = https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D3d9a56f00040cbfc8= fb92c4379344d7e91e2dff2. -- tsuucat From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 14 12:53:14 2020 Received: (at 45197) by debbugs.gnu.org; 14 Dec 2020 17:53:14 +0000 Received: from localhost ([127.0.0.1]:54210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kos25-0004tq-Ny for submit@debbugs.gnu.org; Mon, 14 Dec 2020 12:53:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kos24-0004tK-68 for 45197@debbugs.gnu.org; Mon, 14 Dec 2020 12:53:12 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56733) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kos1y-0006kk-QP; Mon, 14 Dec 2020 12:53:06 -0500 Received: from [176.228.60.248] (port=2427 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kos1x-0005PL-UX; Mon, 14 Dec 2020 12:53:06 -0500 Date: Mon, 14 Dec 2020 19:52:56 +0200 Message-Id: <83wnxkb7gn.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <878sa0z50q.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 14 Dec 2020 18:11:49 +0100) Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> <878sa0z50q.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45197 Cc: 45197@debbugs.gnu.org, tsuucat@icloud.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Mon, 14 Dec 2020 18:11:49 +0100 > Cc: 45197@debbugs.gnu.org > > I did not read those 150 messages, and this code is uncommented in > startup.el: > > (lambda () > (expand-file-name > "init" > startup-init-directory)) > > Does anybody know whether this is just a typo? It isn't: the code later tries appending .el to the name. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 15 01:15:17 2020 Received: (at 45197) by debbugs.gnu.org; 15 Dec 2020 06:15:17 +0000 Received: from localhost ([127.0.0.1]:55100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp3cD-0005MR-AH for submit@debbugs.gnu.org; Tue, 15 Dec 2020 01:15:17 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kp3cB-0005MD-Hq for 45197@debbugs.gnu.org; Tue, 15 Dec 2020 01:15:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wBzVKWl8X4tT39lVv6+sGrBBQRr8NfsgBU+cIDEqYnI=; b=ciNAxdqRjcmIZY9Xn3R8KD1y0f 7WTGuZZZD0KeF5e0tfvYd1YM7vcPyQPLMZmQaISqIzJvhT3KfvvT7fqQGN4rqUAivDYHn6Tyv4MAH CH5+Y2Dl2uXx/9eU7/o+zHjg2pxZkG5IdiOvEnhBkRtUnqu6XMghsShXBEZaQ01TgOfg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kp3bv-0005jj-M3; Tue, 15 Dec 2020 07:15:08 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> <878sa0z50q.fsf@gnus.org> <83wnxkb7gn.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXm3t/LsqGXa1FF IRuyjnLNsJz///9pQGikAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+QMDwUjF+cjPi4AAAF0SURBVDjL bZNhjoQgDIUh0f90IheozAVkDrAi/h8Se/+rbCvgCmtNNHlf3iutqtRZGmD2S/jM3i+ruhXAxlJw DPxi7vqLFQzOtwA4aEF0AU9w1yfWEePcOLgxvESOGfg72DiIweYXnP1P1o0AzCDw/SgOkSvYBaTt ARzsInsHYT4BMdhTB0QjIZSuKXiOs3cG7PkDNuANEAEUAAIOIunOYZHoavJBAfGqCo7odssO8RwZ lKzJrSNJFZ/sJCP6ZkBnJ7qObLSAVMFeF2xkmwmGPevVkak26vUme4JdtYVOokrzWw2IkiVbbnQd UCyrth2YeE2y8zFG10bpfCewXY+sJz780Grl3SVbvF2U0tY8Gbg5fVtg65PX0iaVqPGI2Foghw3B ha55Bjb0A5b2dorv7qxQDnGsXU7O4vng/3Rc/PU2oBKdVAPAlMn7hUCZQtcPAc6/7ZpO2W5RqjeY +t4KsOmaVvPFmDLoV15POJJSjz3qH/gL3ftk1kEJMEAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAt MTItMTVUMDU6MzU6MjIrMDA6MDBX7kUSAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEyLTE1VDA1 OjM1OjIyKzAwOjAwJrP9rgAAAABJRU5ErkJggg== X-Now-Playing: Anna =?utf-8?Q?J=C3=A4rvinen's?= _Man var bland molnen_: "Nattmusik" Date: Tue, 15 Dec 2020 07:14:58 +0100 In-Reply-To: <83wnxkb7gn.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 14 Dec 2020 19:52:56 +0200") Message-ID: <87r1nr1tp9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: >> I did not read those 150 messages, and this code is uncommented in >> startup.el: >> >> (lambda () >> (expand-file-name >> "init" >> startup-init-directory)) >> >> Does anybody know whether this is [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45197 Cc: 45197@debbugs.gnu.org, tsuucat@icloud.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> I did not read those 150 messages, and this code is uncommented in >> startup.el: >> >> (lambda () >> (expand-file-name >> "init" >> startup-init-directory)) >> >> Does anybody know whether this is just a typo? > > It isn't: the code later tries appending .el to the name. The code flow isn't trivial to follow here, but this is the code: (when (and (eq user-init-file t) alternate-filename-function) (let ((alt-file (funcall alternate-filename-function))) (and (equal (file-name-extension alt-file) "el") (setq alt-file (file-name-sans-extension alt-file))) (unless init-file-name (setq init-file-name alt-file)) (load alt-file 'noerror 'nomessage))) ;; If we did not find the user's init file, set ;; user-init-file conclusively. Don't let it be ;; set from default.el. (when (eq user-init-file t) (setq user-init-file init-file-name))) alternate-filename-function is the lambda up there, so it's "/tmp/test-home/.config/emacs/init". So this always sets user-init-file to the .el-less file name. (Well, it would have even if the alternate file name had ended in ".el".) That makes sense for making a file name for `load' (so that it'll load the .elc file, if it exists), but setting `user-init-file' to that .el-less name sounds like the problem here? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 15 11:23:42 2020 Received: (at 45197) by debbugs.gnu.org; 15 Dec 2020 16:23:42 +0000 Received: from localhost ([127.0.0.1]:58930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpD6z-0003Ui-Hz for submit@debbugs.gnu.org; Tue, 15 Dec 2020 11:23:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpD6m-0003UJ-61 for 45197@debbugs.gnu.org; Tue, 15 Dec 2020 11:23:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53568) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpD6g-0003FU-QY; Tue, 15 Dec 2020 11:23:22 -0500 Received: from [176.228.60.248] (port=1555 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kpD6f-0007mM-K6; Tue, 15 Dec 2020 11:23:22 -0500 Date: Tue, 15 Dec 2020 18:23:14 +0200 Message-Id: <83a6ufavil.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87r1nr1tp9.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 15 Dec 2020 07:14:58 +0100) Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> <878sa0z50q.fsf@gnus.org> <83wnxkb7gn.fsf@gnu.org> <87r1nr1tp9.fsf@gnus.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45197 Cc: 45197@debbugs.gnu.org, tsuucat@icloud.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Cc: tsuucat@icloud.com, 45197@debbugs.gnu.org > Date: Tue, 15 Dec 2020 07:14:58 +0100 > > alternate-filename-function is the lambda up there, so it's > "/tmp/test-home/.config/emacs/init". So this always sets user-init-file > to the .el-less file name. (Well, it would have even if the alternate > file name had ended in ".el".) > > That makes sense for making a file name for `load' (so that it'll load > the .elc file, if it exists), but setting `user-init-file' to that > .el-less name sounds like the problem here? I'm not arguing against the fact that there's a bug, I'm just saying that there's code which was supposed to handle this, and I think that's where this should be fixed. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 15 20:48:10 2020 Received: (at 45197) by debbugs.gnu.org; 16 Dec 2020 01:48:10 +0000 Received: from localhost ([127.0.0.1]:59533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpLvG-0007t8-0j for submit@debbugs.gnu.org; Tue, 15 Dec 2020 20:48:10 -0500 Received: from pv50p00im-ztdg10021101.me.com ([17.58.6.44]:50365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpLvE-0007su-7m for 45197@debbugs.gnu.org; Tue, 15 Dec 2020 20:48:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1608083282; bh=TNrsltfWQIV4+ZxLRSBC/u919hi4GxLHQ0gP27a+qY4=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To; b=byKrqWLbaJdOyMsnMhMbWBoXVD516L2HVA752Hnbdy4ah3PIT4nao40YXn4XkaFtg aDwEtQeD7kU5iqd99aBNTeyjWdP73M+03Q9MPJIzqqMWoFhOH1nXVmNCbU0iVmeULT Q+8nOSb58HdJClTrq432FNi2jW2j7FhKRFWB3nUfuM9V9NdD7W4eDL/5peYa13zR4w wt1Tz4n9zpgKLIZSE8qCPe5rKoJ7KWUu0xKXemxmVt2FiyLL8/Br1OId+lgarkd2xy K8XgGzpUDoJZOKgeE7hQi4trjl2KDFFV6VeEzg7dlcQSpp4cgBn9Mhb0HATW+uEQ8b 071MrHWevDbtA== Received: from [133.51.95.146] (unknown [133.51.95.146]) by pv50p00im-ztdg10021101.me.com (Postfix) with ESMTPSA id 5B31B180EA5; Wed, 16 Dec 2020 01:48:01 +0000 (UTC) From: tsuucat Message-Id: Content-Type: multipart/mixed; boundary="Apple-Mail=_F402F08A-CAD4-4245-ADC4-F53D908688EA" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) Date: Wed, 16 Dec 2020 10:47:59 +0900 In-Reply-To: <83a6ufavil.fsf@gnu.org> To: Eli Zaretskii References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> <878sa0z50q.fsf@gnus.org> <83wnxkb7gn.fsf@gnu.org> <87r1nr1tp9.fsf@gnus.org> <83a6ufavil.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2020-12-15_13:2020-12-15, 2020-12-15 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2012160008 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45197 Cc: Lars Ingebrigtsen , 45197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail=_F402F08A-CAD4-4245-ADC4-F53D908688EA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 (unless init-file-name (setq init-file-name alt-file)) is added in = https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D4118297ae2fab4886= b20d193ba511a229637aea3. Before this commit, I think =E2=80=98.emacs=E2=80=99 is always used for = =E2=80=98user-init-file=E2=80=99 value if init file is missing. (and (equal (file-name-extension alt-file) "el") (setq alt-file (file-name-sans-extension = alt-file))) ... (load alt-file 'noerror 'nomessage))) should be also changed in the commit to use =E2=80=9Cinit.el=E2=80=9D = not =E2=80=9Cinit". > 2020/12/16 1:23=E3=80=81Eli Zaretskii : >=20 >> From: Lars Ingebrigtsen >> Cc: tsuucat@icloud.com, 45197@debbugs.gnu.org >> Date: Tue, 15 Dec 2020 07:14:58 +0100 >>=20 >> alternate-filename-function is the lambda up there, so it's >> "/tmp/test-home/.config/emacs/init". So this always sets = user-init-file >> to the .el-less file name. (Well, it would have even if the = alternate >> file name had ended in ".el".) >>=20 >> That makes sense for making a file name for `load' (so that it'll = load >> the .elc file, if it exists), but setting `user-init-file' to that >> .el-less name sounds like the problem here? >=20 > I'm not arguing against the fact that there's a bug, I'm just saying > that there's code which was supposed to handle this, and I think > that's where this should be fixed. I can=E2=80=99t find such a code. I made a patch to set 'user-init-file' value to init=E2=80=9D.el" for = XDG convention users=20 who do not have an init file. (But alternate-filename-function is only used for "init.el=E2=80=9D so=20= ...(if (equal (file-name-extension alt-file) "el") (file-name-sans-extension alt-file) alt-file)... may be redundant.) -- tsuucat --Apple-Mail=_F402F08A-CAD4-4245-ADC4-F53D908688EA Content-Disposition: attachment; filename=0001-Fix-user-init-file-value-when-file-is-missing-in-XDG.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Fix-user-init-file-value-when-file-is-missing-in-XDG.patch" Content-Transfer-Encoding: quoted-printable =46rom=207373c4d4def8435de21a228bbce3aca29a5982bf=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Masahiro=20Nakamura=20=0A= Date:=20Wed,=2016=20Dec=202020=2009:24:41=20+0900=0ASubject:=20[PATCH]=20= Fix=20'user-init-file'=20value=20when=20file=20is=20missing=20in=20XDG=0A= =20convention=0A=0A*=20lisp/startup.el=20(startup--load-user-init-file):=20= Do=20not=20remove=20.el=0Aextension=20from=20alt-file.=0A(command-line):=20= Pass=20'init.el',=20with=20an=20explicit=20.el=20extension,=20to=0A= startup--load-user-init-file.=20=20This=20sets=20'user-init-file'=20= value=20to=0Ainit.el=20for=20XDG=20convention=20users=20who=20do=20not=20= have=20an=20init=20file.=0A---=0A=20lisp/startup.el=20|=2010=20= ++++++----=0A=201=20file=20changed,=206=20insertions(+),=204=20= deletions(-)=0A=0Adiff=20--git=20a/lisp/startup.el=20b/lisp/startup.el=0A= index=209f67dfde12..c470170fb0=20100644=0A---=20a/lisp/startup.el=0A+++=20= b/lisp/startup.el=0A@@=20-949,11=20+949,13=20@@=20= startup--load-user-init-file=0A=20=0A=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(when=20(and=20(eq=20user-init-file=20t)=20= alternate-filename-function)=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20(let=20((alt-file=20(funcall=20alternate-filename-function)))=0A= -=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(and=20(equal=20= (file-name-extension=20alt-file)=20"el")=0A-=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20(setq=20alt-file=20= (file-name-sans-extension=20alt-file)))=0A=20=09=09=20=20(unless=20= init-file-name=0A=20=09=09=20=20=20=20(setq=20init-file-name=20= alt-file))=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= (load=20alt-file=20'noerror=20'nomessage)))=0A+=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20(load=20(if=20(equal=20(file-name-extension=20= alt-file)=0A+=09=09=09=09=20"el")=0A+=09=09=09=20=20=20=20= (file-name-sans-extension=20alt-file)=0A+=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20alt-file)=0A+=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20'noerror=20= 'nomessage)))=0A=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20;;=20= If=20we=20did=20not=20find=20the=20user's=20init=20file,=20set=0A=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20;;=20user-init-file=20conclusively.=20= =20Don't=20let=20it=20be=0A@@=20-1382,7=20+1384,7=20@@=20command-line=0A=20= =20=20=20=20=20=20=20=20=20"~/.emacs")))=0A=20=20=20=20=20=20(lambda=20= ()=0A=20=20=20=20=20=20=20=20(expand-file-name=0A-=20=20=20=20=20=20=20=20= "init"=0A+=20=20=20=20=20=20=20=20"init.el"=0A=20=20=20=20=20=20=20=20=20= startup-init-directory))=0A=20=20=20=20=20=20(not=20= inhibit-default-init))=0A=20=0A--=20=0A2.28.0=0A=0A= --Apple-Mail=_F402F08A-CAD4-4245-ADC4-F53D908688EA-- From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 17 06:18:27 2020 Received: (at 45197) by debbugs.gnu.org; 17 Dec 2020 11:18:27 +0000 Received: from localhost ([127.0.0.1]:34825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprIh-0000qn-HX for submit@debbugs.gnu.org; Thu, 17 Dec 2020 06:18:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprIg-0000qX-Eg for 45197@debbugs.gnu.org; Thu, 17 Dec 2020 06:18:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=93b8wDjzwxIba4jeJT0/r8sx9roQU94INpCuH8tX2Mg=; b=hAh0/ftFf6dlrRAD1UKVGPeEjs gRLuXGMKuNw43TWEk2qa1ZKnxvtQKT/9Y8yfK5pehu3SEKaqTBBlvX1BMc/H6/8Ct/X3w0FMBZ4T+ nldmuTS3OJHcfGcgXGtB9i6NTXygQL3Jn4iZ9T+iJ9jT0xOF8plWIDRhCfFzCJzzgumg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kprIW-0006no-Mf; Thu, 17 Dec 2020 12:18:20 +0100 From: Lars Ingebrigtsen To: tsuucat Subject: Re: bug#45197: Saving customizations makes ~/.config/emacs/init (no .el extension) References: <6334E702-C5A5-40A8-98F9-EE7C7805E7E3@icloud.com> <878sa0z50q.fsf@gnus.org> <83wnxkb7gn.fsf@gnu.org> <87r1nr1tp9.fsf@gnus.org> <83a6ufavil.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEVMPz6tSELAp5r/ ///wg2LlAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+QMEQsKDJNYZY8AAAGdSURBVCjPRZHNatwwFIWP xNh0tHKHcRhm5ZYQEj+FYlIoWanFGmhW3TQkfgrHq5KVY0JoZ+UGzxDfp+yRXajA+H7cc390BAAL u61xASRwib6yhsAvnE/eO7sJUQJEnudmQRiq+BDgG0inPsi8L7Ew6PNZVm6YyXIzyZgyyP41KIHl f1nu2DqduqXldsinOc6XKWU5eqgAWalcFfaMXFpmu/1bAe4UIdr9vsK7FdYTOM7PcsrU2qKQMVzh Lqy+KDZNpn8w4jD1eiESLhfzdy0iQeGMSPN49hNxnUA+5yzVinkLqc9NvYaeamQ4N00rzZx5oywL 8ED4paVOpKvuFeFRy8Pd8WmJyOLlpchZ2i1hmDkyVOUr4TmAsg6dIPaES91adD1Swlj09KGDP/Go Dl9bwkcjR2YO07OsYhkiVAOWyXvoWEbgZqB1Cf50Mn6BPNvwYomWkQ1axdDhKb7cEYLDgNXKw3+f QWldQvX4EBJFbBLEY3rLIquDPycyZLBwzQzjVLOaQfoAeYDtXgZOpW9iUe0nZ+krjZNKpJ3h8Bfz d5OVvNxeIQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMi0xN1QxMToxMDoxMiswMDowML0ynvcA AAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTItMTdUMTE6MTA6MTIrMDA6MDDMbyZLAAAAAElFTkSu QmCC X-Now-Playing: Themselves's _CrownsDown_: "oversleeping" Date: Thu, 17 Dec 2020 12:18:15 +0100 In-Reply-To: (tsuucat@icloud.com's message of "Wed, 16 Dec 2020 10:47:59 +0900") Message-ID: <87y2hwllzc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tsuucat writes: > (unless init-file-name > (setq init-file-name alt-file)) > is added > in https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=4118297ae2fab4886b20d193ba511a229637aea3. > > Before this commit, I th [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45197 Cc: Eli Zaretskii , 45197@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tsuucat writes: > (unless init-file-name > (setq init-file-name alt-file)) > is added > in https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D4118297ae2fab= 4886b20d193ba511a229637aea3. > > Before this commit, I think =E2=80=98.emacs=E2=80=99 is always used for = =E2=80=98user-init-file=E2=80=99 value if > init file is missing. > > (and (equal (file-name-extension alt-file) "el") > (setq alt-file (file-name-sans-extension alt-file))) > ... > (load alt-file 'noerror 'nomessage))) > > should be also changed in the commit to use =E2=80=9Cinit.el=E2=80=9D not= =E2=80=9Cinit". Yes, I think the code here is just confused -- alt-file is "init" by default, but since it's passed in as a closure, pretty much anything can be returned, right? The code does the right thing in stripping the ".el" before passing it to `load', because then `load' will load init.elc if it exists. But we can't add back ".el" before setting init-file-name, because the alt-file may legitimately be ".emacs", and should not then be forced to ".emacs.el". So I think the "init" in the alt-file closure is the problem: It should be "init.el", and init-file-name should be set to that verbatim. (But the ".el" should still be stripped before doing the `load'.) I think. I've now done this change in Emacs 28, but I'm not super-confident about it -- there's many subtleties here... --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 17 06:18:40 2020 Received: (at control) by debbugs.gnu.org; 17 Dec 2020 11:18:40 +0000 Received: from localhost ([127.0.0.1]:34828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprIt-0000rI-Sh for submit@debbugs.gnu.org; Thu, 17 Dec 2020 06:18:40 -0500 Received: from quimby.gnus.org ([95.216.78.240]:50614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kprIr-0000r4-G3 for control@debbugs.gnu.org; Thu, 17 Dec 2020 06:18:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rqJL4FO2XkvVpWSo/4msjiuoufX9lLaiBGMKJai+Zf8=; b=tutdo+SI7NnJj3gZBBLhQjX4bE 4U5Itv9lb3/AjFVcKk3i3b8OLGXIAJYZ2lFHHTVj2X4UUCWc+0T79IOrAwizxesk+mjfER5do2kie KxwCLJWz+vUPQzJuXhHvfKgPshkJOPXCr1O9gx9uRKyLvvW8eNJtC87kGgg7sUzi3Uuk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kprIj-0006o9-TR for control@debbugs.gnu.org; Thu, 17 Dec 2020 12:18:31 +0100 Date: Thu, 17 Dec 2020 12:18:28 +0100 Message-Id: <87wnxgllyz.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45197 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 45197 fixed close 45197 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 45197 fixed close 45197 28.1 quit From unknown Fri Jun 20 18:20:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 Jan 2021 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator