> My point is that the frameset is not compatible between my emacs-w64
> session and my emacs-ubuntu session
> because (at least) of the border-width which errors.
> I was expecting to be able to run emacs independently on Windows and
> GNU/Linux and being able to share
> all of my setup. I get this error when the desktop package is restoring the
> session.
You earlier said that "it may happen that the modify-frame-parameters be
called with a border-width which is not the default one for the current
emacs. In this case, x_set_border_width errors because it can't change
it". ‘frameset-restore’ should process a ‘border-width’ parameter only
when _creating_ a frame. Note this remark in frameset.el:
;; - can be set at creation time, and setting them afterwards will fail with
;; an error, *unless* you set it to the same value, a noop (`border-width')
So I would need a Lisp backtrace from x_set_border_width to find out how
comes that ‘frameset-restore’ calls ‘modify-frame-parameters’ here.
Thanks, martin