mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-02 10:11:05 -08:00
* 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
This commit is contained in:
parent
9ccd2bb378
commit
feabfb6c72
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2009-09-24 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* 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
|
||||
|
||||
2009-09-24 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
* coding.c (decode_coding_iso_2022): Fix operator precedence.
|
||||
|
|
|
|||
|
|
@ -3854,7 +3854,7 @@ xrdb_get_resource (rdb, attribute, class, component, subclass)
|
|||
|
||||
value = x_get_string_resource (rdb, name_key, class_key);
|
||||
|
||||
if (value != (char *) 0)
|
||||
if (value != (char *) 0 && *value)
|
||||
return build_string (value);
|
||||
else
|
||||
return Qnil;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue