]> code.delx.au - gnu-emacs/commitdiff
Miscellaneous tiny fixes here and there.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 12 Jan 2015 17:14:43 +0000 (20:14 +0300)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 12 Jan 2015 17:14:43 +0000 (20:14 +0300)
* fileio.c (Ffile_name_as_directory, Fdirectory_file_name):
Remove dead NILP check.
* image.c (Flookup_image): Use regular format for docstring.
* keyboard.c (apply_modifiers_uncached): Use stpcpy.

src/ChangeLog
src/fileio.c
src/image.c
src/keyboard.c

index ea6274f11f123b1211f0dadf44a31ae72f3782cd..32f17e1a863f9133cb4a8ecd9fde78db3500b548 100644 (file)
@@ -1,3 +1,10 @@
+2015-01-12  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * fileio.c (Ffile_name_as_directory, Fdirectory_file_name):
+       Remove dead NILP check.
+       * image.c (Flookup_image): Use regular format for docstring.
+       * keyboard.c (apply_modifiers_uncached): Use stpcpy.
+
 2015-01-12  Martin Rudalics  <rudalics@gmx.at>
 
        * dispnew.c (change_frame_size_1): Pass Qchange_frame_size to
index 15c6f9123a29bdeaf919949d79d46d810d68dd95..cd3c485da0f8f81486a6a922bbe08abc088b3544 100644 (file)
@@ -522,8 +522,6 @@ For a Unix-syntax file name, just appends a slash.  */)
   USE_SAFE_ALLOCA;
 
   CHECK_STRING (file);
-  if (NILP (file))
-    return Qnil;
 
   /* If the file name has special constructs in it,
      call the corresponding file handler.  */
@@ -591,9 +589,6 @@ In Unix-syntax, this function just removes the final slash.  */)
 
   CHECK_STRING (directory);
 
-  if (NILP (directory))
-    return Qnil;
-
   /* If the file name has special constructs in it,
      call the corresponding file handler.  */
   handler = Ffind_file_name_handler (directory, Qdirectory_file_name);
index 5d08a890234deb7165e454340bd3fab8d4c42b0a..9c09c5596b93ad53d20d6e32bc2351a32b853198 100644 (file)
@@ -9288,7 +9288,8 @@ DEFUN ("imagep", Fimagep, Simagep, 1, 1, 0,
 }
 
 
-DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "")
+DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0,
+       doc: /* */)
   (Lisp_Object spec)
 {
   ptrdiff_t id = -1;
index 5411afff4820378675ca4023c2681696dfb0c1e0..9d6eb07a181ce432b50183d7b47c13305d2a4249 100644 (file)
@@ -6270,10 +6270,10 @@ apply_modifiers_uncached (int modifiers, char *base, int base_len, int base_len_
     if (modifiers & meta_modifier)  { *p++ = 'M'; *p++ = '-'; }
     if (modifiers & shift_modifier) { *p++ = 'S'; *p++ = '-'; }
     if (modifiers & super_modifier) { *p++ = 's'; *p++ = '-'; }
-    if (modifiers & double_modifier)  { strcpy (p, "double-");  p += 7; }
-    if (modifiers & triple_modifier)  { strcpy (p, "triple-");  p += 7; }
-    if (modifiers & down_modifier)  { strcpy (p, "down-");  p += 5; }
-    if (modifiers & drag_modifier)  { strcpy (p, "drag-");  p += 5; }
+    if (modifiers & double_modifier) p = stpcpy (p, "double-");
+    if (modifiers & triple_modifier) p = stpcpy (p, "triple-");
+    if (modifiers & down_modifier) p = stpcpy (p, "down-");
+    if (modifiers & drag_modifier) p = stpcpy (p, "drag-");
     /* The click modifier is denoted by the absence of other modifiers.  */
 
     *p = '\0';