diff options
| author | Eli Zaretskii | 2014-03-03 21:58:20 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2014-03-03 21:58:20 +0200 |
| commit | 757c70af04476ffdaf24cee8d0d2ecd175635aeb (patch) | |
| tree | c5942ba5aed812c53155cea55f8562e874f8f053 /src | |
| parent | c19ad068c591a269900e8d9509021efc0ebc93d6 (diff) | |
| download | emacs-757c70af04476ffdaf24cee8d0d2ecd175635aeb.tar.gz emacs-757c70af04476ffdaf24cee8d0d2ecd175635aeb.zip | |
Fix bug #16930 with broken build --without-x.
src/font.c (Fframe_font_cache): Fix last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/font.c | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ecf8503117c..d23edda95a2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2014-03-03 Eli Zaretskii <eliz@gnu.org> | 1 | 2014-03-03 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * font.c (Fframe_font_cache): Fix last change. (Bug#16930) | ||
| 4 | |||
| 3 | * gmalloc.c (aligned_alloc): Fix adjustment of size of the | 5 | * gmalloc.c (aligned_alloc): Fix adjustment of size of the |
| 4 | allocated buffer due to alignment. | 6 | allocated buffer due to alignment. |
| 5 | (freehook): If the block to be freed was allocated by | 7 | (freehook): If the block to be freed was allocated by |
diff --git a/src/font.c b/src/font.c index 4c27e1fe867..b49664b5f31 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -4850,7 +4850,14 @@ DEFUN ("frame-font-cache", Fframe_font_cache, Sframe_font_cache, 0, 1, 0, | |||
| 4850 | If FRAME is omitted or nil, use the selected frame. */) | 4850 | If FRAME is omitted or nil, use the selected frame. */) |
| 4851 | (Lisp_Object frame) | 4851 | (Lisp_Object frame) |
| 4852 | { | 4852 | { |
| 4853 | return FRAME_DISPLAY_INFO (decode_live_frame (frame))->name_list_element; | 4853 | #ifdef HAVE_WINDOW_SYSTEM |
| 4854 | struct frame *f = decode_live_frame (frame); | ||
| 4855 | |||
| 4856 | if (FRAME_WINDOW_P (f)) | ||
| 4857 | return FRAME_DISPLAY_INFO (f)->name_list_element; | ||
| 4858 | else | ||
| 4859 | #endif | ||
| 4860 | return Qnil; | ||
| 4854 | } | 4861 | } |
| 4855 | 4862 | ||
| 4856 | #endif /* FONT_DEBUG */ | 4863 | #endif /* FONT_DEBUG */ |