mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-25 07:28:20 +00:00
Avoid aborting due to errors in arguments of 'set-face-attribute'
* src/xfaces.c (Finternal_set_lisp_face_attribute): Check the FRAME argument before using it. This avoids gratuitous aborts in Emacs built with --enable-checking when the luser was unlucky enough to get the argument list in wrong order.
This commit is contained in:
parent
bdfbe6deff
commit
fbfd4787fb
@ -2678,9 +2678,10 @@ FRAME 0 means change the face on all frames, and change the default
|
|||||||
{
|
{
|
||||||
if (NILP (frame))
|
if (NILP (frame))
|
||||||
frame = selected_frame;
|
frame = selected_frame;
|
||||||
f = XFRAME (frame);
|
|
||||||
|
|
||||||
CHECK_LIVE_FRAME (frame);
|
CHECK_LIVE_FRAME (frame);
|
||||||
|
f = XFRAME (frame);
|
||||||
|
|
||||||
lface = lface_from_face_name (f, face, false);
|
lface = lface_from_face_name (f, face, false);
|
||||||
|
|
||||||
/* If a frame-local face doesn't exist yet, create one. */
|
/* If a frame-local face doesn't exist yet, create one. */
|
||||||
|
Loading…
Reference in New Issue
Block a user