diff options
| author | Dan Nicolaescu | 2008-07-21 17:43:33 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-07-21 17:43:33 +0000 |
| commit | 5f2aebc0e64aaf57a71af694a224ea6368555c24 (patch) | |
| tree | 02f2e0e33c21ec3f8802ea54b8d566df2b771f7f | |
| parent | 3000e3f4e49db898c4f7a6ec702f351ed9c4c38a (diff) | |
| download | emacs-5f2aebc0e64aaf57a71af694a224ea6368555c24.tar.gz emacs-5f2aebc0e64aaf57a71af694a224ea6368555c24.zip | |
(ns-display-name): Remove declaration.
(make-frame-on-display): Use x-display-name instead
ns-display-name. Use unless.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/frame.el | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 17ad3fb9e1b..c55e73de577 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * frame.el (ns-display-name): Remove declaration. | ||
| 4 | (make-frame-on-display): Use x-display-name instead | ||
| 5 | ns-display-name. Use unless. | ||
| 6 | |||
| 3 | * startup.el (command-line-1): Fix indentation. | 7 | * startup.el (command-line-1): Fix indentation. |
| 4 | 8 | ||
| 5 | * term/ns-win.el (up-one, down-one, left-one, right-one): Remove, | 9 | * term/ns-win.el (up-one, down-one, left-one, right-one): Remove, |
diff --git a/lisp/frame.el b/lisp/frame.el index b8ec20bf0c3..3682d1cc5e7 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -606,7 +606,6 @@ is not considered (see `next-frame')." | |||
| 606 | (declare-function x-initialize-window-system "term/x-win" ()) | 606 | (declare-function x-initialize-window-system "term/x-win" ()) |
| 607 | (declare-function ns-initialize-window-system "term/ns-win" ()) | 607 | (declare-function ns-initialize-window-system "term/ns-win" ()) |
| 608 | (defvar x-display-name) ; term/x-win | 608 | (defvar x-display-name) ; term/x-win |
| 609 | (defvar ns-display-name) ; term/ns-win | ||
| 610 | 609 | ||
| 611 | (defun make-frame-on-display (display &optional parameters) | 610 | (defun make-frame-on-display (display &optional parameters) |
| 612 | "Make a frame on X display DISPLAY. | 611 | "Make a frame on X display DISPLAY. |
| @@ -615,12 +614,12 @@ The optional second argument PARAMETERS specifies additional frame parameters." | |||
| 615 | (if (featurep 'ns-windowing) | 614 | (if (featurep 'ns-windowing) |
| 616 | (progn | 615 | (progn |
| 617 | (when (and (boundp 'ns-initialized) (not ns-initialized)) | 616 | (when (and (boundp 'ns-initialized) (not ns-initialized)) |
| 618 | (setq ns-display-name display) | 617 | (setq x-display-name display) |
| 619 | (ns-initialize-window-system)) | 618 | (ns-initialize-window-system)) |
| 620 | (make-frame `((window-system . ns) (display . ,display) . ,parameters))) | 619 | (make-frame `((window-system . ns) (display . ,display) . ,parameters))) |
| 621 | (progn | 620 | (progn |
| 622 | (or (string-match "\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'" display) | 621 | (unless (string-match "\\`[^:]*:[0-9]+\\(\\.[0-9]+\\)?\\'" display) |
| 623 | (error "Invalid display, not HOST:SERVER or HOST:SERVER.SCREEN")) | 622 | (error "Invalid display, not HOST:SERVER or HOST:SERVER.SCREEN")) |
| 624 | (when (and (boundp 'x-initialized) (not x-initialized)) | 623 | (when (and (boundp 'x-initialized) (not x-initialized)) |
| 625 | (setq x-display-name display) | 624 | (setq x-display-name display) |
| 626 | (x-initialize-window-system)) | 625 | (x-initialize-window-system)) |