[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: buffer name containing a newline corrupts display]
From: |
Kim F. Storm |
Subject: |
Re: address@hidden: buffer name containing a newline corrupts display] |
Date: |
Tue, 12 Oct 2004 01:25:43 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> Would someone please investigate this? I am overloaded just now.
>
> From: YAMAMOTO Mitsuharu <address@hidden>
> Subject: buffer name containing a newline corrupts display
> To: address@hidden
> Date: Sat, 2 Oct 2004 18:58:59 +0900 (JST)
>
> Display gets corrupted if a buffer name contains a newline.
>
> 1. C-x b C-q C-j RET -> The mode line and the scroll bar are erased.
> 2. C-l -> The tool bar is also erased.
>
> Emacs 21.3 handles this case correctly.
Try this patch.
*** xdisp.c 07 Oct 2004 23:46:27 +0200 1.914
--- xdisp.c 12 Oct 2004 01:21:54 +0200
***************
*** 18693,18698 ****
--- 18696,18705 ----
Lisp_Object face_name = Qnil;
int ascent, descent, height, override;
+ /* Newline in mode-line */
+ if (NILP (it->object))
+ return Qnil;
+
if (STRINGP (it->object))
position = make_number (IT_STRING_CHARPOS (*it));
else
--
Kim F. Storm <address@hidden> http://www.cua.dk