diff options
| author | Chong Yidong | 2008-07-18 17:45:01 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-07-18 17:45:01 +0000 |
| commit | 82a330df16a607c749bcbd07df4654f2e026f869 (patch) | |
| tree | c3a77c6fad1da57dfc3af9c614466176b4523d51 | |
| parent | dc9d2c95439049258f5e700e3aba6545de50f9b6 (diff) | |
| download | emacs-82a330df16a607c749bcbd07df4654f2e026f869.tar.gz emacs-82a330df16a607c749bcbd07df4654f2e026f869.zip | |
(ns-submit-bug-report): Function removed. Bug
reports go to the main Emacs bug list.
(ns-handle-args, ns-spi-service-call): Doc fixes.
(info-ns-emacs): Function removed. Nextstep port manual will be
merged into the Emacs manual, so no separate link needed.
| -rw-r--r-- | lisp/term/ns-win.el | 52 |
1 files changed, 11 insertions, 41 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index a890f196b9f..cb6e08342c2 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -2,7 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 2005, 2006, 2008 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994, 2005, 2006, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Carl Edman, Christian Limpach, Scott Bender, Christophe de Dinechin, Adrian Robert | 5 | ;; Authors: Carl Edman, Christian Limpach, Scott Bender, |
| 6 | ;; Christophe de Dinechin, Adrian Robert | ||
| 6 | ;; Keywords: terminals | 7 | ;; Keywords: terminals |
| 7 | 8 | ||
| 8 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| @@ -62,24 +63,6 @@ | |||
| 62 | (declare-function ns-server-vendor "nsfns.m" (&optional display)) | 63 | (declare-function ns-server-vendor "nsfns.m" (&optional display)) |
| 63 | (declare-function ns-server-version "nsfns.m" (&optional display)) | 64 | (declare-function ns-server-version "nsfns.m" (&optional display)) |
| 64 | 65 | ||
| 65 | (defun ns-submit-bug-report () | ||
| 66 | "Submit via mail a bug report on Emacs 23.0.0 for GNUstep / OS X." | ||
| 67 | (interactive) | ||
| 68 | (let ((frame-parameters (frame-parameters)) | ||
| 69 | (server-vendor (ns-server-vendor)) | ||
| 70 | (server-version (ns-server-version))) | ||
| 71 | (reporter-submit-bug-report | ||
| 72 | "Adrian Robert <Adrian.B.Robert@gmail.com>" | ||
| 73 | ;;"Christophe de Dinechin <descubes@earthlink.net>" | ||
| 74 | ;;"Scott Bender <emacs@harmony-ds.com>" | ||
| 75 | ;;"Christian Limpach <chris@nice.ch>" | ||
| 76 | ;;"Carl Edman <cedman@princeton.edu>" | ||
| 77 | (concat "Emacs for GNUstep / OS X " ns-version-string) | ||
| 78 | '(ns-expand-space ns-cursor-blink-rate ns-alternate-modifier | ||
| 79 | data-directory frame-parameters window-system window-system-version | ||
| 80 | server-vendor server-version system-configuration-options)))) | ||
| 81 | |||
| 82 | |||
| 83 | ;;;; Command line argument handling. | 66 | ;;;; Command line argument handling. |
| 84 | 67 | ||
| 85 | (defvar ns-invocation-args nil) | 68 | (defvar ns-invocation-args nil) |
| @@ -105,8 +88,7 @@ | |||
| 105 | (setq initial-frame-alist | 88 | (setq initial-frame-alist |
| 106 | (cons '(visibility . icon) initial-frame-alist))) | 89 | (cons '(visibility . icon) initial-frame-alist))) |
| 107 | 90 | ||
| 108 | ;; Handle the -name option, set the name of | 91 | ;; Handle the -name option, set the name of the initial frame. |
| 109 | ;; the initial frame. | ||
| 110 | (defun ns-handle-name-switch (switch) | 92 | (defun ns-handle-name-switch (switch) |
| 111 | (or (consp ns-invocation-args) | 93 | (or (consp ns-invocation-args) |
| 112 | (error "%s: missing argument to `%s' option" (invocation-name) switch)) | 94 | (error "%s: missing argument to `%s' option" (invocation-name) switch)) |
| @@ -129,20 +111,19 @@ | |||
| 129 | '(ns-open-temp-file)) | 111 | '(ns-open-temp-file)) |
| 130 | ns-input-file (append ns-input-file (list (pop ns-invocation-args))))) | 112 | ns-input-file (append ns-input-file (list (pop ns-invocation-args))))) |
| 131 | 113 | ||
| 132 | (defun ns-ignore-0-arg (switch) | 114 | (defun ns-ignore-0-arg (switch)) |
| 133 | ) | ||
| 134 | (defun ns-ignore-1-arg (switch) | 115 | (defun ns-ignore-1-arg (switch) |
| 135 | (setq ns-invocation-args (cdr ns-invocation-args))) | 116 | (setq ns-invocation-args (cdr ns-invocation-args))) |
| 136 | (defun ns-ignore-2-arg (switch) | 117 | (defun ns-ignore-2-arg (switch) |
| 137 | (setq ns-invocation-args (cddr ns-invocation-args))) | 118 | (setq ns-invocation-args (cddr ns-invocation-args))) |
| 138 | 119 | ||
| 139 | (defun ns-handle-args (args) | 120 | (defun ns-handle-args (args) |
| 140 | "Here the NS-related command line options in ARGS are processed, | 121 | "Process NeXTSTEP-related command line options. |
| 141 | before the user's startup file is loaded. They are copied to | 122 | This is run before the user's startup file is loaded. |
| 142 | `ns-invocation-args', from which the NS related things are extracted, first | 123 | The options in ARGS are copied to `ns-invocation-args'. The |
| 143 | the switch (e.g., \"-fg\") in the following code, and possible values | 124 | NeXTSTEP-related settings are then applied using the handlers |
| 144 | \(e.g., \"black\") in the option handler code (e.g., ns-handle-switch). | 125 | defined in `command-line-ns-option-alist'. |
| 145 | This function returns ARGS minus the arguments that have been processed." | 126 | The return value is ARGS minus the arguments processed." |
| 146 | ;; We use ARGS to accumulate the args that we don't handle here, to return. | 127 | ;; We use ARGS to accumulate the args that we don't handle here, to return. |
| 147 | (setq ns-invocation-args args | 128 | (setq ns-invocation-args args |
| 148 | args nil) | 129 | args nil) |
| @@ -578,17 +559,6 @@ This should be bound to a mouse click event type." | |||
| 578 | (define-key global-map [menu-bar help-menu] | 559 | (define-key global-map [menu-bar help-menu] |
| 579 | (cons "Info" menu-bar-help-menu)))) | 560 | (cons "Info" menu-bar-help-menu)))) |
| 580 | 561 | ||
| 581 | |||
| 582 | ;;;; Add to help / info menu | ||
| 583 | (defun info-ns-emacs () | ||
| 584 | "Jump to ns-emacs info item." | ||
| 585 | (interactive) | ||
| 586 | (info "ns-emacs")) | ||
| 587 | |||
| 588 | (define-key menu-bar-help-menu [ns-bug-report] | ||
| 589 | '("Report Emacs.app bug..." . ns-submit-bug-report)) | ||
| 590 | (define-key menu-bar-help-menu [info-ns] | ||
| 591 | '("Emacs.app Manual" . info-ns-emacs)) | ||
| 592 | (if (not (eq system-type 'darwin)) | 562 | (if (not (eq system-type 'darwin)) |
| 593 | ;; in OS X it's in the app menu already | 563 | ;; in OS X it's in the app menu already |
| 594 | (define-key menu-bar-help-menu [info-panel] | 564 | (define-key menu-bar-help-menu [info-panel] |
| @@ -816,7 +786,7 @@ This should be bound to a mouse click event type." | |||
| 816 | (defvar ns-input-spi-arg) | 786 | (defvar ns-input-spi-arg) |
| 817 | 787 | ||
| 818 | (defun ns-spi-service-call () | 788 | (defun ns-spi-service-call () |
| 819 | "Respond to a service request to Emacs.app." | 789 | "Respond to a service request." |
| 820 | (interactive) | 790 | (interactive) |
| 821 | (cond ((string-equal ns-input-spi-name "open-selection") | 791 | (cond ((string-equal ns-input-spi-name "open-selection") |
| 822 | (switch-to-buffer (generate-new-buffer "*untitled*")) | 792 | (switch-to-buffer (generate-new-buffer "*untitled*")) |