mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
(x_kill_gs_process): Recognize if someone has cleared
the image cache under us.
This commit is contained in:
parent
ee39b98802
commit
daba764314
2 changed files with 8 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2001-09-25 Gerd Moellmann <gerd@gnu.org>
|
||||
|
||||
* xfns.c (x_kill_gs_process): Recognize if someone has cleared
|
||||
the image cache under us.
|
||||
|
||||
* xdisp.c (display_mode_element): If the mode element is a symbol
|
||||
with a string value, use that string's multibyteness for
|
||||
displaying.
|
||||
|
|
|
|||
|
|
@ -10117,9 +10117,13 @@ x_kill_gs_process (pixmap, f)
|
|||
if (c->images[i]->pixmap == pixmap)
|
||||
break;
|
||||
|
||||
/* Should someone in between have cleared the image cache, for
|
||||
instance, give up. */
|
||||
if (i == c->used)
|
||||
return;
|
||||
|
||||
/* Kill the GS process. We should have found PIXMAP in the image
|
||||
cache and its image should contain a process object. */
|
||||
xassert (i < c->used);
|
||||
img = c->images[i];
|
||||
xassert (PROCESSP (img->data.lisp_val));
|
||||
Fkill_process (img->data.lisp_val, Qnil);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue