From 386a49d30bc63ed6500fcf5ab3d22552ca1c5fdf Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Fri, 18 Sep 2009 15:12:54 +0000 Subject: [PATCH] (x_get_string_resource): Ape just-previous changes to other platform versions. Drop support for emacs-20-style face specs. --- src/nsfns.m | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/nsfns.m b/src/nsfns.m index 136ae0310c1..f760aa63957 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2139,15 +2139,12 @@ x_get_string_resource (XrmDatabase rdb, char *name, char *class) const char *res; check_ns (); - /* Support emacs-20-style face resources for backwards compatibility */ - if (!strncmp (toCheck, "Face", 4)) - toCheck = name + (!strncmp (name, "emacs.", 6) ? 6 : 0); + if (inhibit_x_resources) + /* --quick was passed, so this is a no-op. */ + return NULL; -/*fprintf (stderr, "Checking '%s'\n", toCheck); */ - - res = ns_no_defaults ? NULL : - [[[NSUserDefaults standardUserDefaults] objectForKey: - [NSString stringWithUTF8String: toCheck]] UTF8String]; + res = [[[NSUserDefaults standardUserDefaults] objectForKey: + [NSString stringWithUTF8String: toCheck]] UTF8String]; return !res ? NULL : (!strncasecmp (res, "YES", 3) ? "true" : (!strncasecmp (res, "NO", 2) ? "false" : res)); -- 2.39.5