[COMMIT] buffer.c, pass a character, not a fixnum, as second arg to #'make-string
Aidan Kehoe <[email protected]> Sun, 3 Aug 2014 20:26:47 +0100
| Newsgroups | gmane.emacs.xemacs.patches |
|---|---|
| Message-ID | <[email protected]> |
APPROVE COMMIT NOTE: This patch has been committed. # HG changeset patch # User Aidan Kehoe <[email protected]> # Date 1407093903 -3600 # Sun Aug 03 20:25:03 2014 +0100 # Node ID 8139bdf8db044f7bbd89b4c7e7bde26da6fb6b99 # Parent 75435be92103f23d1905b4a3a60295164a9dd2b4 buffer.c, pass a character, not a fixnum, as second arg to #'make-string src/ChangeLog addition: 2014-08-03 Aidan Kehoe <[email protected]> [...] * buffer.c (finish_init_buffer): Pass a character as the second argument to #'make-string, not a fixnum. diff -r 75435be92103 -r 8139bdf8db04 src/ChangeLog --- a/src/ChangeLog Sun Aug 03 20:13:40 2014 +0100 +++ b/src/ChangeLog Sun Aug 03 20:25:03 2014 +0100 @@ -5,6 +5,9 @@ Use #'make-string rather than make_uninit_string() when allocating the command builder's echo_buf, avoiding having octets in the string that do not correspond to valid internal-format text. + * buffer.c (finish_init_buffer): + Pass a character as the second argument to #'make-string, not a + fixnum. 2014-07-14 Aidan Kehoe <[email protected]> diff -r 75435be92103 -r 8139bdf8db04 src/buffer.c --- a/src/buffer.c Sun Aug 03 20:13:40 2014 +0100 +++ b/src/buffer.c Sun Aug 03 20:25:03 2014 +0100 @@ -636,7 +636,8 @@ init_buffer_markers (b); init_buffer_syntax_cache (b); - b->generated_modeline_string = Fmake_string (make_fixnum (84), make_fixnum (' ')); + b->generated_modeline_string = Fmake_string (make_fixnum (84), + make_char (' ')); b->modeline_extent_table = make_lisp_hash_table (20, HASH_TABLE_KEY_WEAK, Qeq); -- ‘Liston operated so fast that he once accidentally amputated an assistant’s fingers along with a patient’s leg, […] The patient and the assistant both died of sepsis, and a spectator reportedly died of shock, resulting in the only known procedure with a 300% mortality.’ (Atul Gawande, NEJM, 2012) _______________________________________________ XEmacs-Patches mailing list [email protected] http://lists.xemacs.org/mailman/listinfo/xemacs-patches