[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100117: Run kill-emacs when exit

From: Jan Djärv
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100117: Run kill-emacs when exiting for display closed or SIGTERM/HUP.
Date: Tue, 04 May 2010 20:50:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100423 Thunderbird/3.0.4

2010-05-04 18:45, Juri Linkov skrev:

          * startup.el (fancy-startup-screen, normal-splash-screen):
          Set default-directory to command-line-default-directory.

Now the question is where `command-line-default-directory'
should get its value.  It's docstring says:

  (defvar command-line-default-directory nil
    "Default directory to use for command line arguments.
  This is normally copied from `default-directory' when Emacs starts.")

Isn't this circular? Who gets its value first? And remember, when starting from the session manager, no splash screen is shown, so the code that the Changelog entry above refers to is never run.

However, a new command line arg --chdir seems unnecessary.  When the
user wants `command-line-default-directory' to be another directory,
then the user can cd to this directory before running Emacs.

The user can not cd if Emacs is started from the session manager.

If this is necessary for the session management, it's another problem.
There is a special arg --smid that could be used.

I don't follow. --smid is strictly for session manager use. If you mean Emacs could save command-line-default-directory when it is terminated by the session manager, that is doable.

Desktop file isn't loaded.

I think --smid should restore the same desktop file that was saved
in the previous session.  And also restore the old value of

And if no session file was used, and there is one in the directory Emacs is restarted from?

        Jan D.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]