all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Yuan Fu <casouri@gmail.com>
Cc: 43469@debbugs.gnu.org
Subject: bug#43469: 28.0.50; window-text-pixel-size returns incorrect value when line-prefix is set
Date: Thu, 17 Sep 2020 20:32:23 +0300	[thread overview]
Message-ID: <83r1r05mxk.fsf@gnu.org> (raw)
In-Reply-To: <B9CE4B47-C091-42B6-B18D-42AF1D24EE87@gmail.com> (message from Yuan Fu on Thu, 17 Sep 2020 12:03:35 -0400)

> From: Yuan Fu <casouri@gmail.com>
> Date: Thu, 17 Sep 2020 12:03:35 -0400
> 
> (progn (insert "xxxxxxxxxxxxxx")
>        (print (car (window-text-pixel-size
>                     nil (line-beginning-position) (line-end-position))))
>        (put-text-property (line-beginning-position) (line-end-position)
>                           'line-prefix "   ")
>        (print (car (window-text-pixel-size
>                     nil (line-beginning-position) (line-end-position)))))
> 
> Prints first 98, then 119

Why do you think this is a bug?





  reply	other threads:[~2020-09-17 17:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-17 16:03 bug#43469: 28.0.50; window-text-pixel-size returns incorrect value when line-prefix is set Yuan Fu
2020-09-17 17:32 ` Eli Zaretskii [this message]
2020-09-18 17:05   ` Yuan Fu
2020-09-18 19:22     ` Eli Zaretskii
2020-09-19 18:33       ` Yuan Fu
2020-09-19 18:56         ` Eli Zaretskii
2020-09-19 18:33 ` bug#43469: Fwd: " Yuan Fu

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

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

  git send-email \
    --in-reply-to=83r1r05mxk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=43469@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.