aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2009-09-24 16:59:14 +0000
committerJuanma Barranquero2009-09-24 16:59:14 +0000
commitfeabfb6c7204ea224417589554a7f4b9a72a137d (patch)
tree24cfaeb1737941ec521872daf98a3dbf00faa837 /src
parent9ccd2bb378b7a1df0d8cd4650a816e12f2fc3050 (diff)
downloademacs-feabfb6c7204ea224417589554a7f4b9a72a137d.tar.gz
emacs-feabfb6c7204ea224417589554a7f4b9a72a137d.zip
* frame.c (xrdb_get_resource): Return nil for empty string resources;
some parts of Emacs code (like font selection) don't grok them. See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/frame.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5375574b2a2..66e0e7e034d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12009-09-24 Juanma Barranquero <lekktu@gmail.com>
2
3 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4 some parts of Emacs code (like font selection) don't grok them. See
5 http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
6
12009-09-24 Andreas Schwab <schwab@redhat.com> 72009-09-24 Andreas Schwab <schwab@redhat.com>
2 8
3 * coding.c (decode_coding_iso_2022): Fix operator precedence. 9 * coding.c (decode_coding_iso_2022): Fix operator precedence.
diff --git a/src/frame.c b/src/frame.c
index b18446d38b6..a74a0987453 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3854,7 +3854,7 @@ xrdb_get_resource (rdb, attribute, class, component, subclass)
3854 3854
3855 value = x_get_string_resource (rdb, name_key, class_key); 3855 value = x_get_string_resource (rdb, name_key, class_key);
3856 3856
3857 if (value != (char *) 0) 3857 if (value != (char *) 0 && *value)
3858 return build_string (value); 3858 return build_string (value);
3859 else 3859 else
3860 return Qnil; 3860 return Qnil;