diff options
| author | Adrian Robert | 2009-09-18 15:12:15 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-09-18 15:12:15 +0000 |
| commit | 9518c243859d76766164e08949b6fd8630cd3322 (patch) | |
| tree | 238cca915e63fc5431068eb08b6e2c12924c0c82 /src | |
| parent | c52b91097e5731ead787485c835d8b74090485be (diff) | |
| download | emacs-9518c243859d76766164e08949b6fd8630cd3322.tar.gz emacs-9518c243859d76766164e08949b6fd8630cd3322.zip | |
(ns_no_defaults): Remove. (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources. (ns_use_qd_smoothing): Remove legacy variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 5a58f1d64d5..81049fcf112 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -144,15 +144,6 @@ static Lisp_Object Qmodifier_value; | |||
| 144 | Lisp_Object Qalt, Qcontrol, Qhyper, Qmeta, Qsuper; | 144 | Lisp_Object Qalt, Qcontrol, Qhyper, Qmeta, Qsuper; |
| 145 | extern Lisp_Object Qcursor_color, Qcursor_type, Qns; | 145 | extern Lisp_Object Qcursor_color, Qcursor_type, Qns; |
| 146 | 146 | ||
| 147 | |||
| 148 | /* Some preferences equivalent to those set by X resources under X are | ||
| 149 | managed through the OpenStep defaults system. We depart from X | ||
| 150 | behavior and refuse to read defaults when started under these | ||
| 151 | options. */ | ||
| 152 | |||
| 153 | /* Set in emacs.c. */ | ||
| 154 | char ns_no_defaults; | ||
| 155 | |||
| 156 | /* Specifies which emacs modifier should be generated when NS receives | 147 | /* Specifies which emacs modifier should be generated when NS receives |
| 157 | the Alternate modifer. May be Qnone or any of the modifier lisp symbols. */ | 148 | the Alternate modifer. May be Qnone or any of the modifier lisp symbols. */ |
| 158 | Lisp_Object ns_alternate_modifier; | 149 | Lisp_Object ns_alternate_modifier; |
| @@ -177,10 +168,6 @@ Lisp_Object ns_antialias_text; | |||
| 177 | no way to control this behavior. */ | 168 | no way to control this behavior. */ |
| 178 | float ns_antialias_threshold; | 169 | float ns_antialias_threshold; |
| 179 | 170 | ||
| 180 | /* Controls use of an undocumented CG function to do Quickdraw-style font | ||
| 181 | smoothing (less heavy) instead of regular Quartz smoothing. */ | ||
| 182 | Lisp_Object ns_use_qd_smoothing; | ||
| 183 | |||
| 184 | /* Used to pick up AppleHighlightColor on OS X */ | 171 | /* Used to pick up AppleHighlightColor on OS X */ |
| 185 | NSString *ns_selection_color; | 172 | NSString *ns_selection_color; |
| 186 | 173 | ||
| @@ -3520,7 +3507,6 @@ ns_set_default_prefs () | |||
| 3520 | ns_function_modifier = Qnone; | 3507 | ns_function_modifier = Qnone; |
| 3521 | ns_antialias_text = Qt; | 3508 | ns_antialias_text = Qt; |
| 3522 | ns_antialias_threshold = 10.0; /* not exposed to lisp side */ | 3509 | ns_antialias_threshold = 10.0; /* not exposed to lisp side */ |
| 3523 | ns_use_qd_smoothing = Qnil; | ||
| 3524 | ns_confirm_quit = Qnil; | 3510 | ns_confirm_quit = Qnil; |
| 3525 | } | 3511 | } |
| 3526 | 3512 | ||
| @@ -3789,7 +3775,7 @@ ns_term_init (Lisp_Object display_name) | |||
| 3789 | 3775 | ||
| 3790 | /* Read various user defaults. */ | 3776 | /* Read various user defaults. */ |
| 3791 | ns_set_default_prefs (); | 3777 | ns_set_default_prefs (); |
| 3792 | if (!ns_no_defaults) | 3778 | if (!inhibit_x_resources) |
| 3793 | { | 3779 | { |
| 3794 | ns_default ("GSFontAntiAlias", &ns_antialias_text, | 3780 | ns_default ("GSFontAntiAlias", &ns_antialias_text, |
| 3795 | Qt, Qnil, NO, NO); | 3781 | Qt, Qnil, NO, NO); |
| @@ -5021,10 +5007,9 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5021 | } | 5007 | } |
| 5022 | #endif /* NS_IMPL_COCOA */ | 5008 | #endif /* NS_IMPL_COCOA */ |
| 5023 | 5009 | ||
| 5024 | // Calling x_set_window_size tends to get us into inf-loops | 5010 | /* Avoid loop under GNUstep due to call at beginning of this function. |
| 5025 | // (x_set_window_size causes a resize which causes | 5011 | (x_set_window_size causes a resize which causes |
| 5026 | // a "windowDidResize" which calls x_set_window_size). | 5012 | a "windowDidResize" which calls x_set_window_size). */ |
| 5027 | // At least with GNUStep, don't know about MacOSX. --Stef | ||
| 5028 | #ifndef NS_IMPL_GNUSTEP | 5013 | #ifndef NS_IMPL_GNUSTEP |
| 5029 | if (cols > 0 && rows > 0) | 5014 | if (cols > 0 && rows > 0) |
| 5030 | x_set_window_size (emacsframe, 0, cols, rows); | 5015 | x_set_window_size (emacsframe, 0, cols, rows); |
| @@ -5247,7 +5232,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5247 | result.origin.y = defaultFrame.origin.y; | 5232 | result.origin.y = defaultFrame.origin.y; |
| 5248 | } | 5233 | } |
| 5249 | 5234 | ||
| 5250 | /* A windowWillResize does not get generated at least on Tiger. */ | 5235 | /* A windowWillResize does not get generated on Tiger or Leopard. */ |
| 5251 | [self windowWillResize: sender toSize: result.size]; | 5236 | [self windowWillResize: sender toSize: result.size]; |
| 5252 | return result; | 5237 | return result; |
| 5253 | } | 5238 | } |
| @@ -6236,9 +6221,6 @@ allowing it to be used at a lower level for accented character entry."); | |||
| 6236 | DEFVAR_LISP ("ns-antialias-text", &ns_antialias_text, | 6221 | DEFVAR_LISP ("ns-antialias-text", &ns_antialias_text, |
| 6237 | "Non-nil (the default) means to render text antialiased. Only has an effect on OS X Panther and above."); | 6222 | "Non-nil (the default) means to render text antialiased. Only has an effect on OS X Panther and above."); |
| 6238 | 6223 | ||
| 6239 | DEFVAR_LISP ("ns-use-qd-smoothing", &ns_use_qd_smoothing, | ||
| 6240 | "Whether to render text using QuickDraw (less heavy) antialiasing. Only has an effect on OS X Panther and above. Default is nil (use Quartz smoothing)."); | ||
| 6241 | |||
| 6242 | DEFVAR_LISP ("ns-confirm-quit", &ns_confirm_quit, | 6224 | DEFVAR_LISP ("ns-confirm-quit", &ns_confirm_quit, |
| 6243 | "Whether to confirm application quit using dialog."); | 6225 | "Whether to confirm application quit using dialog."); |
| 6244 | 6226 | ||