diff options
| author | YAMAMOTO Mitsuharu | 2009-07-16 08:25:21 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2009-07-16 08:25:21 +0000 |
| commit | 7653ca1dfb92b95764536957c7341e79c4efa898 (patch) | |
| tree | cabb7c14514af00262007331ba9cfb29eceddff6 /lisp | |
| parent | 042f7b692fcc3fe35af0b1afc0a85543440984f1 (diff) | |
| download | emacs-7653ca1dfb92b95764536957c7341e79c4efa898.tar.gz emacs-7653ca1dfb92b95764536957c7341e79c4efa898.zip | |
(ns-set-alpha): Don't declare.
(ns-set-background-alpha): Remove function.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/term/ns-win.el | 12 |
2 files changed, 5 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2098dfa7f50..785daed8197 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * term/ns-win.el (ns-set-alpha): Don't declare. | ||
| 4 | (ns-set-background-alpha): Remove function. | ||
| 5 | |||
| 1 | 2009-07-16 Kevin Ryde <user42@zip.com.au> | 6 | 2009-07-16 Kevin Ryde <user42@zip.com.au> |
| 2 | 7 | ||
| 3 | * emacs-lisp/copyright.el (copyright-update): Save match-data across | 8 | * emacs-lisp/copyright.el (copyright-update): Save match-data across |
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 20056dab699..5830f438cce 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el | |||
| @@ -1130,18 +1130,6 @@ The value may be different for frames on different Nextstep displays." | |||
| 1130 | (setq defined-colors (cons this-color defined-colors))) ;;) | 1130 | (setq defined-colors (cons this-color defined-colors))) ;;) |
| 1131 | defined-colors)) | 1131 | defined-colors)) |
| 1132 | 1132 | ||
| 1133 | (declare-function ns-set-alpha "nsfns.m" (color alpha)) | ||
| 1134 | |||
| 1135 | ;; Convenience and work-around for fact that set color fns now require named. | ||
| 1136 | (defun ns-set-background-alpha (alpha) | ||
| 1137 | "Sets ALPHA (opacity) of background. | ||
| 1138 | Set from 0.0 (fully transparent) to 1.0 (fully opaque; default). | ||
| 1139 | Note, tranparency works better on Tiger (10.4) and higher." | ||
| 1140 | (interactive "nSet background alpha to: ") | ||
| 1141 | (let ((bgcolor (cdr (assq 'background-color (frame-parameters))))) | ||
| 1142 | (set-frame-parameter (selected-frame) | ||
| 1143 | 'background-color (ns-set-alpha bgcolor alpha)))) | ||
| 1144 | |||
| 1145 | ;; Functions for color panel + drag | 1133 | ;; Functions for color panel + drag |
| 1146 | (defun ns-face-at-pos (pos) | 1134 | (defun ns-face-at-pos (pos) |
| 1147 | (let* ((frame (car pos)) | 1135 | (let* ((frame (car pos)) |