(define-key map [M-return] [?\M-\C-m])
(define-key map [M-escape] [?\M-\e])
map)
- "Keymap of alternative meanings for some keys under NS.")
+ "Keymap of alternative meanings for some keys under Nextstep.")
;; Here are some Nextstep-like bindings for command key sequences.
(define-key global-map [?\s-,] 'customize)
(ns-delete-working-text))
(defun ns-insert-working-text ()
- "Insert contents of `ns-working-text' as UTF8 string and mark with
+ "Insert contents of `ns-working-text' as UTF-8 string and mark with
`ns-working-overlay'. Any previously existing working text is cleared first.
The overlay is assigned the face `ns-working-text-face'."
;; FIXME: if buffer is read-only, don't try to insert anything
'face 'ns-working-text-face)))
(defun ns-echo-working-text ()
- "Echo contents of ns-working-text in message display area.
+ "Echo contents of `ns-working-text' in message display area.
See `ns-insert-working-text'."
(ns-delete-working-text)
(let* ((msg (current-message))
(progn
(defun ns-utf8-nfd-post-read-conversion (length)
- "Calls ns-convert-utf8-nfd-to-nfc to compose char sequences."
+ "Calls `ns-convert-utf8-nfd-to-nfc' to compose char sequences."
(save-excursion
(save-restriction
(narrow-to-region (point) (+ (point) length))
(defvar ns-input-text) ; nsterm.m
(defun ns-insert-text ()
- "Insert contents of ns-input-text at point."
+ "Insert contents of `ns-input-text' at point."
(interactive)
(insert ns-input-text)
(setq ns-input-text nil))
(defun ns-insert-file ()
- "Insert contents of file ns-input-file like insert-file but with less
-prompting. If file is a directory perform a find-file on it."
+ "Insert contents of file `ns-input-file' like insert-file but with less
+prompting. If file is a directory perform a `find-file' on it."
(interactive)
(let ((f))
(setq f (car ns-input-file))
(declare-function ns-hide-emacs "nsfns.m" (on))
(defun ns-find-file ()
- "Do a find-file with the ns-input-file as argument."
+ "Do a `find-file' with the `ns-input-file' as argument."
(interactive)
(let ((f) (file) (bufwin1) (bufwin2))
(setq f (file-truename (car ns-input-file)))
"Switch to next visible frame."
(interactive)
(other-frame 1))
+
(defun ns-prev-frame ()
"Switch to previous visible frame."
(interactive)
;; Set to use font panel instead
(declare-function ns-popup-font-panel "nsfns.m" (&optional frame))
(defalias 'generate-fontset-menu 'ns-popup-font-panel "Pop up the font panel.
-This function has been overloaded in NS.")
+This function has been overloaded in Nextstep.")
(defalias 'mouse-set-font 'ns-popup-font-panel "Pop up the font panel.
-This function has been overloaded in NS.")
+This function has been overloaded in Nextstep.")
;; nsterm.m
(defvar ns-input-font)
(defvar ns-input-fontsize)
(defun ns-respond-to-change-font ()
- "Respond to changeFont: event, expecting ns-input-font and\n\
-ns-input-fontsize of new font."
+ "Respond to changeFont: event, expecting `ns-input-font' and\n\
+`ns-input-fontsize' of new font."
(interactive)
(modify-frame-parameters (selected-frame)
(list (cons 'font ns-input-font)
;; Default fontset for Mac OS X. This is mainly here to show how a fontset
;; can be set up manually. Ordinarily, fontsets are auto-created whenever
-;; a font is chosen by
+;; a font is chosen by
(defvar ns-standard-fontset-spec
;; Only some code supports this so far, so use uglier XLFD version
;; "-ns-*-*-*-*-*-10-*-*-*-*-*-fontset-standard,latin:Courier,han:Kai"
",")
"String of fontset spec of the standard fontset.
This defines a fontset consisting of the Courier and other fonts that
-come with OS X\".
-See the documentation of `create-fontset-from-fontset-spec for the format.")
+come with OS X.
+See the documentation of `create-fontset-from-fontset-spec' for the format.")
;; Conditional on new-fontset so bootstrapping works on non-GUI compiles.
(if (fboundp 'new-fontset)
;; Create the standard fontset.
(condition-case err
(create-fontset-from-fontset-spec ns-standard-fontset-spec t)
- (error (display-warning
+ (error (display-warning
'initialization
(format "Creation of the standard fontset failed: %s" err)
:error)))))
;; Convenience and work-around for fact that set color fns now require named.
(defun ns-set-background-alpha (alpha)
- "Sets alpha (opacity) of background.
+ "Sets ALPHA (opacity) of background.
Set from 0.0 (fully transparent) to 1.0 (fully opaque; default).
Note, tranparency works better on Tiger (10.4) and higher."
(interactive "nSet background alpha to: ")
(defvar ns-input-color) ; nsterm.m
(defun ns-set-foreground-at-mouse ()
- "Set the foreground color at the mouse location to ns-input-color."
+ "Set the foreground color at the mouse location to `ns-input-color'."
(interactive)
(let* ((pos (mouse-position))
(frame (car pos))
(set-face-foreground face ns-input-color frame)))))
(defun ns-set-background-at-mouse ()
- "Set the background color at the mouse location to ns-input-color."
+ "Set the background color at the mouse location to `ns-input-color'."
(interactive)
(let* ((pos (mouse-position))
(frame (car pos))