On Wed, 5 Nov 2003, Alfredo Braunstein wrote:

> Joao Luis Meloni Assirati wrote:
>
> > * export-socket.diff: export variables EDITOR and LYXSOCKET when the
> > socket is created. Since there is no need of passing the socket address
> > through $$a, it is removed from format.C. Xdvi must then be called with no
> > arguments, and kdvi works if the editor is defined as 'lyxclient -g %f
> > %l'.
>
> 1) For maximum flexibility, I would not remove $$a even if it's not needed
> for DVI-I-S. I won't apply that part of the patch for now, ok?.

Are you waiting the attached patch?

Jo�o.
Index: src/ChangeLog
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/ChangeLog,v
retrieving revision 1.1683
diff -u -r1.1683 ChangeLog
--- src/ChangeLog	2003/11/05 09:59:40	1.1683
+++ src/ChangeLog	2003/11/05 10:23:35
@@ -1,3 +1,7 @@
+2003-11-05  Jo�o Luis M. Assirati  <[EMAIL PROTECTED]>
+
+	* lyxsocket.C: export variables XEDITOR and LYXSOCKET
+
 2003-11-05  Alfredo Braunstein  <[EMAIL PROTECTED]>
 
 	* lyxfunc.C (dispatch): make LFUN_GOTO_PARAGRAPH work with deep
Index: src/lyxsocket.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/lyxsocket.C,v
retrieving revision 1.3
diff -u -r1.3 lyxsocket.C
--- src/lyxsocket.C	2003/11/03 17:47:22	1.3
+++ src/lyxsocket.C	2003/11/05 10:23:36
@@ -45,6 +45,13 @@
 		lyxerr << "lyx: Disabling LyX socket." << endl;
 		return;
 	}
+
+	// These env vars are used by DVI inverse search
+	// Needed by xdvi
+	lyx::support::putenv("XEDITOR", "lyxclient -g %f %l");
+	// Needed by lyxclient
+	lyx::support::putenv("LYXSOCKET", address_);
+
 	lyx_gui::set_serversocket_callback(this);
 	lyxerr[Debug::LYXSERVER] << "lyx: New server socket "
 				 << fd_ << ' ' << address_ << endl;

Reply via email to