title: Emacs truncates some kbd macros during insert-kbd-macro
body: <p>I am trying to customize emacs for my needs. In particular I want to define a long keyboard macro and save it for later use. However emacs seems to truncate the definition during saving.</p>
  
  <p>Environment: Emacs 24.5-7 on Fedora 23</p>
  
  <p>My attempts showed that emacs uses two different formats for saving depending on the keyboard input. For pure textual form without control characters it just stores a string; no truncation occurred so far. However when a control character, even a newline, is part of the input emacs stores a vector of character symbols?() with only the first 12 elements, the rest is just indicated by ellipsis (...) and cannot be used later.</p>
  
  <p>I use C-x C-( and C-x C-) to define the macro, C-x C-k n to give it a name, and then save it with M-x insert-kbd-macro:</p>
  
  <p>13 printable characters:
  abcdefghijklm</p>
  
  <blockquote>
    <p>(fset 'str13
      (lambda (&amp;optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote (<strong>"abcdefghijklm"</strong> 0 "%d")) arg)))</p>
  </blockquote>
  
  <p>11 printable characters with newline:
  abcdefghijk</p>
  
  <blockquote>
    <p>(fset 'str11nl
      (lambda (&amp;optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote (<strong>[97 98 99 100 101 102 103 104 105 106 107 return]</strong> 0 "%d")) arg)))</p>
  </blockquote>
  
  <p>12 printable characters with newline:
  abcdefghijkl</p>
  
  <blockquote>
    <p>(fset 'str12nl
      (lambda (&amp;optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote (<strong>97 98 99 100 101 102 103 104 105 106 107 108 ...]</strong> 0 "%d")) arg)))</p>
  </blockquote>
  
  <p>When I load this macro again, e.g. with M-x eval-region and M-x str12nl, only the 12 printable characters are inserted, then an error occurs:</p>
  
  <blockquote>
    <p>After 0 kbd macro iterations: Keyboard macro terminated by a command ringing the bell</p>
  </blockquote>
  
  <p>Is there a method to have the full definition saved?
  ,</p>