unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34707: Failure to find the associated pdump file
@ 2019-03-02  3:27 Richard Stallman
  2019-03-02  7:11 ` Eli Zaretskii
  2019-06-17 18:56 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 15+ messages in thread
From: Richard Stallman @ 2019-03-02  3:27 UTC (permalink / raw)
  To: 34707

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

I have a symlink from bin/emacs to emacs-git/build-feb-24/src/emacs.
It contains master from Feb 24, built.

When I run that by typing `emacs', with some other directory current,
it crashes: it gets error and exits when it tries to run
tty-set-up-initial-frame-faces, from init_display.
That is supposed to have been set up by associated Lisp files
which have not been run.

I think the cause is that Emacs failed to find the pdump file.

    Apparently that failure gives no error message!
    It must give an error message, since you can't get anything
    like what you want if you don't get the pdump file.

There is an annoying secondary problem: it exits leaving the tty set
up for Emacs (no echo).  It ought to restore the outside-Emacs
terminal settings before exiting.

The reason it fails to find the pdump file
is that it fails to implement this case

    If the executable file is a symbolic link, the program can find the
    link target and use its containing directory instead of the link's
    containing directory.

which is implemented for associated Lisp files in this code in emacs.c

	  /* If the Emacs executable is actually a link,
	     next try the dir that the link points into.  */
	  tem = Ffile_symlink_p (name);
	  if (!NILP (tem))
	    {
	      name = Fexpand_file_name (tem, dir);
	      dir = Ffile_name_directory (name);
	    }
	  else
	    break;

but that is not implemented for pdump files.


-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2019-06-28  6:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-02  3:27 bug#34707: Failure to find the associated pdump file Richard Stallman
2019-03-02  7:11 ` Eli Zaretskii
2019-03-03  2:58   ` Richard Stallman
2019-03-03  3:45     ` Eli Zaretskii
2019-03-04  3:28       ` Richard Stallman
2019-03-03  2:58   ` Richard Stallman
2019-03-03  3:41     ` Eli Zaretskii
2019-03-03 17:08       ` Eli Zaretskii
2019-03-04  3:26       ` Richard Stallman
2019-03-04  3:36         ` Eli Zaretskii
2019-03-03 17:06     ` Eli Zaretskii
2019-06-17 18:56 ` Lars Ingebrigtsen
2019-06-17 19:23   ` Eli Zaretskii
2019-06-18  3:07   ` Richard Stallman
2019-06-28  6:42     ` Eli Zaretskii

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).