[Top][All Lists]

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

bug#21873: Issue on emacs --daemon with View command

From: Santiago Saavedra
Subject: bug#21873: Issue on emacs --daemon with View command
Date: Tue, 10 Nov 2015 14:11:35 +0100


There is a problem with how the View command gets handled in order to
account for display-manager-less settings, but there is a problem with
the current approach of deciding so at package load time.


Emacs can be started as a daemon from anywhere, including a systemd
user session without any current DISPLAY variable active (mostly
because it may not even have been initialized), or maybe a ~/.profile
script launching it, and launching Xorg after that by whatever reason.

Then, an emacs client can be attached at any point which may (or may
not) have a related display manager.

Currently, AUCTeX selects the display manager at the beginning, which
would make this approach use dvi2tty always, irrespect to whether the
emacs client is actually a possibility.


I would recommend to either have an emacs function as the view
function, which evaluates whether it should run graphically or
text-mode view function at call-time, instead of load-time.

I have a preliminary patch already as a commit in my clone of auctex.
I attach the git request-pull output.

The following changes since commit 0c9b98aeeeb612c04824140627cb5e86a763dcf9:

  Fix compatibility with XEmacs in tex-info.el (2015-11-09 22:45:20 +0100)

are available in the git repository at:


for you to fetch changes up to 2b83bc2ef9252f4f69a158c244fe4fc806844baf:

  Make View command work no matter how emacs started (2015-11-10 14:06:40 +0100)

Thanks. Regards,


Santiago Saavedra

reply via email to

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