comparison src/frame.c @ 20622:619c69f1ab83

(set_term_frame_name): Use size_byte.
author Richard M. Stallman <rms@gnu.org>
date Fri, 09 Jan 1998 23:13:22 +0000
parents 7916c0d8f2ae
children 50929073a0ba
comparison
equal deleted inserted replaced
20621:ee017970042d 20622:619c69f1ab83
1791 { 1791 {
1792 char namebuf[20]; 1792 char namebuf[20];
1793 1793
1794 /* Check for no change needed in this very common case 1794 /* Check for no change needed in this very common case
1795 before we do any consing. */ 1795 before we do any consing. */
1796 if (frame_name_fnn_p (XSTRING (f->name)->data, XSTRING (f->name)->size)) 1796 if (frame_name_fnn_p (XSTRING (f->name)->data,
1797 XSTRING (f->name)->size_byte))
1797 return; 1798 return;
1798 1799
1799 terminal_frame_count++; 1800 terminal_frame_count++;
1800 sprintf (namebuf, "F%d", terminal_frame_count); 1801 sprintf (namebuf, "F%d", terminal_frame_count);
1801 name = build_string (namebuf); 1802 name = build_string (namebuf);
1808 if (! NILP (Fstring_equal (name, f->name))) 1809 if (! NILP (Fstring_equal (name, f->name)))
1809 return; 1810 return;
1810 1811
1811 /* Don't allow the user to set the frame name to F<num>, so it 1812 /* Don't allow the user to set the frame name to F<num>, so it
1812 doesn't clash with the names we generate for terminal frames. */ 1813 doesn't clash with the names we generate for terminal frames. */
1813 if (frame_name_fnn_p (XSTRING (name)->data, XSTRING (name)->size)) 1814 if (frame_name_fnn_p (XSTRING (name)->data, XSTRING (name)->size_byte))
1814 error ("Frame names of the form F<num> are usurped by Emacs"); 1815 error ("Frame names of the form F<num> are usurped by Emacs");
1815 } 1816 }
1816 1817
1817 f->name = name; 1818 f->name = name;
1818 update_mode_lines = 1; 1819 update_mode_lines = 1;