unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [mituharu@math.s.chiba-u.ac.jp: buffer name containing a newline corrupts display]
@ 2004-10-11  6:18 Richard Stallman
  2004-10-11 23:25 ` Kim F. Storm
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2004-10-11  6:18 UTC (permalink / raw)


Would someone please investigate this?  I am overloaded just now.

------- Start of forwarded message -------
Date: Sat, 2 Oct 2004 18:58:59 +0900 (JST)
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: emacs-pretest-bug@gnu.org
Subject: buffer name containing a newline corrupts display
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org
X-Spam-Status: No, hits=0.5 required=5.0
	tests=RCVD_IN_ORBS,USER_AGENT
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

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.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

In GNU Emacs 21.3.50.1 (sparc-sun-solaris2.8, X toolkit, Xaw3d scroll bars)
 of 2004-10-02 on church
configured using `configure '--x-libraries=/usr/local/lib' 'CFLAGS=-O2 -mv8''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ja
  locale-coding-system: japanese-iso-8bit
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  display-time-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t



_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mituharu@math.s.chiba-u.ac.jp: buffer name containing a newline corrupts display]
  2004-10-11  6:18 [mituharu@math.s.chiba-u.ac.jp: buffer name containing a newline corrupts display] Richard Stallman
@ 2004-10-11 23:25 ` Kim F. Storm
  2004-10-12  4:15   ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 3+ messages in thread
From: Kim F. Storm @ 2004-10-11 23:25 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Would someone please investigate this?  I am overloaded just now.
>
> From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
> Subject: buffer name containing a newline corrupts display
> To: emacs-pretest-bug@gnu.org
> 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 <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [mituharu@math.s.chiba-u.ac.jp: buffer name containing a newline corrupts display]
  2004-10-11 23:25 ` Kim F. Storm
@ 2004-10-12  4:15   ` YAMAMOTO Mitsuharu
  0 siblings, 0 replies; 3+ messages in thread
From: YAMAMOTO Mitsuharu @ 2004-10-12  4:15 UTC (permalink / raw)


>>>>> On Tue, 12 Oct 2004 01:25:43 +0200, storm@cua.dk (Kim F. Storm) said:

>> 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.

It works fine for me.  Thanks.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-12  4:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-11  6:18 [mituharu@math.s.chiba-u.ac.jp: buffer name containing a newline corrupts display] Richard Stallman
2004-10-11 23:25 ` Kim F. Storm
2004-10-12  4:15   ` YAMAMOTO Mitsuharu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).