unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: rrandresf@gmail.com (Andrés Ramírez)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rrandresf@gmail.com, 14120@debbugs.gnu.org
Subject: bug#14120: invalid load-history in emacsen that CANNOT_DUMP
Date: Mon, 17 Feb 2020 13:34:51 +0000	[thread overview]
Message-ID: <861rqtjq10.fsf@gmail.com> (raw)
In-Reply-To: <jwv8v4zfp1g.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 03 Apr 2013 14:29:40 -0400")

Hi Stefan.

> FWIW, CANNOT_DUMP is a compilation option that is only meant to be used
> as a temporary measure.  It suffers from various shortcomings (other
> than the obvious startup cost).

> So before we start trying to fix them, I'd like to know why you need to
> use CANNOT_DUMP.

I use CANNOT_DUMP on a daily basis on emacs 23.4 (the best emacs for
poor machines. it renders very quick. I would like to profile It against
latest emacs which I also use) It was compiled on on November 13 2019. I have suffered
the same issue as Templeton. So probably I have done the same workaround
as Templeton. See my function below:
--8<---------------cut here---------------start------------->8---
      (defun load-history-filename-element (file-regexp)
        "Get the first elt of `load-history' whose car matches FILE-REGEXP.
Return nil if there isn't one.
NOTE2ME: UPDATE stringp condition cos of error on tramp"
        (let* ((loads load-history)
               (load-elt (and loads (car loads))))
          (save-match-data
            (while (and loads
                        (or (null (and (car load-elt) (stringp (car load-elt))))
                            (not (string-match file-regexp (car load-elt)))))
              (setq loads (cdr loads)
                    load-elt (and loads (car loads)))))
          load-elt))
--8<---------------cut here---------------end--------------->8---

I have not reported the bug because. Emacs23 is very old emacs. And Also
most of Emacs developers believe It cann't compile with glibc 2.30. But
thanks to Gentoo packagers It does (Those guys have backported most of
the changes needed for Emacs23 to compile[1]. I have also upgraded tramp
built-in version there to 2.3.1. On x86 it compiles really fine. But on
armv7h It needs the CANNOT_DUMP compilation option. Because of an issue with
glibc on compilation it cores-dump).

I am answering the email probably just for the record. A couple of years
ago I was compiling very old code from nantuncked clipper (dbase like Prg
program). And I had run emacs20 from within DOS on dosbox (an
emulator) At that time. Anyone never knows ;).

Best Regards
[1] https://gitweb.gentoo.org/repo/gentoo.git/plain/app-editors/emacs/emacs-23.4-r14.ebuild





  parent reply	other threads:[~2020-02-17 13:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01 22:47 bug#14120: invalid load-history in emacsen that CANNOT_DUMP BT Templeton
2013-04-03 18:29 ` Stefan Monnier
2019-09-06  0:09   ` Glenn Morris
2020-02-17 13:34   ` Andrés Ramírez [this message]
2020-02-17 15:09     ` Stefan Monnier
2020-02-17 17:14       ` andrés ramírez
2020-02-17 17:46         ` Stefan Monnier
2020-02-18  1:01           ` andrés ramírez
2020-02-18  1:34             ` andrés ramírez
2020-02-18 13:40               ` Stefan Monnier
2020-02-18 13:50                 ` andrés ramírez
2020-02-16 20:55 ` bug#14120: [Robert Weiner] Emacs history selection non-string arguments causing failures for a long time Stefan Monnier
2020-02-17  1:52   ` Stefan Monnier
2020-02-17  2:22     ` Robert Weiner
2020-02-17  3:18     ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861rqtjq10.fsf@gmail.com \
    --to=rrandresf@gmail.com \
    --cc=14120@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).