aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 323d9594de5..95e52e05c51 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -208,10 +208,11 @@ check_x ()
208 error ("X windows are not in use or not initialized"); 208 error ("X windows are not in use or not initialized");
209} 209}
210 210
211/* Nonzero if using X for display. */ 211/* Nonzero if we can use mouse menus.
212 You should not call this unless HAVE_MENUS is defined. */
212 213
213int 214int
214using_x_p () 215have_menus_p ()
215{ 216{
216 return x_in_use; 217 return x_in_use;
217} 218}
@@ -233,7 +234,7 @@ check_x_frame (frame)
233 f = XFRAME (frame); 234 f = XFRAME (frame);
234 } 235 }
235 if (! FRAME_X_P (f)) 236 if (! FRAME_X_P (f))
236 error ("non-X frame used"); 237 error ("Non-X frame used");
237 return f; 238 return f;
238} 239}
239 240
@@ -263,7 +264,7 @@ check_x_display_info (frame)
263 CHECK_LIVE_FRAME (frame, 0); 264 CHECK_LIVE_FRAME (frame, 0);
264 f = XFRAME (frame); 265 f = XFRAME (frame);
265 if (! FRAME_X_P (f)) 266 if (! FRAME_X_P (f))
266 error ("non-X frame used"); 267 error ("Non-X frame used");
267 return FRAME_X_DISPLAY_INFO (f); 268 return FRAME_X_DISPLAY_INFO (f);
268 } 269 }
269} 270}
@@ -1584,7 +1585,7 @@ x_set_font (f, arg, oldval)
1584 UNBLOCK_INPUT; 1585 UNBLOCK_INPUT;
1585 1586
1586 if (EQ (result, Qnil)) 1587 if (EQ (result, Qnil))
1587 error ("Font \"%s\" is not defined", XSTRING (arg)->data); 1588 error ("Font `%s' is not defined", XSTRING (arg)->data);
1588 else if (EQ (result, Qt)) 1589 else if (EQ (result, Qt))
1589 error ("the characters of the given font have varying widths"); 1590 error ("the characters of the given font have varying widths");
1590 else if (STRINGP (result)) 1591 else if (STRINGP (result))
@@ -3262,7 +3263,7 @@ even if they match PATTERN and FACE.")
3262 3263
3263 /* Don't die if we get called with a terminal frame. */ 3264 /* Don't die if we get called with a terminal frame. */
3264 if (! FRAME_X_P (f)) 3265 if (! FRAME_X_P (f))
3265 error ("non-X frame used in `x-list-fonts'"); 3266 error ("Non-X frame used in `x-list-fonts'");
3266 3267
3267 face_id = face_name_id_number (f, face); 3268 face_id = face_name_id_number (f, face);
3268 3269