From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: hork point in ~/.emacs: needing emacs.pdmp & other Date: Mon, 31 Aug 2020 07:30:30 -0400 Message-ID: <3c28d97e-c389-b762-6710-c1e5df8d51ab@mousecar.com> References: <8463a064-a5b3-23c6-1589-a6cc5f899b95@mousecar.com> <83o8mvyqeg.fsf@gnu.org> <83h7snymee.fsf@gnu.org> <25d1778e-99c9-4d8e-faa2-c89b8e261ce8@mousecar.com> <83eenqzz4v.fsf@gnu.org> <831rjpzkj2.fsf@gnu.org> <3608372c-ddcf-c089-1b8a-e344340d591c@mousecar.com> <83v9h1xqut.fsf@gnu.org> Reply-To: gebser@mousecar.com 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="12032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 31 13:30:58 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 1kCi1Z-0002wx-CQ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 Aug 2020 13:30:57 +0200 Original-Received: from localhost ([::1]:51428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCi1Y-0000PT-CV for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 Aug 2020 07:30:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCi1E-0000Ot-Id for help-gnu-emacs@gnu.org; Mon, 31 Aug 2020 07:30:36 -0400 Original-Received: from mout.perfora.net ([74.208.4.194]:34567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCi1B-0003iT-UB for help-gnu-emacs@gnu.org; Mon, 31 Aug 2020 07:30:36 -0400 Original-Received: from [192.168.0.17] ([96.27.75.237]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MkZD0-1krq4P2N5i-00m3kf for ; Mon, 31 Aug 2020 13:30:31 +0200 In-Reply-To: <83v9h1xqut.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:FTr7/o5DgRa7ptUxtU9s8B4jsdg2k5FCCyeI2G8ApgxCI3ldA28 e1cJY0U80a1Mdpd5PjBE6X9or3Ii6+SiZIFNQF8u9jw70r4dt2oL1Y4TqWBr40VWcax2PPj XemXBieJfhoXFRd/074f3Cu7EPZ5xcVGFzvy/4MLNu+6gvfER3JcMhwJN0mYPGUtvN+fdkr S9LXct9Jm7acb/dj1Gxuw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Rt0QHeEK6IQ=:YRKLc5nbzh+4gz0pLzR16i lPv3yAqM/IMKqHwYXwJ0urTGlc4YOcF2F49P/V1WQgDTDkweW7FDQ/xnC5e138/P6VxGFaaHn 6hPB1M4B1PWlbHtRbFB+9L141iQEV4fFnt+9Rif+L+lCBiAZpHNRwPNgZtRsLg3Yw0I71Ebpt HGjck5pX7emTw6k6XeangBhR7g4qQhsUAQmkU8DEKJ78UYA+sMF3P6cLi61XiIorvAldupWLh WbdC4S2lg4K5ApFxxBiF36PnEruNRGDpfT7hK1hxrrxRSxs1yTLuktQvdTrSlhgaB43JenruU PNuGefa1kCtiVCB69X3KOh+tsEW1aaRQwhSCZgk2DSWcqm0q7Yrj5wAmU1l8wfBBLXaPLQ6nf j3Mix7VV3jdUitB4G7eOA9bkt6tReYPiVd3oIDyfME32D6TrbI0dhHNacNoOeSXTjazSPGnES h8r2J+bDizlpPCYAZEWxC91AVzZAYUCkfU35ZCTo+9Eyr1fcCgum0uzxQgEJU5q+ErQA2qOQ9 XQGyi3bo2Jh+x2w4Xi1t2E6OleY2q8QctEa8Eym5/qzbjcCUl3BrUUu8tjWEUmi35yetPqEjr +BVJmNwYQdzLCMY3oTC4y5Z+tfu2aH7PHe/LEuS9pKi+DI22hIOJvTcERep6e58XRJFmolPZW gxjMD/N343CnydiEIIe9y+v3dVmkxzXo+d5PYGjCKy5Y0wKT6um9ixUoocyJmW3XH6DQhxOyz rujrzABkQea/BC+aYIMrpjv/VUOVYuLydZteEwlcXwrOAk08BnECFl3VKPYFLiPM+NHZlQz1 Received-SPF: none client-ip=74.208.4.194; envelope-from=gebser@mousecar.com; helo=mout.perfora.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/31 07:30:32 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.13, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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:123865 Archived-At: On 8/29/20 2:13 PM, Eli Zaretskii wrote: >> From: ken >> Date: Sat, 29 Aug 2020 12:02:51 -0400 >> >> On 8/29/20 8:47 AM, Eli Zaretskii wrote: >>>> From: ken >>>> Date: Sat, 29 Aug 2020 08:24:01 -0400 >>>> >>>> On 8/28/20 9:19 AM, Eli Zaretskii wrote: >>>>>> From: ken >>>>>> Date: Fri, 28 Aug 2020 09:02:39 -0400 >>>>>> >>>>>>>> "rpm -ql emacs|grep emacs.pdmp" returns nothing. >>>>> What does "rpm -ql emacs" display? >>>> # rpm -ql emacs >>>> /etc/skel/.gnu-emacs >>>> /usr/bin/ebrowse >>>> /usr/bin/emacs >>>> /usr/bin/emacsclient >>>> /usr/lib/emacs >>>> /usr/lib/emacs/27.1 >>>> /usr/lib/emacs/27.1/x86_64-suse-linux >>>> /usr/lib/emacs/27.1/x86_64-suse-linux/hexl >>>> /usr/lib/emacs/27.1/x86_64-suse-linux/rcs2log >>>> /usr/lib/emacs/27.1/x86_64-suse-linux/update-game-score >>> So they use /usr/lib/emacs/27.1/x86_64-suse-linux/ instead of >>> /usr/libexec/emacs/27.1/x86_64-suse-linux/. I believe this is the old >>> standard. >>> >>> OK, but this RPM is AFAIU simply busted: they didn't include the >>> emacs.pdmp file, which is now a must, and AFAIU should have been in >>> /usr/lib/emacs/27.1/x86_64-suse-linux/. >> There is this: >> >> # ll /usr/lib/emacs/27.1/x86_64-suse-linux >> total 30812 >> -rw-r--r-- 1 root root 10667896 Aug 20 20:20 emacs-gtk.pdmp >> -rw-r--r-- 1 root root 10158064 Aug 20 20:20 emacs-nox.pdmp >> -rw-r--r-- 1 root root 10656232 Aug 20 20:20 emacs-x11.pdmp >> -rwxr-xr-x 1 root root    14576 Aug 20 20:20 hexl >> -rwxr-xr-x 1 root root    21156 Aug 20 20:20 rcs2log >> -rwxr-xr-x 1 root root    23016 Aug 20 20:20 update-game-score > But these *.pdmp files were not in the RPM whose contents you've > shown. So where did they come from? # pwd; rpm -qf *.pdmp /usr/lib/emacs/27.1/x86_64-suse-linux emacs-x11-27.1-2.1.x86_64 emacs-nox-27.1-2.1.x86_64 emacs-x11-27.1-2.1.x86_64 And evidently, emacs is broken out into several packages: # rpm -qa|grep emacs emacs-x11-27.1-2.1.x86_64 emacs-info-27.1-2.1.noarch emacs-apel-10.8-2.6.noarch emacs-nox-27.1-2.1.x86_64 emacs-27.1-2.1.x86_64 emacs-el-27.1-2.1.noarch emacs-auctex-12.2-1.1.noarch Here's brief info on those packages: # for f in $(rpm -qa|grep emacs); do echo RPM info on $f :; rpm -qi $f; echo =================; done RPM info on emacs-x11-27.1-2.1.x86_64 : Name        : emacs-x11 Version     : 27.1 Release     : 2.1 Architecture: x86_64 Install Date: Fri Aug 28 08:47:46 2020 Group       : Productivity/Text/Editors Size        : 33929391 License     : GPL-3.0-or-later Signature   : RSA/SHA256, Thu Aug 20 20:22:47 2020, Key ID b88b2fd43dbdc284 Source RPM  : emacs-27.1-2.1.src.rpm Build Date  : Thu Aug 20 20:00:15 2020 Build Host  : lamb18 Packager    : https://bugs.opensuse.org Vendor      : openSUSE URL         : http://www.gnu.org/software/emacs/ Summary     : GNU Emacs: Emacs binary with X Window System Support Description : Call it Emacs Love it or leave it. This is the Emacs binary with X Window System Support. Distribution: openSUSE Tumbleweed ================= RPM info on emacs-info-27.1-2.1.noarch : Name        : emacs-info Version     : 27.1 Release     : 2.1 Architecture: noarch Install Date: Fri Aug 28 08:31:38 2020 Group       : Productivity/Text/Editors Size        : 4872696 License     : GPL-3.0-or-later Signature   : RSA/SHA256, Thu Aug 20 20:22:47 2020, Key ID b88b2fd43dbdc284 Source RPM  : emacs-27.1-2.1.src.rpm Build Date  : Thu Aug 20 20:00:15 2020 Build Host  : lamb18 Packager    : https://bugs.opensuse.org Vendor      : openSUSE URL         : http://www.gnu.org/software/emacs/ Summary     : Info files for GNU Emacs Description : This package contains all the Info files for GNU Emacs. These files can be read online with GNU Emacs. They describe Emacs and some of its modes. Distribution: openSUSE Tumbleweed ================= RPM info on emacs-apel-10.8-2.6.noarch : Name        : emacs-apel Version     : 10.8 Release     : 2.6 Architecture: noarch Install Date: Thu Aug  6 01:59:37 2020 Group       : Productivity/Editors/Emacs Size        : 472441 License     : GPL-2.0-or-later Signature   : RSA/SHA256, Sat May 30 22:29:11 2020, Key ID b88b2fd43dbdc284 Source RPM  : emacs-apel-10.8-2.6.src.rpm Build Date  : Sat May 30 22:29:01 2020 Build Host  : lamb60 Packager    : https://bugs.opensuse.org Vendor      : openSUSE URL         : http://git.chise.org/elisp/apel Summary     : A Portable Emacs Library Description : A Portable Emacs Library Distribution: openSUSE Tumbleweed ================= RPM info on emacs-nox-27.1-2.1.x86_64 : Name        : emacs-nox Version     : 27.1 Release     : 2.1 Architecture: x86_64 Install Date: Fri Aug 28 08:47:52 2020 Group       : Productivity/Text/Editors Size        : 15671224 License     : GPL-3.0-or-later Signature   : RSA/SHA256, Thu Aug 20 20:22:47 2020, Key ID b88b2fd43dbdc284 Source RPM  : emacs-27.1-2.1.src.rpm Build Date  : Thu Aug 20 20:00:15 2020 Build Host  : lamb18 Packager    : https://bugs.opensuse.org Vendor      : openSUSE URL         : http://www.gnu.org/software/emacs/ Summary     : GNU Emacs-nox: An Emacs Binary without X Window System Support Description : Eight Megabytes And Constantly Swapping. Call it emacs-nox Love it or leave it. Distribution: openSUSE Tumbleweed ================= RPM info on emacs-27.1-2.1.x86_64 : Name        : emacs Version     : 27.1 Release     : 2.1 Architecture: x86_64 Install Date: Fri Aug 28 08:47:04 2020 Group       : Productivity/Text/Editors Size        : 74741020 License     : GPL-3.0-or-later Signature   : RSA/SHA256, Thu Aug 20 20:22:46 2020, Key ID b88b2fd43dbdc284 Source RPM  : emacs-27.1-2.1.src.rpm Build Date  : Thu Aug 20 20:00:15 2020 Build Host  : lamb18 Packager    : https://bugs.opensuse.org Vendor      : openSUSE URL         : http://www.gnu.org/software/emacs/ Summary     : GNU Emacs Base Package Description : Basic package for the GNU Emacs editor. Requires emacs-x11 or emacs-nox. Distribution: openSUSE Tumbleweed ================= RPM info on emacs-el-27.1-2.1.noarch : Name        : emacs-el Version     : 27.1 Release     : 2.1 Architecture: noarch Install Date: Fri Aug 28 08:48:42 2020 Group       : Productivity/Text/Editors Size        : 16032458 License     : GPL-3.0-or-later Signature   : RSA/SHA256, Thu Aug 20 20:22:46 2020, Key ID b88b2fd43dbdc284 Source RPM  : emacs-27.1-2.1.src.rpm Build Date  : Thu Aug 20 20:00:15 2020 Build Host  : lamb18 Packager    : https://bugs.opensuse.org Vendor      : openSUSE URL         : http://www.gnu.org/software/emacs/ Summary     : Several Lisp Files for GNU Emacs Description : Several Lisp files not needed for running GNU Emacs. Most of these files are pre-byte compiled and therefore not necessary. Distribution: openSUSE Tumbleweed ================= RPM info on emacs-auctex-12.2-1.1.noarch : Name        : emacs-auctex Version     : 12.2 Release     : 1.1 Architecture: noarch Install Date: Tue Aug 18 16:30:15 2020 Group       : Productivity/Editors/Emacs Size        : 33096040 License     : GPL-2.0-or-later Signature   : RSA/SHA256, Sat Aug 15 16:05:36 2020, Key ID b88b2fd43dbdc284 Source RPM  : emacs-auctex-12.2-1.1.src.rpm Build Date  : Sat Aug 15 16:01:15 2020 Build Host  : lamb51 Packager    : https://bugs.opensuse.org Vendor      : openSUSE URL         : http://www.gnu.org/software/auctex Summary     : AUC TeX: An Emacs Extension Description : These macros make it easier for you to write TeX documents with GNU Emacs.    Documentation can be found under: /usr/share/doc/packages/emacs-auctex/ and in the dvi files math-ref.dvi and tex-ref.dvi (reference cards) and in the info file auctex in emacs info-mode. AuC TeX is integrated in XEmacs 19.15 and higher, so these packages may not be installed concurrently.    Note that the binary formats of the byte-compiled lisp files of the two emacs editors are incompatible, so you cannot use this package for XEmacs. Distribution: openSUSE Tumbleweed ================= > > And your Emacs executable is named just 'emacs', so it is not clear > which of the *.pdmp files belongs to it. maybe try renaming them one > by one to emacs.pdmp and see if one of them stops those "Loading > FOO..." messages from appearing. It looks like one purpose of the pdmp fle is to interface with the system's window manager.  The window manager on this system is gnome, so it would seem that either emacs-gtk.pdmp or emacs-x11.pdmp, but I haven't been able to determine which.  And yeah, I thought to create a symlink from one of those to emacs.pdmp, but then read this from /usr/share/doc/packages/emacs/doc/NEWS: ** Emacs now uses a "portable dumper" instead of unexec. This improves compatibility with memory allocation on modern systems, and in particular better supports the Address Space Layout Randomization (ASLR) feature, a security technique used by most modern operating systems. When built with the portable dumping support (which is the default), Emacs looks for the "emacs.pdmp" file, generated during the build, in its data directory at startup, and loads the dumped state from there. The new command-line argument '--dump-file=FILE' allows specifying a non-default ".pdmp" file to load the state from; see the node "(emacs) Initial Options" in the Emacs manual for more information. An Emacs started via a dump file can create a new dump file only if it was invoked with the '-batch' option.  (This is a temporary limitation; we plan on lifting it in a future release.) Although the portable dumper has been tested, it may have a bug on unusual platforms.  If you require traditional unexec dumping you can use the configure-time option '--with-dumping=unexec'; however, please file a bug report describing the situation, as unexec dumping is deprecated, and we plan on removing it in some future release. So trying emacs --dump-file=/usr/lib/emacs/27.1/x86_64-suse-linux/emacs-gtk.pdmp --debug-init & I get just Warning: game dir ’/var/games/emacs’: Permission denied Loading desktop...done Loading saveplace...done ... Then it shows loading my own files into emacs buffers, but then some errors Error during redisplay: (jit-lock-function 1) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 501) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 1001) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 3006) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 2321) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 2821) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 2320) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 2314) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 3506) signaled (void-variable bufname) Then messages about what tramp's doing, then more errors Error during redisplay: (jit-lock-function 1) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 501) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 1001) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 1501) signaled (void-variable bufname) Then more messages about tramp, then more errors No docstring slot for jka-compr-handler For information about GNU Emacs and the GNU system, type C-h C-a. Error during redisplay: (jit-lock-function 1281) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 1781) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 2149) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 4006) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 3122) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 3622) signaled (void-variable bufname) Error during redisplay: (jit-lock-function 80854) signaled (void-variable bufname) But emacs seems to be working, and from what I can see in just five minutes, my ~/.emacs is also working now..