unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: [mituharu@math.s.chiba-u.ac.jp: buffer name containing a newline corrupts display]
Date: Tue, 12 Oct 2004 01:25:43 +0200	[thread overview]
Message-ID: <m3y8ichm6g.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1CGtVt-0005cX-TE@fencepost.gnu.org> (Richard Stallman's message of "Mon, 11 Oct 2004 02:18:29 -0400")

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

  reply	other threads:[~2004-10-11 23:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2004-10-12  4:15   ` YAMAMOTO Mitsuharu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y8ichm6g.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).