diff options
| author | Juanma Barranquero | 2009-05-03 23:19:35 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2009-05-03 23:19:35 +0000 |
| commit | 2b4e72e1d5ccecf590125c022a78a88755c779e5 (patch) | |
| tree | da45761d1c7faeb89a7b2ca7c151b8986dc3bfda | |
| parent | de22b81de3405aeb7b341b80531e5627ee2a1277 (diff) | |
| download | emacs-2b4e72e1d5ccecf590125c022a78a88755c779e5.tar.gz emacs-2b4e72e1d5ccecf590125c022a78a88755c779e5.zip | |
* term/ns-win.el (ns-alternatives-map, ns-insert-working-text)
(ns-echo-working-text, ns-utf8-nfd-post-read-conversion)
(ns-insert-text, ns-insert-file, ns-find-file, generate-fontset-menu)
(mouse-set-font, ns-respond-to-change-font, ns-standard-fontset-spec)
(ns-set-background-alpha, ns-set-foreground-at-mouse)
(ns-set-background-at-mouse): Fix typos in docstrings.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/term/ns-win.el | 39 |
2 files changed, 29 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index aef6b360d23..71bb2fc5694 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2009-05-03 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * term/ns-win.el (ns-alternatives-map, ns-insert-working-text) | ||
| 4 | (ns-echo-working-text, ns-utf8-nfd-post-read-conversion) | ||
| 5 | (ns-insert-text, ns-insert-file, ns-find-file, generate-fontset-menu) | ||
| 6 | (mouse-set-font, ns-respond-to-change-font, ns-standard-fontset-spec) | ||
| 7 | (ns-set-background-alpha, ns-set-foreground-at-mouse) | ||
| 8 | (ns-set-background-at-mouse): Fix typos in docstrings. | ||
| 9 | |||
| 1 | 2009-05-03 Daiki Ueno <ueno@unixuser.org> | 10 | 2009-05-03 Daiki Ueno <ueno@unixuser.org> |
| 2 | 11 | ||
| 3 | * epg.el (epg-wait-for-completion): Sleep after the process | 12 | * epg.el (epg-wait-for-completion): Sleep after the process |
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 8a7b3455f4b..d767a669647 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -220,7 +220,7 @@ The properties returned may include `top', `left', `height', and `width'." | |||
| 220 | (define-key map [M-return] [?\M-\C-m]) | 220 | (define-key map [M-return] [?\M-\C-m]) |
| 221 | (define-key map [M-escape] [?\M-\e]) | 221 | (define-key map [M-escape] [?\M-\e]) |
| 222 | map) | 222 | map) |
| 223 | "Keymap of alternative meanings for some keys under NS.") | 223 | "Keymap of alternative meanings for some keys under Nextstep.") |
| 224 | 224 | ||
| 225 | ;; Here are some Nextstep-like bindings for command key sequences. | 225 | ;; Here are some Nextstep-like bindings for command key sequences. |
| 226 | (define-key global-map [?\s-,] 'customize) | 226 | (define-key global-map [?\s-,] 'customize) |
| @@ -612,7 +612,7 @@ is currently being used." | |||
| 612 | (ns-delete-working-text)) | 612 | (ns-delete-working-text)) |
| 613 | 613 | ||
| 614 | (defun ns-insert-working-text () | 614 | (defun ns-insert-working-text () |
| 615 | "Insert contents of `ns-working-text' as UTF8 string and mark with | 615 | "Insert contents of `ns-working-text' as UTF-8 string and mark with |
| 616 | `ns-working-overlay'. Any previously existing working text is cleared first. | 616 | `ns-working-overlay'. Any previously existing working text is cleared first. |
| 617 | The overlay is assigned the face `ns-working-text-face'." | 617 | The overlay is assigned the face `ns-working-text-face'." |
| 618 | ;; FIXME: if buffer is read-only, don't try to insert anything | 618 | ;; FIXME: if buffer is read-only, don't try to insert anything |
| @@ -626,7 +626,7 @@ The overlay is assigned the face `ns-working-text-face'." | |||
| 626 | 'face 'ns-working-text-face))) | 626 | 'face 'ns-working-text-face))) |
| 627 | 627 | ||
| 628 | (defun ns-echo-working-text () | 628 | (defun ns-echo-working-text () |
| 629 | "Echo contents of ns-working-text in message display area. | 629 | "Echo contents of `ns-working-text' in message display area. |
| 630 | See `ns-insert-working-text'." | 630 | See `ns-insert-working-text'." |
| 631 | (ns-delete-working-text) | 631 | (ns-delete-working-text) |
| 632 | (let* ((msg (current-message)) | 632 | (let* ((msg (current-message)) |
| @@ -666,7 +666,7 @@ See `ns-insert-working-text'." | |||
| 666 | (progn | 666 | (progn |
| 667 | 667 | ||
| 668 | (defun ns-utf8-nfd-post-read-conversion (length) | 668 | (defun ns-utf8-nfd-post-read-conversion (length) |
| 669 | "Calls ns-convert-utf8-nfd-to-nfc to compose char sequences." | 669 | "Calls `ns-convert-utf8-nfd-to-nfc' to compose char sequences." |
| 670 | (save-excursion | 670 | (save-excursion |
| 671 | (save-restriction | 671 | (save-restriction |
| 672 | (narrow-to-region (point) (+ (point) length)) | 672 | (narrow-to-region (point) (+ (point) length)) |
| @@ -695,14 +695,14 @@ See `ns-insert-working-text'." | |||
| 695 | (defvar ns-input-text) ; nsterm.m | 695 | (defvar ns-input-text) ; nsterm.m |
| 696 | 696 | ||
| 697 | (defun ns-insert-text () | 697 | (defun ns-insert-text () |
| 698 | "Insert contents of ns-input-text at point." | 698 | "Insert contents of `ns-input-text' at point." |
| 699 | (interactive) | 699 | (interactive) |
| 700 | (insert ns-input-text) | 700 | (insert ns-input-text) |
| 701 | (setq ns-input-text nil)) | 701 | (setq ns-input-text nil)) |
| 702 | 702 | ||
| 703 | (defun ns-insert-file () | 703 | (defun ns-insert-file () |
| 704 | "Insert contents of file ns-input-file like insert-file but with less | 704 | "Insert contents of file `ns-input-file' like insert-file but with less |
| 705 | prompting. If file is a directory perform a find-file on it." | 705 | prompting. If file is a directory perform a `find-file' on it." |
| 706 | (interactive) | 706 | (interactive) |
| 707 | (let ((f)) | 707 | (let ((f)) |
| 708 | (setq f (car ns-input-file)) | 708 | (setq f (car ns-input-file)) |
| @@ -808,7 +808,7 @@ unless the current buffer is a scratch buffer." | |||
| 808 | (declare-function ns-hide-emacs "nsfns.m" (on)) | 808 | (declare-function ns-hide-emacs "nsfns.m" (on)) |
| 809 | 809 | ||
| 810 | (defun ns-find-file () | 810 | (defun ns-find-file () |
| 811 | "Do a find-file with the ns-input-file as argument." | 811 | "Do a `find-file' with the `ns-input-file' as argument." |
| 812 | (interactive) | 812 | (interactive) |
| 813 | (let ((f) (file) (bufwin1) (bufwin2)) | 813 | (let ((f) (file) (bufwin1) (bufwin2)) |
| 814 | (setq f (file-truename (car ns-input-file))) | 814 | (setq f (file-truename (car ns-input-file))) |
| @@ -864,6 +864,7 @@ unless the current buffer is a scratch buffer." | |||
| 864 | "Switch to next visible frame." | 864 | "Switch to next visible frame." |
| 865 | (interactive) | 865 | (interactive) |
| 866 | (other-frame 1)) | 866 | (other-frame 1)) |
| 867 | |||
| 867 | (defun ns-prev-frame () | 868 | (defun ns-prev-frame () |
| 868 | "Switch to previous visible frame." | 869 | "Switch to previous visible frame." |
| 869 | (interactive) | 870 | (interactive) |
| @@ -935,17 +936,17 @@ unless the current buffer is a scratch buffer." | |||
| 935 | ;; Set to use font panel instead | 936 | ;; Set to use font panel instead |
| 936 | (declare-function ns-popup-font-panel "nsfns.m" (&optional frame)) | 937 | (declare-function ns-popup-font-panel "nsfns.m" (&optional frame)) |
| 937 | (defalias 'generate-fontset-menu 'ns-popup-font-panel "Pop up the font panel. | 938 | (defalias 'generate-fontset-menu 'ns-popup-font-panel "Pop up the font panel. |
| 938 | This function has been overloaded in NS.") | 939 | This function has been overloaded in Nextstep.") |
| 939 | (defalias 'mouse-set-font 'ns-popup-font-panel "Pop up the font panel. | 940 | (defalias 'mouse-set-font 'ns-popup-font-panel "Pop up the font panel. |
| 940 | This function has been overloaded in NS.") | 941 | This function has been overloaded in Nextstep.") |
| 941 | 942 | ||
| 942 | ;; nsterm.m | 943 | ;; nsterm.m |
| 943 | (defvar ns-input-font) | 944 | (defvar ns-input-font) |
| 944 | (defvar ns-input-fontsize) | 945 | (defvar ns-input-fontsize) |
| 945 | 946 | ||
| 946 | (defun ns-respond-to-change-font () | 947 | (defun ns-respond-to-change-font () |
| 947 | "Respond to changeFont: event, expecting ns-input-font and\n\ | 948 | "Respond to changeFont: event, expecting `ns-input-font' and\n\ |
| 948 | ns-input-fontsize of new font." | 949 | `ns-input-fontsize' of new font." |
| 949 | (interactive) | 950 | (interactive) |
| 950 | (modify-frame-parameters (selected-frame) | 951 | (modify-frame-parameters (selected-frame) |
| 951 | (list (cons 'font ns-input-font) | 952 | (list (cons 'font ns-input-font) |
| @@ -955,7 +956,7 @@ ns-input-fontsize of new font." | |||
| 955 | 956 | ||
| 956 | ;; Default fontset for Mac OS X. This is mainly here to show how a fontset | 957 | ;; Default fontset for Mac OS X. This is mainly here to show how a fontset |
| 957 | ;; can be set up manually. Ordinarily, fontsets are auto-created whenever | 958 | ;; can be set up manually. Ordinarily, fontsets are auto-created whenever |
| 958 | ;; a font is chosen by | 959 | ;; a font is chosen by |
| 959 | (defvar ns-standard-fontset-spec | 960 | (defvar ns-standard-fontset-spec |
| 960 | ;; Only some code supports this so far, so use uglier XLFD version | 961 | ;; Only some code supports this so far, so use uglier XLFD version |
| 961 | ;; "-ns-*-*-*-*-*-10-*-*-*-*-*-fontset-standard,latin:Courier,han:Kai" | 962 | ;; "-ns-*-*-*-*-*-10-*-*-*-*-*-fontset-standard,latin:Courier,han:Kai" |
| @@ -967,8 +968,8 @@ ns-input-fontsize of new font." | |||
| 967 | ",") | 968 | ",") |
| 968 | "String of fontset spec of the standard fontset. | 969 | "String of fontset spec of the standard fontset. |
| 969 | This defines a fontset consisting of the Courier and other fonts that | 970 | This defines a fontset consisting of the Courier and other fonts that |
| 970 | come with OS X\". | 971 | come with OS X. |
| 971 | See the documentation of `create-fontset-from-fontset-spec for the format.") | 972 | See the documentation of `create-fontset-from-fontset-spec' for the format.") |
| 972 | 973 | ||
| 973 | ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles. | 974 | ;; Conditional on new-fontset so bootstrapping works on non-GUI compiles. |
| 974 | (if (fboundp 'new-fontset) | 975 | (if (fboundp 'new-fontset) |
| @@ -978,7 +979,7 @@ See the documentation of `create-fontset-from-fontset-spec for the format.") | |||
| 978 | ;; Create the standard fontset. | 979 | ;; Create the standard fontset. |
| 979 | (condition-case err | 980 | (condition-case err |
| 980 | (create-fontset-from-fontset-spec ns-standard-fontset-spec t) | 981 | (create-fontset-from-fontset-spec ns-standard-fontset-spec t) |
| 981 | (error (display-warning | 982 | (error (display-warning |
| 982 | 'initialization | 983 | 'initialization |
| 983 | (format "Creation of the standard fontset failed: %s" err) | 984 | (format "Creation of the standard fontset failed: %s" err) |
| 984 | :error))))) | 985 | :error))))) |
| @@ -1146,7 +1147,7 @@ The value may be different for frames on different Nextstep displays." | |||
| 1146 | 1147 | ||
| 1147 | ;; Convenience and work-around for fact that set color fns now require named. | 1148 | ;; Convenience and work-around for fact that set color fns now require named. |
| 1148 | (defun ns-set-background-alpha (alpha) | 1149 | (defun ns-set-background-alpha (alpha) |
| 1149 | "Sets alpha (opacity) of background. | 1150 | "Sets ALPHA (opacity) of background. |
| 1150 | Set from 0.0 (fully transparent) to 1.0 (fully opaque; default). | 1151 | Set from 0.0 (fully transparent) to 1.0 (fully opaque; default). |
| 1151 | Note, tranparency works better on Tiger (10.4) and higher." | 1152 | Note, tranparency works better on Tiger (10.4) and higher." |
| 1152 | (interactive "nSet background alpha to: ") | 1153 | (interactive "nSet background alpha to: ") |
| @@ -1193,7 +1194,7 @@ Note, tranparency works better on Tiger (10.4) and higher." | |||
| 1193 | (defvar ns-input-color) ; nsterm.m | 1194 | (defvar ns-input-color) ; nsterm.m |
| 1194 | 1195 | ||
| 1195 | (defun ns-set-foreground-at-mouse () | 1196 | (defun ns-set-foreground-at-mouse () |
| 1196 | "Set the foreground color at the mouse location to ns-input-color." | 1197 | "Set the foreground color at the mouse location to `ns-input-color'." |
| 1197 | (interactive) | 1198 | (interactive) |
| 1198 | (let* ((pos (mouse-position)) | 1199 | (let* ((pos (mouse-position)) |
| 1199 | (frame (car pos)) | 1200 | (frame (car pos)) |
| @@ -1209,7 +1210,7 @@ Note, tranparency works better on Tiger (10.4) and higher." | |||
| 1209 | (set-face-foreground face ns-input-color frame))))) | 1210 | (set-face-foreground face ns-input-color frame))))) |
| 1210 | 1211 | ||
| 1211 | (defun ns-set-background-at-mouse () | 1212 | (defun ns-set-background-at-mouse () |
| 1212 | "Set the background color at the mouse location to ns-input-color." | 1213 | "Set the background color at the mouse location to `ns-input-color'." |
| 1213 | (interactive) | 1214 | (interactive) |
| 1214 | (let* ((pos (mouse-position)) | 1215 | (let* ((pos (mouse-position)) |
| 1215 | (frame (car pos)) | 1216 | (frame (car pos)) |