1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

lisp/frameset.el (frameset-restore): Compare display strings with equal.

This commit is contained in:
Juanma Barranquero 2014-03-23 23:14:11 +01:00
parent 3ea2c7811b
commit ee79b33f49
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2014-03-23 Juanma Barranquero <lekktu@gmail.com>
* frameset.el (frameset-restore): Compare display strings with equal.
* frame.el (make-frame): Don't quote display name in error message,
it is already a string.

View File

@ -1146,8 +1146,8 @@ All keyword parameters default to nil."
frame to-tty duplicate)
;; Only set target if forcing displays and the target display is different.
(unless (or (frameset-keep-original-display-p force-display)
(eq (frame-parameter nil 'display)
(cdr (assq 'display frame-cfg))))
(equal (frame-parameter nil 'display)
(cdr (assq 'display frame-cfg))))
(setq frameset--target-display (cons 'display
(frame-parameter nil 'display))
to-tty (null (cdr frameset--target-display))))