Changeset 3456
- Timestamp:
- 09/14/04 07:28:47 (4 years ago)
- Files:
-
- branches/2.1/src/ChangeLog.Meadow (modified) (1 diff)
- branches/2.1/src/xdisp.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.1/src/ChangeLog.Meadow
r3442 r3456 1 2004-09-14 MIYOSHI Masanori <miyoshi@meadowy.org> 2 3 * xdisp.c (message_dolog_marker1): New static variable. 4 (message_dolog_marker2): Ditto. 5 (message_dolog_marker3): Ditto. 6 (message_dolog): Sync up with Emacs CVS HEAD. 7 (syms_of_xdisp): Initialize message_dolog_marker1, 8 message_dolog_marker2 and message_dolog_marker3. 9 1 10 2004-09-06 MIYOSHI Masanori <miyoshi@meadowy.org> 2 11 branches/2.1/src/xdisp.c
r3442 r3456 311 311 static int message_log_need_newline; 312 312 313 /* Three markers that message_dolog uses. 314 It could allocate them itself, but that causes trouble 315 in handling memory-full errors. */ 316 static Lisp_Object message_dolog_marker1; 317 static Lisp_Object message_dolog_marker2; 318 static Lisp_Object message_dolog_marker3; 313 319 314 320 /* The buffer position of the first character appearing entirely or … … 5730 5736 int zv_at_end = 0; 5731 5737 Lisp_Object old_deactivate_mark, tem; 5732 struct gcpro gcpro1 , gcpro2, gcpro3, gcpro4;5738 struct gcpro gcpro1; 5733 5739 5734 5740 old_deactivate_mark = Vdeactivate_mark; … … 5737 5743 current_buffer->undo_list = Qt; 5738 5744 5739 oldpoint = Fpoint_marker (); 5740 oldbegv = Fpoint_min_marker (); 5741 oldzv = Fpoint_max_marker (); 5742 GCPRO4 (oldpoint, oldbegv, oldzv, old_deactivate_mark); 5745 oldpoint = message_dolog_marker1; 5746 set_marker_restricted (oldpoint, make_number (PT), Qnil); 5747 oldbegv = message_dolog_marker2; 5748 set_marker_restricted (oldbegv, make_number (BEGV), Qnil); 5749 oldzv = message_dolog_marker3; 5750 set_marker_restricted (oldzv, make_number (ZV), Qnil); 5751 GCPRO1 (old_deactivate_mark); 5743 5752 5744 5753 if (PT == Z) … … 5760 5769 int i, c, char_bytes; 5761 5770 unsigned char work[1]; 5762 5771 5763 5772 /* Convert a multibyte string to single-byte 5764 5773 for the *Message* buffer. */ … … 5799 5808 this_bol_byte = PT_BYTE; 5800 5809 5810 /* See if this line duplicates the previous one. 5811 If so, combine duplicates. */ 5801 5812 if (this_bol > BEG) 5802 5813 { … … 5826 5837 } 5827 5838 5839 /* If we have more than the desired maximum number of lines 5840 in the *Messages* buffer now, delete the oldest ones. 5841 This is safe because we don't have undo in this buffer. */ 5842 5828 5843 if (NATNUMP (Vmessage_log_max)) 5829 5844 { … … 5855 5870 XMARKER (oldpoint)->bytepos); 5856 5871 5857 free_marker (oldpoint);5858 free_marker (oldbegv);5859 free_marker (oldzv);5860 5872 UNGCPRO; 5873 unchain_marker (oldpoint); 5874 unchain_marker (oldbegv); 5875 unchain_marker (oldzv); 5861 5876 5862 5877 tem = Fget_buffer_window (Fcurrent_buffer (), Qt); … … 14831 14846 Qinhibit_redisplay = intern ("inhibit-redisplay"); 14832 14847 staticpro (&Qinhibit_redisplay); 14848 14849 message_dolog_marker1 = Fmake_marker (); 14850 staticpro (&message_dolog_marker1); 14851 message_dolog_marker2 = Fmake_marker (); 14852 staticpro (&message_dolog_marker2); 14853 message_dolog_marker3 = Fmake_marker (); 14854 staticpro (&message_dolog_marker3); 14833 14855 14834 14856 #if GLYPH_DEBUG
