aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-08-15 17:16:28 -0700
committerPaul Eggert2015-08-15 17:19:17 -0700
commit59b5141dd7247260cbc383e0bc2afde139d55670 (patch)
treef9564ecfe86f381315848613ed2f4f8a2e9b2fbb /src
parent208cfda3aa174d81952ff35272a467f8cb7e539e (diff)
downloademacs-59b5141dd7247260cbc383e0bc2afde139d55670.tar.gz
emacs-59b5141dd7247260cbc383e0bc2afde139d55670.zip
Fix quoting in Fformat calls
* src/image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load) (xpm_load, xpm_load_image, pbm_load, png_load_body) (jpeg_load_body, tiff_load, gif_load, imagemagick_load_image) (imagemagick_load, svg_load, svg_load_image, gs_load) (x_kill_gs_process): * src/lread.c (load_warn_old_style_backquotes): * src/xfaces.c (load_pixmap): * src/xselect.c (x_clipboard_manager_error_1): Quote diagnostics according to user preference when calling Fformat or its derivatives.
Diffstat (limited to 'src')
-rw-r--r--src/image.c154
-rw-r--r--src/lread.c3
-rw-r--r--src/xfaces.c2
-rw-r--r--src/xselect.c6
4 files changed, 92 insertions, 73 deletions
diff --git a/src/image.c b/src/image.c
index 313419b3232..fb8c6e79168 100644
--- a/src/image.c
+++ b/src/image.c
@@ -2794,7 +2794,7 @@ xbm_read_bitmap_data (struct frame *f, unsigned char *contents, unsigned char *e
2794 if (!check_image_size (f, *width, *height)) 2794 if (!check_image_size (f, *width, *height))
2795 { 2795 {
2796 if (!inhibit_image_error) 2796 if (!inhibit_image_error)
2797 image_error ("Invalid image size (see `max-image-size')"); 2797 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
2798 goto failure; 2798 goto failure;
2799 } 2799 }
2800 else if (data == NULL) 2800 else if (data == NULL)
@@ -2939,13 +2939,14 @@ xbm_load_image (struct frame *f, struct image *img, unsigned char *contents,
2939 if (img->pixmap == NO_PIXMAP) 2939 if (img->pixmap == NO_PIXMAP)
2940 { 2940 {
2941 x_clear_image (f, img); 2941 x_clear_image (f, img);
2942 image_error ("Unable to create X pixmap for `%s'", img->spec); 2942 image_error ("Unable to create X pixmap for "uLSQM"%s"uRSQM,
2943 img->spec);
2943 } 2944 }
2944 else 2945 else
2945 success_p = 1; 2946 success_p = 1;
2946 } 2947 }
2947 else 2948 else
2948 image_error ("Error loading XBM image `%s'", img->spec); 2949 image_error ("Error loading XBM image "uLSQM"%s"uRSQM, img->spec);
2949 2950
2950 return success_p; 2951 return success_p;
2951} 2952}
@@ -2986,14 +2987,14 @@ xbm_load (struct frame *f, struct image *img)
2986 file = x_find_image_file (file_name); 2987 file = x_find_image_file (file_name);
2987 if (!STRINGP (file)) 2988 if (!STRINGP (file))
2988 { 2989 {
2989 image_error ("Cannot find image file `%s'", file_name); 2990 image_error ("Cannot find image file "uLSQM"%s"uRSQM, file_name);
2990 return 0; 2991 return 0;
2991 } 2992 }
2992 2993
2993 contents = slurp_file (SSDATA (file), &size); 2994 contents = slurp_file (SSDATA (file), &size);
2994 if (contents == NULL) 2995 if (contents == NULL)
2995 { 2996 {
2996 image_error ("Error loading XBM image `%s'", img->spec); 2997 image_error ("Error loading XBM image "uLSQM"%s"uRSQM, img->spec);
2997 return 0; 2998 return 0;
2998 } 2999 }
2999 3000
@@ -3028,7 +3029,8 @@ xbm_load (struct frame *f, struct image *img)
3028 eassert (img->width > 0 && img->height > 0); 3029 eassert (img->width > 0 && img->height > 0);
3029 if (!check_image_size (f, img->width, img->height)) 3030 if (!check_image_size (f, img->width, img->height))
3030 { 3031 {
3031 image_error ("Invalid image size (see `max-image-size')"); 3032 image_error ("Invalid image size (see "
3033 uLSQM"max-image-size"uRSQM")");
3032 return 0; 3034 return 0;
3033 } 3035 }
3034 } 3036 }
@@ -3105,7 +3107,8 @@ xbm_load (struct frame *f, struct image *img)
3105 success_p = 1; 3107 success_p = 1;
3106 else 3108 else
3107 { 3109 {
3108 image_error ("Unable to create pixmap for XBM image `%s'", 3110 image_error (("Unable to create pixmap for XBM image "
3111 uLSQM"%s"uRSQM),
3109 img->spec); 3112 img->spec);
3110 x_clear_image (f, img); 3113 x_clear_image (f, img);
3111 } 3114 }
@@ -3628,7 +3631,8 @@ xpm_load (struct frame *f, struct image *img)
3628 Lisp_Object file = x_find_image_file (specified_file); 3631 Lisp_Object file = x_find_image_file (specified_file);
3629 if (!STRINGP (file)) 3632 if (!STRINGP (file))
3630 { 3633 {
3631 image_error ("Cannot find image file `%s'", specified_file); 3634 image_error ("Cannot find image file "uLSQM"%s"uRSQM,
3635 specified_file);
3632#ifdef ALLOC_XPM_COLORS 3636#ifdef ALLOC_XPM_COLORS
3633 xpm_free_color_cache (); 3637 xpm_free_color_cache ();
3634#endif 3638#endif
@@ -3659,7 +3663,7 @@ xpm_load (struct frame *f, struct image *img)
3659 Lisp_Object buffer = image_spec_value (img->spec, QCdata, NULL); 3663 Lisp_Object buffer = image_spec_value (img->spec, QCdata, NULL);
3660 if (!STRINGP (buffer)) 3664 if (!STRINGP (buffer))
3661 { 3665 {
3662 image_error ("Invalid image data `%s'", buffer); 3666 image_error ("Invalid image data "uLSQM"%s"uRSQM, buffer);
3663#ifdef ALLOC_XPM_COLORS 3667#ifdef ALLOC_XPM_COLORS
3664 xpm_free_color_cache (); 3668 xpm_free_color_cache ();
3665#endif 3669#endif
@@ -4103,7 +4107,7 @@ xpm_load_image (struct frame *f,
4103 4107
4104 if (!check_image_size (f, width, height)) 4108 if (!check_image_size (f, width, height))
4105 { 4109 {
4106 image_error ("Invalid image size (see `max-image-size')"); 4110 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
4107 goto failure; 4111 goto failure;
4108 } 4112 }
4109 4113
@@ -4293,14 +4297,14 @@ xpm_load (struct frame *f,
4293 file = x_find_image_file (file_name); 4297 file = x_find_image_file (file_name);
4294 if (!STRINGP (file)) 4298 if (!STRINGP (file))
4295 { 4299 {
4296 image_error ("Cannot find image file `%s'", file_name); 4300 image_error ("Cannot find image file "uLSQM"%s"uRSQM, file_name);
4297 return 0; 4301 return 0;
4298 } 4302 }
4299 4303
4300 contents = slurp_file (SSDATA (file), &size); 4304 contents = slurp_file (SSDATA (file), &size);
4301 if (contents == NULL) 4305 if (contents == NULL)
4302 { 4306 {
4303 image_error ("Error loading XPM image `%s'", img->spec); 4307 image_error ("Error loading XPM image "uLSQM"%s"uRSQM, img->spec);
4304 return 0; 4308 return 0;
4305 } 4309 }
4306 4310
@@ -4314,7 +4318,7 @@ xpm_load (struct frame *f,
4314 data = image_spec_value (img->spec, QCdata, NULL); 4318 data = image_spec_value (img->spec, QCdata, NULL);
4315 if (!STRINGP (data)) 4319 if (!STRINGP (data))
4316 { 4320 {
4317 image_error ("Invalid image data `%s'", data); 4321 image_error ("Invalid image data "uLSQM"%s"uRSQM, data);
4318 return 0; 4322 return 0;
4319 } 4323 }
4320 success_p = xpm_load_image (f, img, SDATA (data), 4324 success_p = xpm_load_image (f, img, SDATA (data),
@@ -5268,14 +5272,15 @@ pbm_load (struct frame *f, struct image *img)
5268 file = x_find_image_file (specified_file); 5272 file = x_find_image_file (specified_file);
5269 if (!STRINGP (file)) 5273 if (!STRINGP (file))
5270 { 5274 {
5271 image_error ("Cannot find image file `%s'", specified_file); 5275 image_error ("Cannot find image file "uLSQM"%s"uRSQM,
5276 specified_file);
5272 return 0; 5277 return 0;
5273 } 5278 }
5274 5279
5275 contents = slurp_file (SSDATA (file), &size); 5280 contents = slurp_file (SSDATA (file), &size);
5276 if (contents == NULL) 5281 if (contents == NULL)
5277 { 5282 {
5278 image_error ("Error reading `%s'", file); 5283 image_error ("Error reading "uLSQM"%s"uRSQM, file);
5279 return 0; 5284 return 0;
5280 } 5285 }
5281 5286
@@ -5288,7 +5293,7 @@ pbm_load (struct frame *f, struct image *img)
5288 data = image_spec_value (img->spec, QCdata, NULL); 5293 data = image_spec_value (img->spec, QCdata, NULL);
5289 if (!STRINGP (data)) 5294 if (!STRINGP (data))
5290 { 5295 {
5291 image_error ("Invalid image data `%s'", data); 5296 image_error ("Invalid image data "uLSQM"%s"uRSQM, data);
5292 return 0; 5297 return 0;
5293 } 5298 }
5294 p = SDATA (data); 5299 p = SDATA (data);
@@ -5298,7 +5303,7 @@ pbm_load (struct frame *f, struct image *img)
5298 /* Check magic number. */ 5303 /* Check magic number. */
5299 if (end - p < 2 || *p++ != 'P') 5304 if (end - p < 2 || *p++ != 'P')
5300 { 5305 {
5301 image_error ("Not a PBM image: `%s'", img->spec); 5306 image_error ("Not a PBM image: "uLSQM"%s"uRSQM, img->spec);
5302 error: 5307 error:
5303 xfree (contents); 5308 xfree (contents);
5304 img->pixmap = NO_PIXMAP; 5309 img->pixmap = NO_PIXMAP;
@@ -5332,7 +5337,7 @@ pbm_load (struct frame *f, struct image *img)
5332 break; 5337 break;
5333 5338
5334 default: 5339 default:
5335 image_error ("Not a PBM image: `%s'", img->spec); 5340 image_error ("Not a PBM image: "uLSQM"%s"uRSQM, img->spec);
5336 goto error; 5341 goto error;
5337 } 5342 }
5338 5343
@@ -5358,7 +5363,7 @@ pbm_load (struct frame *f, struct image *img)
5358 5363
5359 if (!check_image_size (f, width, height)) 5364 if (!check_image_size (f, width, height))
5360 { 5365 {
5361 image_error ("Invalid image size (see `max-image-size')"); 5366 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
5362 goto error; 5367 goto error;
5363 } 5368 }
5364 5369
@@ -5431,7 +5436,8 @@ pbm_load (struct frame *f, struct image *img)
5431 x_destroy_x_image (ximg); 5436 x_destroy_x_image (ximg);
5432#endif 5437#endif
5433 x_clear_image (f, img); 5438 x_clear_image (f, img);
5434 image_error ("Invalid image size in image `%s'", 5439 image_error (("Invalid image size in image "
5440 uLSQM"%s"uRSQM),
5435 img->spec); 5441 img->spec);
5436 goto error; 5442 goto error;
5437 } 5443 }
@@ -5466,7 +5472,7 @@ pbm_load (struct frame *f, struct image *img)
5466 x_destroy_x_image (ximg); 5472 x_destroy_x_image (ximg);
5467#endif 5473#endif
5468 x_clear_image (f, img); 5474 x_clear_image (f, img);
5469 image_error ("Invalid image size in image `%s'", 5475 image_error ("Invalid image size in image "uLSQM"%s"uRSQM,
5470 img->spec); 5476 img->spec);
5471 goto error; 5477 goto error;
5472 } 5478 }
@@ -5510,7 +5516,7 @@ pbm_load (struct frame *f, struct image *img)
5510#else 5516#else
5511 x_destroy_x_image (ximg); 5517 x_destroy_x_image (ximg);
5512#endif 5518#endif
5513 image_error ("Invalid pixel value in image `%s'", 5519 image_error ("Invalid pixel value in image "uLSQM"%s"uRSQM,
5514 img->spec); 5520 img->spec);
5515 goto error; 5521 goto error;
5516 } 5522 }
@@ -5906,7 +5912,8 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
5906 file = x_find_image_file (specified_file); 5912 file = x_find_image_file (specified_file);
5907 if (!STRINGP (file)) 5913 if (!STRINGP (file))
5908 { 5914 {
5909 image_error ("Cannot find image file `%s'", specified_file); 5915 image_error ("Cannot find image file "uLSQM"%s"uRSQM,
5916 specified_file);
5910 return 0; 5917 return 0;
5911 } 5918 }
5912 5919
@@ -5914,7 +5921,7 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
5914 fp = emacs_fopen (SSDATA (file), "rb"); 5921 fp = emacs_fopen (SSDATA (file), "rb");
5915 if (!fp) 5922 if (!fp)
5916 { 5923 {
5917 image_error ("Cannot open image file `%s'", file); 5924 image_error ("Cannot open image file "uLSQM"%s"uRSQM, file);
5918 return 0; 5925 return 0;
5919 } 5926 }
5920 5927
@@ -5923,7 +5930,7 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
5923 || png_sig_cmp (sig, 0, sizeof sig)) 5930 || png_sig_cmp (sig, 0, sizeof sig))
5924 { 5931 {
5925 fclose (fp); 5932 fclose (fp);
5926 image_error ("Not a PNG file: `%s'", file); 5933 image_error ("Not a PNG file: "uLSQM"%s"uRSQM, file);
5927 return 0; 5934 return 0;
5928 } 5935 }
5929 } 5936 }
@@ -5931,7 +5938,7 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
5931 { 5938 {
5932 if (!STRINGP (specified_data)) 5939 if (!STRINGP (specified_data))
5933 { 5940 {
5934 image_error ("Invalid image data `%s'", specified_data); 5941 image_error ("Invalid image data "uLSQM"%s"uRSQM, specified_data);
5935 return 0; 5942 return 0;
5936 } 5943 }
5937 5944
@@ -5944,7 +5951,7 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
5944 if (tbr.len < sizeof sig 5951 if (tbr.len < sizeof sig
5945 || png_sig_cmp (tbr.bytes, 0, sizeof sig)) 5952 || png_sig_cmp (tbr.bytes, 0, sizeof sig))
5946 { 5953 {
5947 image_error ("Not a PNG image: `%s'", img->spec); 5954 image_error ("Not a PNG image: "uLSQM"%s"uRSQM, img->spec);
5948 return 0; 5955 return 0;
5949 } 5956 }
5950 5957
@@ -6012,7 +6019,7 @@ png_load_body (struct frame *f, struct image *img, struct png_load_context *c)
6012 if (! (width <= INT_MAX && height <= INT_MAX 6019 if (! (width <= INT_MAX && height <= INT_MAX
6013 && check_image_size (f, width, height))) 6020 && check_image_size (f, width, height)))
6014 { 6021 {
6015 image_error ("Invalid image size (see `max-image-size')"); 6022 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
6016 goto error; 6023 goto error;
6017 } 6024 }
6018 6025
@@ -6670,20 +6677,21 @@ jpeg_load_body (struct frame *f, struct image *img,
6670 file = x_find_image_file (specified_file); 6677 file = x_find_image_file (specified_file);
6671 if (!STRINGP (file)) 6678 if (!STRINGP (file))
6672 { 6679 {
6673 image_error ("Cannot find image file `%s'", specified_file); 6680 image_error ("Cannot find image file "uLSQM"%s"uRSQM,
6681 specified_file);
6674 return 0; 6682 return 0;
6675 } 6683 }
6676 6684
6677 fp = emacs_fopen (SSDATA (file), "rb"); 6685 fp = emacs_fopen (SSDATA (file), "rb");
6678 if (fp == NULL) 6686 if (fp == NULL)
6679 { 6687 {
6680 image_error ("Cannot open `%s'", file); 6688 image_error ("Cannot open "uLSQM"%s"uRSQM, file);
6681 return 0; 6689 return 0;
6682 } 6690 }
6683 } 6691 }
6684 else if (!STRINGP (specified_data)) 6692 else if (!STRINGP (specified_data))
6685 { 6693 {
6686 image_error ("Invalid image data `%s'", specified_data); 6694 image_error ("Invalid image data "uLSQM"%s"uRSQM, specified_data);
6687 return 0; 6695 return 0;
6688 } 6696 }
6689 6697
@@ -6699,13 +6707,14 @@ jpeg_load_body (struct frame *f, struct image *img,
6699 { 6707 {
6700 char buf[JMSG_LENGTH_MAX]; 6708 char buf[JMSG_LENGTH_MAX];
6701 mgr->cinfo.err->format_message ((j_common_ptr) &mgr->cinfo, buf); 6709 mgr->cinfo.err->format_message ((j_common_ptr) &mgr->cinfo, buf);
6702 image_error ("Error reading JPEG image `%s': %s", img->spec, 6710 image_error ("Error reading JPEG image "uLSQM"%s"uRSQM": %s",
6703 build_string (buf)); 6711 img->spec, build_string (buf));
6704 break; 6712 break;
6705 } 6713 }
6706 6714
6707 case MY_JPEG_INVALID_IMAGE_SIZE: 6715 case MY_JPEG_INVALID_IMAGE_SIZE:
6708 image_error ("Invalid image size (see `max-image-size')"); 6716 image_error ("Invalid image size (see "
6717 uLSQM"max-image-size"uRSQM")");
6709 break; 6718 break;
6710 6719
6711 case MY_JPEG_CANNOT_CREATE_X: 6720 case MY_JPEG_CANNOT_CREATE_X:
@@ -7185,7 +7194,8 @@ tiff_load (struct frame *f, struct image *img)
7185 file = x_find_image_file (specified_file); 7194 file = x_find_image_file (specified_file);
7186 if (!STRINGP (file)) 7195 if (!STRINGP (file))
7187 { 7196 {
7188 image_error ("Cannot find image file `%s'", specified_file); 7197 image_error ("Cannot find image file "uLSQM"%s"uRSQM,
7198 specified_file);
7189 return 0; 7199 return 0;
7190 } 7200 }
7191# ifdef WINDOWSNT 7201# ifdef WINDOWSNT
@@ -7196,7 +7206,7 @@ tiff_load (struct frame *f, struct image *img)
7196 tiff = TIFFOpen (SSDATA (file), "r"); 7206 tiff = TIFFOpen (SSDATA (file), "r");
7197 if (tiff == NULL) 7207 if (tiff == NULL)
7198 { 7208 {
7199 image_error ("Cannot open `%s'", file); 7209 image_error ("Cannot open "uLSQM"%s"uRSQM, file);
7200 return 0; 7210 return 0;
7201 } 7211 }
7202 } 7212 }
@@ -7204,7 +7214,7 @@ tiff_load (struct frame *f, struct image *img)
7204 { 7214 {
7205 if (!STRINGP (specified_data)) 7215 if (!STRINGP (specified_data))
7206 { 7216 {
7207 image_error ("Invalid image data `%s'", specified_data); 7217 image_error ("Invalid image data "uLSQM"%s"uRSQM, specified_data);
7208 return 0; 7218 return 0;
7209 } 7219 }
7210 7220
@@ -7224,7 +7234,8 @@ tiff_load (struct frame *f, struct image *img)
7224 7234
7225 if (!tiff) 7235 if (!tiff)
7226 { 7236 {
7227 image_error ("Cannot open memory source for `%s'", img->spec); 7237 image_error ("Cannot open memory source for "uLSQM"%s"uRSQM,
7238 img->spec);
7228 return 0; 7239 return 0;
7229 } 7240 }
7230 } 7241 }
@@ -7236,8 +7247,9 @@ tiff_load (struct frame *f, struct image *img)
7236 if (! (TYPE_MINIMUM (tdir_t) <= ino && ino <= TYPE_MAXIMUM (tdir_t) 7247 if (! (TYPE_MINIMUM (tdir_t) <= ino && ino <= TYPE_MAXIMUM (tdir_t)
7237 && TIFFSetDirectory (tiff, ino))) 7248 && TIFFSetDirectory (tiff, ino)))
7238 { 7249 {
7239 image_error ("Invalid image number `%s' in image `%s'", 7250 image_error
7240 image, img->spec); 7251 ("Invalid image number "uLSQM"%s"uRSQM" in image "uLSQM"%s"uRSQM,
7252 image, img->spec);
7241 TIFFClose (tiff); 7253 TIFFClose (tiff);
7242 return 0; 7254 return 0;
7243 } 7255 }
@@ -7250,7 +7262,7 @@ tiff_load (struct frame *f, struct image *img)
7250 7262
7251 if (!check_image_size (f, width, height)) 7263 if (!check_image_size (f, width, height))
7252 { 7264 {
7253 image_error ("Invalid image size (see `max-image-size')"); 7265 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
7254 TIFFClose (tiff); 7266 TIFFClose (tiff);
7255 return 0; 7267 return 0;
7256 } 7268 }
@@ -7280,7 +7292,7 @@ tiff_load (struct frame *f, struct image *img)
7280 TIFFClose (tiff); 7292 TIFFClose (tiff);
7281 if (!rc) 7293 if (!rc)
7282 { 7294 {
7283 image_error ("Error reading TIFF image `%s'", img->spec); 7295 image_error ("Error reading TIFF image "uLSQM"%s"uRSQM, img->spec);
7284 xfree (buf); 7296 xfree (buf);
7285 return 0; 7297 return 0;
7286 } 7298 }
@@ -7617,7 +7629,8 @@ gif_load (struct frame *f, struct image *img)
7617 file = x_find_image_file (specified_file); 7629 file = x_find_image_file (specified_file);
7618 if (!STRINGP (file)) 7630 if (!STRINGP (file))
7619 { 7631 {
7620 image_error ("Cannot find image file `%s'", specified_file); 7632 image_error ("Cannot find image file "uLSQM"%s"uRSQM,
7633 specified_file);
7621 return 0; 7634 return 0;
7622 } 7635 }
7623#ifdef WINDOWSNT 7636#ifdef WINDOWSNT
@@ -7629,14 +7642,14 @@ gif_load (struct frame *f, struct image *img)
7629 gif = DGifOpenFileName (SSDATA (file)); 7642 gif = DGifOpenFileName (SSDATA (file));
7630 if (gif == NULL) 7643 if (gif == NULL)
7631 { 7644 {
7632 image_error ("Cannot open `%s'", file); 7645 image_error ("Cannot open "uLSQM"%s"uRSQM, file);
7633 return 0; 7646 return 0;
7634 } 7647 }
7635#else 7648#else
7636 gif = DGifOpenFileName (SSDATA (file), &gif_err); 7649 gif = DGifOpenFileName (SSDATA (file), &gif_err);
7637 if (gif == NULL) 7650 if (gif == NULL)
7638 { 7651 {
7639 image_error ("Cannot open `%s': %s", 7652 image_error ("Cannot open "uLSQM"%s"uRSQM": %s",
7640 file, build_string (GifErrorString (gif_err))); 7653 file, build_string (GifErrorString (gif_err)));
7641 return 0; 7654 return 0;
7642 } 7655 }
@@ -7646,7 +7659,7 @@ gif_load (struct frame *f, struct image *img)
7646 { 7659 {
7647 if (!STRINGP (specified_data)) 7660 if (!STRINGP (specified_data))
7648 { 7661 {
7649 image_error ("Invalid image data `%s'", specified_data); 7662 image_error ("Invalid image data "uLSQM"%s"uRSQM, specified_data);
7650 return 0; 7663 return 0;
7651 } 7664 }
7652 7665
@@ -7660,14 +7673,14 @@ gif_load (struct frame *f, struct image *img)
7660 gif = DGifOpen (&memsrc, gif_read_from_memory); 7673 gif = DGifOpen (&memsrc, gif_read_from_memory);
7661 if (!gif) 7674 if (!gif)
7662 { 7675 {
7663 image_error ("Cannot open memory source `%s'", img->spec); 7676 image_error ("Cannot open memory source "uLSQM"%s"uRSQM, img->spec);
7664 return 0; 7677 return 0;
7665 } 7678 }
7666#else 7679#else
7667 gif = DGifOpen (&memsrc, gif_read_from_memory, &gif_err); 7680 gif = DGifOpen (&memsrc, gif_read_from_memory, &gif_err);
7668 if (!gif) 7681 if (!gif)
7669 { 7682 {
7670 image_error ("Cannot open memory source `%s': %s", 7683 image_error ("Cannot open memory source "uLSQM"%s"uRSQM": %s",
7671 img->spec, build_string (GifErrorString (gif_err))); 7684 img->spec, build_string (GifErrorString (gif_err)));
7672 return 0; 7685 return 0;
7673 } 7686 }
@@ -7677,7 +7690,7 @@ gif_load (struct frame *f, struct image *img)
7677 /* Before reading entire contents, check the declared image size. */ 7690 /* Before reading entire contents, check the declared image size. */
7678 if (!check_image_size (f, gif->SWidth, gif->SHeight)) 7691 if (!check_image_size (f, gif->SWidth, gif->SHeight))
7679 { 7692 {
7680 image_error ("Invalid image size (see `max-image-size')"); 7693 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
7681 gif_close (gif, NULL); 7694 gif_close (gif, NULL);
7682 return 0; 7695 return 0;
7683 } 7696 }
@@ -7686,7 +7699,7 @@ gif_load (struct frame *f, struct image *img)
7686 rc = DGifSlurp (gif); 7699 rc = DGifSlurp (gif);
7687 if (rc == GIF_ERROR || gif->ImageCount <= 0) 7700 if (rc == GIF_ERROR || gif->ImageCount <= 0)
7688 { 7701 {
7689 image_error ("Error reading `%s'", img->spec); 7702 image_error ("Error reading "uLSQM"%s"uRSQM, img->spec);
7690 gif_close (gif, NULL); 7703 gif_close (gif, NULL);
7691 return 0; 7704 return 0;
7692 } 7705 }
@@ -7697,8 +7710,9 @@ gif_load (struct frame *f, struct image *img)
7697 idx = INTEGERP (image_number) ? XFASTINT (image_number) : 0; 7710 idx = INTEGERP (image_number) ? XFASTINT (image_number) : 0;
7698 if (idx < 0 || idx >= gif->ImageCount) 7711 if (idx < 0 || idx >= gif->ImageCount)
7699 { 7712 {
7700 image_error ("Invalid image number `%s' in image `%s'", 7713 image_error
7701 image_number, img->spec); 7714 ("Invalid image number "uLSQM"%s"uRSQM" in image "uLSQM"%s"uRSQM,
7715 image_number, img->spec);
7702 gif_close (gif, NULL); 7716 gif_close (gif, NULL);
7703 return 0; 7717 return 0;
7704 } 7718 }
@@ -7716,7 +7730,7 @@ gif_load (struct frame *f, struct image *img)
7716 7730
7717 if (!check_image_size (f, width, height)) 7731 if (!check_image_size (f, width, height))
7718 { 7732 {
7719 image_error ("Invalid image size (see `max-image-size')"); 7733 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
7720 gif_close (gif, NULL); 7734 gif_close (gif, NULL);
7721 return 0; 7735 return 0;
7722 } 7736 }
@@ -7970,10 +7984,10 @@ gif_load (struct frame *f, struct image *img)
7970 char *error_text = GifErrorString (gif_err); 7984 char *error_text = GifErrorString (gif_err);
7971 7985
7972 if (error_text) 7986 if (error_text)
7973 image_error ("Error closing `%s': %s", 7987 image_error ("Error closing "uLSQM"%s"uRSQM": %s",
7974 img->spec, build_string (error_text)); 7988 img->spec, build_string (error_text));
7975#else 7989#else
7976 image_error ("Error closing `%s'", img->spec); 7990 image_error ("Error closing "uLSQM"%s"uRSQM, img->spec);
7977#endif 7991#endif
7978 } 7992 }
7979 7993
@@ -8514,8 +8528,9 @@ imagemagick_load_image (struct frame *f, struct image *img,
8514 8528
8515 if (ino < 0 || ino >= MagickGetNumberImages (image_wand)) 8529 if (ino < 0 || ino >= MagickGetNumberImages (image_wand))
8516 { 8530 {
8517 image_error ("Invalid image number `%s' in image `%s'", 8531 image_error
8518 image, img->spec); 8532 ("Invalid image number "uLSQM"%s"uRSQM" in image "uLSQM"%s"uRSQM,
8533 image, img->spec);
8519 DestroyMagickWand (image_wand); 8534 DestroyMagickWand (image_wand);
8520 return 0; 8535 return 0;
8521 } 8536 }
@@ -8649,7 +8664,7 @@ imagemagick_load_image (struct frame *f, struct image *img,
8649 if (! (image_width <= INT_MAX && image_height <= INT_MAX 8664 if (! (image_width <= INT_MAX && image_height <= INT_MAX
8650 && check_image_size (f, image_width, image_height))) 8665 && check_image_size (f, image_width, image_height)))
8651 { 8666 {
8652 image_error ("Invalid image size (see `max-image-size')"); 8667 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
8653 goto imagemagick_error; 8668 goto imagemagick_error;
8654 } 8669 }
8655 8670
@@ -8784,7 +8799,7 @@ imagemagick_load_image (struct frame *f, struct image *img,
8784 8799
8785 MagickWandTerminus (); 8800 MagickWandTerminus ();
8786 /* TODO more cleanup. */ 8801 /* TODO more cleanup. */
8787 image_error ("Error parsing IMAGEMAGICK image `%s'", img->spec); 8802 image_error ("Error parsing IMAGEMAGICK image "uLSQM"%s"uRSQM, img->spec);
8788 return 0; 8803 return 0;
8789} 8804}
8790 8805
@@ -8808,7 +8823,7 @@ imagemagick_load (struct frame *f, struct image *img)
8808 file = x_find_image_file (file_name); 8823 file = x_find_image_file (file_name);
8809 if (!STRINGP (file)) 8824 if (!STRINGP (file))
8810 { 8825 {
8811 image_error ("Cannot find image file `%s'", file_name); 8826 image_error ("Cannot find image file "uLSQM"%s"uRSQM, file_name);
8812 return 0; 8827 return 0;
8813 } 8828 }
8814#ifdef WINDOWSNT 8829#ifdef WINDOWSNT
@@ -8825,7 +8840,7 @@ imagemagick_load (struct frame *f, struct image *img)
8825 data = image_spec_value (img->spec, QCdata, NULL); 8840 data = image_spec_value (img->spec, QCdata, NULL);
8826 if (!STRINGP (data)) 8841 if (!STRINGP (data))
8827 { 8842 {
8828 image_error ("Invalid image data `%s'", data); 8843 image_error ("Invalid image data "uLSQM"%s"uRSQM, data);
8829 return 0; 8844 return 0;
8830 } 8845 }
8831 success_p = imagemagick_load_image (f, img, SDATA (data), 8846 success_p = imagemagick_load_image (f, img, SDATA (data),
@@ -9089,7 +9104,7 @@ svg_load (struct frame *f, struct image *img)
9089 file = x_find_image_file (file_name); 9104 file = x_find_image_file (file_name);
9090 if (!STRINGP (file)) 9105 if (!STRINGP (file))
9091 { 9106 {
9092 image_error ("Cannot find image file `%s'", file_name); 9107 image_error ("Cannot find image file "uLSQM"%s"uRSQM, file_name);
9093 return 0; 9108 return 0;
9094 } 9109 }
9095 9110
@@ -9097,7 +9112,7 @@ svg_load (struct frame *f, struct image *img)
9097 contents = slurp_file (SSDATA (file), &size); 9112 contents = slurp_file (SSDATA (file), &size);
9098 if (contents == NULL) 9113 if (contents == NULL)
9099 { 9114 {
9100 image_error ("Error loading SVG image `%s'", img->spec); 9115 image_error ("Error loading SVG image "uLSQM"%s"uRSQM, img->spec);
9101 return 0; 9116 return 0;
9102 } 9117 }
9103 /* If the file was slurped into memory properly, parse it. */ 9118 /* If the file was slurped into memory properly, parse it. */
@@ -9113,7 +9128,7 @@ svg_load (struct frame *f, struct image *img)
9113 data = image_spec_value (img->spec, QCdata, NULL); 9128 data = image_spec_value (img->spec, QCdata, NULL);
9114 if (!STRINGP (data)) 9129 if (!STRINGP (data))
9115 { 9130 {
9116 image_error ("Invalid image data `%s'", data); 9131 image_error ("Invalid image data "uLSQM"%s"uRSQM, data);
9117 return 0; 9132 return 0;
9118 } 9133 }
9119 original_filename = BVAR (current_buffer, filename); 9134 original_filename = BVAR (current_buffer, filename);
@@ -9180,7 +9195,7 @@ svg_load_image (struct frame *f, /* Pointer to emacs frame structure. *
9180 rsvg_handle_get_dimensions (rsvg_handle, &dimension_data); 9195 rsvg_handle_get_dimensions (rsvg_handle, &dimension_data);
9181 if (! check_image_size (f, dimension_data.width, dimension_data.height)) 9196 if (! check_image_size (f, dimension_data.width, dimension_data.height))
9182 { 9197 {
9183 image_error ("Invalid image size (see `max-image-size')"); 9198 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
9184 goto rsvg_error; 9199 goto rsvg_error;
9185 } 9200 }
9186 9201
@@ -9312,7 +9327,7 @@ svg_load_image (struct frame *f, /* Pointer to emacs frame structure. *
9312 g_object_unref (rsvg_handle); 9327 g_object_unref (rsvg_handle);
9313 /* FIXME: Use error->message so the user knows what is the actual 9328 /* FIXME: Use error->message so the user knows what is the actual
9314 problem with the image. */ 9329 problem with the image. */
9315 image_error ("Error parsing SVG image `%s'", img->spec); 9330 image_error ("Error parsing SVG image "uLSQM"%s"uRSQM, img->spec);
9316 g_error_free (err); 9331 g_error_free (err);
9317 return 0; 9332 return 0;
9318} 9333}
@@ -9465,7 +9480,7 @@ gs_load (struct frame *f, struct image *img)
9465 if (! (in_width <= INT_MAX && in_height <= INT_MAX 9480 if (! (in_width <= INT_MAX && in_height <= INT_MAX
9466 && check_image_size (f, in_width, in_height))) 9481 && check_image_size (f, in_width, in_height)))
9467 { 9482 {
9468 image_error ("Invalid image size (see `max-image-size')"); 9483 image_error ("Invalid image size (see "uLSQM"max-image-size"uRSQM")");
9469 return 0; 9484 return 0;
9470 } 9485 }
9471 img->width = in_width; 9486 img->width = in_width;
@@ -9486,7 +9501,7 @@ gs_load (struct frame *f, struct image *img)
9486 9501
9487 if (!img->pixmap) 9502 if (!img->pixmap)
9488 { 9503 {
9489 image_error ("Unable to create pixmap for `%s'", img->spec); 9504 image_error ("Unable to create pixmap for "uLSQM"%s"uRSQM, img->spec);
9490 return 0; 9505 return 0;
9491 } 9506 }
9492 9507
@@ -9598,7 +9613,8 @@ x_kill_gs_process (Pixmap pixmap, struct frame *f)
9598#endif 9613#endif
9599 } 9614 }
9600 else 9615 else
9601 image_error ("Cannot get X image of `%s'; colors will not be freed", 9616 image_error (("Cannot get X image of "uLSQM"%s"uRSQM";"
9617 " colors will not be freed"),
9602 img->spec); 9618 img->spec);
9603 9619
9604 unblock_input (); 9620 unblock_input ();
diff --git a/src/lread.c b/src/lread.c
index fe4d3672b44..ebd594c1a16 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -947,7 +947,8 @@ load_warn_old_style_backquotes (Lisp_Object file)
947{ 947{
948 if (!NILP (Vold_style_backquotes)) 948 if (!NILP (Vold_style_backquotes))
949 { 949 {
950 AUTO_STRING (format, "Loading `%s': old-style backquotes detected!"); 950 Lisp_Object format = build_string ("Loading "uLSQM"%s"uRSQM
951 ": old-style backquotes detected!");
951 CALLN (Fmessage, format, file); 952 CALLN (Fmessage, format, file);
952 } 953 }
953} 954}
diff --git a/src/xfaces.c b/src/xfaces.c
index ce300e7ef23..d519578198b 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -797,7 +797,7 @@ load_pixmap (struct frame *f, Lisp_Object name)
797 797
798 if (bitmap_id < 0) 798 if (bitmap_id < 0)
799 { 799 {
800 add_to_log ("Invalid or undefined bitmap `%s'", name); 800 add_to_log ("Invalid or undefined bitmap "uLSQM"%s"uRSQM, name);
801 bitmap_id = 0; 801 bitmap_id = 0;
802 } 802 }
803 else 803 else
diff --git a/src/xselect.c b/src/xselect.c
index bd2d65e795f..b54ddd83237 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -2147,8 +2147,10 @@ x_clipboard_manager_save (Lisp_Object frame)
2147static Lisp_Object 2147static Lisp_Object
2148x_clipboard_manager_error_1 (Lisp_Object err) 2148x_clipboard_manager_error_1 (Lisp_Object err)
2149{ 2149{
2150 AUTO_STRING (format, "X clipboard manager error: %s\n\ 2150 Lisp_Object format
2151If the problem persists, set `x-select-enable-clipboard-manager' to nil."); 2151 = build_string ("X clipboard manager error: %s\n"
2152 "If the problem persists, set "
2153 uLSQM"x-select-enable-clipboard-manager"uRSQM" to nil.");
2152 CALLN (Fmessage, format, CAR (CDR (err))); 2154 CALLN (Fmessage, format, CAR (CDR (err)));
2153 return Qnil; 2155 return Qnil;
2154} 2156}