unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: ynyaaa@gmail.com
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25855@debbugs.gnu.org
Subject: bug#25855: 25.1; garbage display by raise display specification
Date: Sat, 25 Feb 2017 00:36:15 +0900	[thread overview]
Message-ID: <871sunha8g.fsf@gmail.com> (raw)
In-Reply-To: <83shn4ro4m.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 24 Feb 2017 10:26:01 +0200")

Eli Zaretskii <eliz@gnu.org> writes:
>> (insert (propertize (make-string 100 ?\n) 'display '(raise 1)))
>
> What did you expect to see from 'raising' the newlines?  A newline has
> no glyph on display, so there's nothing to raise.
>
> IOW, why is this not the expected behavior?

I found that it is sufficient to put display property at the last
character of a buffer.
Evaluating the form below, leftmost digits remain to be displayed.

(progn
  (switch-to-buffer (generate-new-buffer "temp"))
  (dotimes (i 100) (insert (format "%d\n" i)))
  (goto-char (point-min))
  (redisplay)
  (erase-buffer)
  (insert (propertize "X" 'display '(raise 1))))





  reply	other threads:[~2017-02-24 15:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-24  6:09 bug#25855: 25.1; garbage display by raise display specification ynyaaa
2017-02-24  8:26 ` Eli Zaretskii
2017-02-24 15:36   ` ynyaaa [this message]
2017-02-25 11:41     ` Eli Zaretskii

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=871sunha8g.fsf@gmail.com \
    --to=ynyaaa@gmail.com \
    --cc=25855@debbugs.gnu.org \
    --cc=eliz@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).