From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Jos=C3=A9_Manuel_Garc=C3=ADa-Patos?= Newsgroups: gmane.emacs.help Subject: Re: Emacs 27.1 - Issue with pdumper Date: Fri, 28 Aug 2020 09:38:42 +0200 Message-ID: <20200828073842.GA6136@cervantes.ciudades-secretas.net> References: <20200827213233.GA2558@cervantes.ciudades-secretas.net> <83y2lzz46h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30226"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 28 09:39:12 2020 Return-path: Envelope-to: geh-help-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 1kBYyd-0007mF-Qy for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 09:39:11 +0200 Original-Received: from localhost ([::1]:49504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBYyc-0004YK-Ss for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 03:39:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBYyJ-0004Y8-St for help-gnu-emacs@gnu.org; Fri, 28 Aug 2020 03:38:52 -0400 Original-Received: from cpanel52.fastsecurehost.com ([92.51.247.56]:53506) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBYyI-0008Ju-0U for help-gnu-emacs@gnu.org; Fri, 28 Aug 2020 03:38:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gesaku.es; s=default; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: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=vw/tJdGDETa5KguewPqPECCg5e6SY4ZXHZqeOc+2PXI=; b=WbO3Ab73rwTnDeq6RfLM+Td5HB eMXmwah/BTsXt6ZVxkUtJZ5SOY+L1cvoUNYlMmkNobEFPiV8tXEJOA8EOUYstdq3EfGd2EVL3OLPg z0qHh0Gh16QusfsEqngsiapcNfc/C+/A3hJ6c19jVlffAc27Dx87u9Smp1ho7ZwEieyPvEfdS3kdB G/dxCfHmFcCf8z/2Wxq194/4g2MkW9XdIRWpoCYINYdPmRXiINTcB0Uuhq3z2V8xW4Q7eGlRRb9fW 6iA3pmuEGfMjbO2+Y+TCMdMQFzgf1SoY2Rdv4rMsI3/kO8+hhWVZ9e2kNFOwykySxdYoCSHOFBnnn Kafcrr7w==; X-fastsecurehost-MailScanner-From: jm.inform@gesaku.es X-fastsecurehost-MailScanner: Found to be clean X-fastsecurehost-MailScanner-ID: 1kBYyB-00H9H1-GC X-fastsecurehost-MailScanner-Information: Please contact the ISP for more information Original-Received: from [85.158.168.121] (port=59996 helo=cervantes.ciudades-secretas.net) by cpanel52.fastsecurehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kBYyB-00H9H1-GC for help-gnu-emacs@gnu.org; Fri, 28 Aug 2020 08:38:43 +0100 Content-Disposition: inline In-Reply-To: <83y2lzz46h.fsf@gnu.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel52.fastsecurehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gesaku.es X-Get-Message-Sender-Via: cpanel52.fastsecurehost.com: authenticated_id: jm.inform@gesaku.es X-Authenticated-Sender: cpanel52.fastsecurehost.com: jm.inform@gesaku.es Received-SPF: pass client-ip=92.51.247.56; envelope-from=jm.inform@gesaku.es; helo=cpanel52.fastsecurehost.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/28 03:38:48 X-ACL-Warn: Detected OS = Linux 3.1-3.10 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123816 Archived-At: Eli Zaretskii escribió > That's not my reading of the code. How do you see that Emacs looks > for emacs.pdmp before looking for BASENAME_OF_EMACS.pdmp? My reading > of the code is that we do the exact opposite: emacs.pdmp is looked for > as the last resort. The way I see it, the current order is: (1) --dump-file=FILE command-line option (2) .pdmp (in the same directory as the executable) (3) emacs.pdmp (in PATH_EXEC) (4) .pdmp in PATH_EXEC Personally, I don't see the point of (2), but if it's there, I'm sure there is a reason. My proposal is to swap (3) and (4). (3') .pdmp in PATH_EXEC (4') emacs.pdmp That's my actual set-up: emacs-no-x11 goes through (3') and regular emacs goes through (4'). With the current order, emacs.pdmp would be found in (3), (4) would never be executed and I would get the error I mentioned when I tried to run emacs-no-x11. Regular emacs would not be affected either way, because it is the default. You might say: “You can use (2), too.” Yes, but leaving dump files in /usr/bin is not as clean a solution as leaving them where they belong. Even the comment in the code hints at that: /* Finally, look for basename(argv0)+".pdmp" in PATH_EXEC. This way, they can rename both the executable and its pdump file in PATH_EXEC, and have several Emacs configurations in the same versioned libexec subdirectory. */ All the best. -- José Manuel García-Patos Madrid