]> git.eshelyaron.com Git - emacs.git/commitdiff
* fileio.c (emacs_readlinkat, Finsert_file_contents):
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 3 Oct 2014 05:31:17 +0000 (09:31 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 3 Oct 2014 05:31:17 +0000 (09:31 +0400)
* w32fns.c, xfns.c (x_create_tip_frame): Use AUTO_STRING.

src/ChangeLog
src/fileio.c
src/w32fns.c
src/xfns.c

index 6a4ef3a1dd963455541f7524d9ca201e608e7b78..3b263892c1e0efff21de506e326142e4e8c0862c 100644 (file)
@@ -9,6 +9,9 @@
        Adjust users.
        * gmalloc.c (min): Tiny style change.
 
+       * fileio.c (emacs_readlinkat, Finsert_file_contents):
+       * w32fns.c, xfns.c (x_create_tip_frame): Use AUTO_STRING.
+
 2014-10-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix x-focus-frame bug with "Not an in-range integer" (Bug#18586).
index d73d2303711fc632bb3980156436dd92e6542f90..4ba1c5914e81ff5ca225e300bcb389cdcd3054ab 100644 (file)
@@ -2691,7 +2691,10 @@ emacs_readlinkat (int fd, char const *filename)
 
   val = build_unibyte_string (buf);
   if (buf[0] == '/' && strchr (buf, ':'))
-    val = concat2 (build_unibyte_string ("/:"), val);
+    {
+      AUTO_STRING (slash_colon, "/:");
+      val = concat2 (slash_colon, val);
+    }
   if (buf != readlink_buf)
     xfree (buf);
   val = DECODE_FILE (val);
@@ -3645,13 +3648,14 @@ by calling `format-decode', which see.  */)
                report_file_error ("Read error", orig_filename);
              else if (nread > 0)
                {
+                 AUTO_STRING (name, " *code-converting-work*");
                  struct buffer *prev = current_buffer;
                  Lisp_Object workbuf;
                  struct buffer *buf;
 
                  record_unwind_current_buffer ();
 
-                 workbuf = Fget_buffer_create (build_string (" *code-converting-work*"));
+                 workbuf = Fget_buffer_create (name);
                  buf = XBUFFER (workbuf);
 
                  delete_all_overlays (buf);
index 98eb8e9f97b00c66f1f0a42023423ae45259a523..e61a438622f83a23936a721cad75d075295ac85d 100644 (file)
@@ -5653,7 +5653,8 @@ x_create_tip_frame (struct w32_display_info *dpyinfo,
   f->wants_modeline = 0;
   XSETFRAME (frame, f);
 
-  buffer = Fget_buffer_create (build_string (" *tip*"));
+  AUTO_STRING (tip, " *tip*");
+  buffer = Fget_buffer_create (tip);
   /* Use set_window_buffer instead of Fset_window_buffer (see
      discussion of bug#11984, bug#12025, bug#12026).  */
   set_window_buffer (FRAME_ROOT_WINDOW (f), buffer, 0, 0);
index 81d7bac858bf76bc2874d373766e64271ca3fc02..7fd6d9070b20e102374157be1570ef4ea2ba4ef3 100644 (file)
@@ -4829,7 +4829,8 @@ x_create_tip_frame (struct x_display_info *dpyinfo,
   f = make_frame (1);
   XSETFRAME (frame, f);
 
-  buffer = Fget_buffer_create (build_string (" *tip*"));
+  AUTO_STRING (tip, " *tip*");
+  buffer = Fget_buffer_create (tip);
   /* Use set_window_buffer instead of Fset_window_buffer (see
      discussion of bug#11984, bug#12025, bug#12026).  */
   set_window_buffer (FRAME_ROOT_WINDOW (f), buffer, 0, 0);