From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Christopher Miles
Newsgroups: gmane.emacs.devel
Subject: Re: [FEATURE SUGGESTED] Re: [BUG] ov property line height failed on
lone length line when exceeded window width
Date: Sat, 30 Jan 2021 12:15:03 +0000
Message-ID:
References:
<8C0A9F18-AF7B-4C50-8625-229456BF40E4@gnu.org>
<835zc8ciqb.fsf@gnu.org>
<834kiyaj2b.fsf@gnu.org>
Reply-To: Christopher Miles
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="_005_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="12997"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Christopher Miles ,
"emacs-devel@gnu.org"
To: Eli Zaretskii
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 30 13:36:00 2021
Return-path:
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1l5pTs-0003FH-3G
for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 13:36:00 +0100
Original-Received: from localhost ([::1]:60214 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1l5pTr-0000Ph-31
for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 07:35:59 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38012)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1l5pRn-00085A-Pq
for emacs-devel@gnu.org; Sat, 30 Jan 2021 07:33:51 -0500
Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:43402)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1l5pRl-0004c1-SG; Sat, 30 Jan 2021 07:33:51 -0500
Original-Received: by mail-wr1-x436.google.com with SMTP id z6so11479683wrq.10;
Sat, 30 Jan 2021 04:33:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:cc:subject:thread-topic:thread-index:date:message-id
:references:in-reply-to:reply-to:accept-language:content-language
:mime-version; bh=wu//AzrQb2C1nTOMNkVFRBtFMxKEeZGy/GEeKFy2RMo=;
b=NNBc5oXk0LwJFvRrHMAW8945y/64O23AUOmP18FKlHSxT3Nsk67776fEpH6zIYYucJ
KNVbke5Gt6+uilcCTWRf9YErG7Tu9hEB7B2oiLRT0vKtiVg5IKGlpiorDWeHYfRTIU26
RR7n97jf/6rbJx5CbV80M0bs82XromjlrqgNrGxPyqr4TdrtGo4rs750qFl0dlH22RDM
1pCBeg+wq+24QgGtyBllJPZYRuYHB1oJQHkgxoOJIGRgEnbb8/deGy/ix+QYvVbpZL+5
2OjOlrC5KMWaGDi+fnQ88t0CvbK0b2fU8qpLUq8nY/QVL3hRLhfqbfaS84NXMAN2ZM52
sKog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:thread-topic:thread-index
:date:message-id:references:in-reply-to:reply-to:accept-language
:content-language:mime-version;
bh=wu//AzrQb2C1nTOMNkVFRBtFMxKEeZGy/GEeKFy2RMo=;
b=kF/s3u++0SjaPG+S7hxO0rQmksCJVUYOKL6lPVVNrzVlwAXvghatzUY0m5YPwsvihj
BQM5GJWEPkO7B/WiwF0tJYpTIvmt8Gt5xHcanQaNquhdHl4wZu5IiICN9JU8k5+K6p9N
0q2sOUqgnAn9LsF+eAS2qV/hAwx7tiPqJVPeA1lqijr5sf5ke35NX/2zDkKt23bH12Ko
9qj0euV/KpBdTbIgLXX7cyoahVPYEZ2Hkai7ZL2f4mld2E5Mp2lsVJpLImVRHfq8i7zX
M2B+md94OHdKpln1u1mWHTa5DU4ppnTOfZER5pHPCSujORM6aZEudHHIMjmIJPdn3cOv
vzdw==
X-Gm-Message-State: AOAM533VHlMTRI+cI1FtzQkRmxHVLJVk4tpPus3Iqb2ocx0ntva0BfFb
/nR6BuiVKGvUx3L6uTKt+6PM0UPB6w==
X-Google-Smtp-Source: ABdhPJy1+eu/ZZowx/NdtueUSCYS7OVUOhRoSSyOQCJ647Ky11LBczTwGuBzsv1HkoUUWjvIFlCNyw==
X-Received: by 2002:adf:f606:: with SMTP id t6mr9483180wrp.360.1612010027377;
Sat, 30 Jan 2021 04:33:47 -0800 (PST)
Original-Received: from PAXPR08MB6640.eurprd08.prod.outlook.com ([2603:1026:c0a:1::5])
by smtp.gmail.com with ESMTPSA id
f17sm18648272wrv.0.2021.01.30.04.33.46
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sat, 30 Jan 2021 04:33:46 -0800 (PST)
Original-Received: from dark (183.246.145.54) by
HK2PR02CA0140.apcprd02.prod.outlook.com (2603:1096:202:16::24) with Microsoft
SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.20.3805.16 via Frontend Transport; Sat, 30 Jan 2021 12:15:01 +0000
Thread-Topic: [FEATURE SUGGESTED] Re: [BUG] ov property line height failed on
lone length line when exceeded window width
Thread-Index: AQHW1cUpAFae0Gd/Kk2C+g3JwKd6d6pAUvGA
X-MS-Exchange-MessageSentRepresentingType: 1
In-Reply-To: <834kiyaj2b.fsf@gnu.org>
Accept-Language: zh-TW, en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 06
X-MS-Exchange-Organization-AuthSource: PAXPR08MB6640.eurprd08.prod.outlook.com
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-Network-Message-Id: d41fe769-083a-4e26-9457-08d8c518abec
X-MS-Exchange-Organization-SCL: -1
X-MS-Exchange-Organization-RecordReviewCfmType: 0
x-clientproxiedby: HK2PR02CA0140.apcprd02.prod.outlook.com
(2603:1096:202:16::24) To PAXPR08MB6640.eurprd08.prod.outlook.com
(2603:10a6:102:dd::5)
Received-SPF: pass client-ip=2a00:1450:4864:20::436;
envelope-from=numbchild@gmail.com; helo=mail-wr1-x436.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, T_HTML_ATTACH=0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
Xref: news.gmane.io gmane.emacs.devel:263606
Archived-At:
--_005_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_
Content-Type: multipart/alternative;
boundary="_000_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_"
--_000_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<#multipart type=3Dalternative> <#part type=3Dtext/plain> <#secure method=
=3Dpgpmime mode=3Dsign>
Eli Zaretskii writes:
From: Christopher Miles CC: Christopher Miles , "emacs-devel@gnu.org" Date: Wed, 27 J=
an 2021 14:34:06 +0000
I tried to use text-property to implement this effect, but seems not workin=
g.
(with-current-buffer (get-buffer org-agenda-buffer) (let ((position 1084) (=
inhibit-read-only t)) (goto-char position) (put-text-property (point-at-bol=
) (1+ (point-at-bol)) 'display " ") (let ((ov (make-overlay (point-at-bol) =
(1+ (point-at-bol))))) (overlay-put ov 'line-height 100))))
Which text-property did you think will have this effect? The only text-prop=
erty I see in the snippet above is the 'display' property, but you were tal=
king about 'line-height' property, no?
Aha, you're right, I confused overlay with text-property. I thought text-pr=
operty also have this effect.
<#part type=3Dtext/html> <#secure method=3Dpgpmime mode=3Dsign> <=
/p>
Eli Zaretskii <eliz@gnu.org> writes:
From: Christopher Miles <numbchild@gmail.com> CC: Christopher Mi=
les <numbchild@gmail.com>, "emacs-devel@gnu.org" <emacs-devel@gnu.=
org> Date: Wed, 27 Jan 2021 14:34:06 +0000
I tried to use text-property to implement this effect, but seems not work=
ing.
(with-current-buffer (get-buffer org-ag=
enda-buffer) (let ((position 1084) (inhibit-read-only t)) (goto-char positi=
on) (put-text-property (point-at-bol) (1+ (point-at-bol)) 'display " ") (le=
t ((ov (make-overlay (point-at-bol) (1+ (point-at-bol))))) (overlay-put ov =
'line-height 100))))
Which text-property did =
you think will have this effect? The only text-property I see in the snippe=
t above is the 'display' property, but you were talking about 'line-height'=
property, no?
Aha, you're right, I confused overlay with text-property. I thought tex=
t-property also have this effect.
<#/multipart>
--_000_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<#multipart type=3Dalternative> <#part type=3Dtext/plain> &l=
t;#secure method=3Dpgpmime mode=3Dsign>
Eli Zaretskii <eliz@gnu.org> writes:
From: Christopher Miles <numbchild@gmail.com> CC: Christopher Mi=
les <numbchild@gmail.com>, "emacs-devel@gnu.org" <emacs-=
devel@gnu.org> Date: Wed, 27 Jan 2021 14:34:06 +0000
I tried to use text-property to implement this effect, but seems not w=
orking.
(with-current-buffer (get-buffer org-agenda-buffer) (let ((position 10=
84) (inhibit-read-only t)) (goto-char position) (put-text-property (point-a=
t-bol) (1+ (point-at-bol)) 'display " ") (let ((ov (make-overlay =
(point-at-bol) (1+ (point-at-bol))))) (overlay-put
ov 'line-height 100))))
Which text-property did you think will have this effect? The only text=
-property I see in the snippet above is the 'display' property, but you wer=
e talking about 'line-height' property, no?
Aha, you're right, I confused overlay with text-property. I thought text=
-property also have this effect.
<#part type=3Dtext/html> <p> <#secure method=3Dpgpmim=
e mode=3Dsign> </p>
<p> Eli Zaretskii <eliz@gnu.org> writes: </p> =
<p> <blockquote class=3D"gmailquote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
;>
<div><blockquote class=3D"gmailquote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quo=
t;>
<div>From: Christopher Miles <numbchild@gmail.com> C=
C: Christopher Miles <numbchild@gmail.com>, "emacs-devel=
@gnu.org" <emacs-devel@gnu.org> Date: Wed, 27 Jan 2021 1=
4:34:06 +0000 </div> <div> <br /></div> <div>=
I tried to use text-property
to implement this effect, but seems not working. </div> <div> =
<br /></div> <div>(with-current-buffer (get-buffer org-ag=
enda-buffer) (let ((position 1084) (inhibit-read-only t)) (goto-char positi=
on) (put-text-property (point-at-bol) (1+ (point-at-bol)) 'display
" ") (let ((ov (make-overlay (point-at-bol) (1+ (point-at-bol)))=
)) (overlay-put ov 'line-height 100))))
</div></blockquote> </div> <div> <br /><=
;/div> <div>Which text-property did you think will have this effec=
t? The only text-property I see in the snippet above is the 'display' prope=
rty, but you were talking about 'line-height' property, no?
</div></blockquote> </p>
<p> Aha, you're right, I confused overlay with text-property. I th=
ought text-property also have this effect. </p> <#/multipart>
--_000_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_--
--_005_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_
Content-Type: text/html; name="ATT00001.htm"
Content-Description: ATT00001.htm
Content-Disposition: attachment; filename="ATT00001.htm"; size=1711;
creation-date="Sat, 30 Jan 2021 12:15:02 GMT";
modification-date="Sat, 30 Jan 2021 12:15:02 GMT"
Content-ID:
Content-Transfer-Encoding: base64
PHA+DQombHQ7I3NlY3VyZSBtZXRob2Q9cGdwbWltZSBtb2RlPXNpZ24mZ3Q7DQo8L3A+DQoNCjxw
Pg0KRWxpIFphcmV0c2tpaSAmbHQ7ZWxpekBnbnUub3JnJmd0OyB3cml0ZXM6DQo8L3A+DQoNCjxw
Pg0KPGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0ibWFyZ2luOjAgMCAwIC44
ZXg7Ym9yZGVyLWxlZnQ6MXB4ICNjY2Mgc29saWQ7cGFkZGluZy1sZWZ0OjFleCI+DQoNCjxkaXY+
PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWlsX3F1b3RlIiBzdHlsZT0ibWFyZ2luOjAgMCAwIC44ZXg7
Ym9yZGVyLWxlZnQ6MXB4ICNjY2Mgc29saWQ7cGFkZGluZy1sZWZ0OjFleCI+DQoNCjxkaXY+RnJv
bTogQ2hyaXN0b3BoZXIgTWlsZXMgJmx0O251bWJjaGlsZEBnbWFpbC5jb20mZ3Q7DQpDQzogQ2hy
aXN0b3BoZXIgTWlsZXMgJmx0O251bWJjaGlsZEBnbWFpbC5jb20mZ3Q7LCAiZW1hY3MtZGV2ZWxA
Z251Lm9yZyINCiZsdDtlbWFjcy1kZXZlbEBnbnUub3JnJmd0Ow0KRGF0ZTogV2VkLCAyNyBKYW4g
MjAyMSAxNDozNDowNiArMDAwMA0KPC9kaXY+DQo8ZGl2Pg0KPGJyIC8+PC9kaXY+DQo8ZGl2Pkkg
dHJpZWQgdG8gdXNlIHRleHQtcHJvcGVydHkgdG8gaW1wbGVtZW50IHRoaXMgZWZmZWN0LCBidXQg
c2VlbXMgbm90IHdvcmtpbmcuI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ATT00002.txt"
Content-Description: ATT00002.txt
Content-Disposition: attachment; filename="ATT00002.txt"; size=593;
creation-date="Sat, 30 Jan 2021 12:15:02 GMT";
modification-date="Sat, 30 Jan 2021 12:15:02 GMT"
Content-ID: <4B780700279C2F46BD89C1A30F0D8FE3@eurprd08.prod.outlook.com>
Content-Transfer-Encoding: base64
LS0gDQpbIHN0YXJkaXZpbmVyIF0NCiAgICAgICBJIHRyeSB0byBtYWtlIGV2ZXJ5IHdvcmQgdGVs
bCB0aGUgbWVhbmluZyB0aGF0IEkgd2FudCB0byBleHByZXNzLg0KDQogICAgICAgQmxvZzogaHR0
cHM6Ly9zdGFyZGl2aW5lci5naXRodWIuaW8vDQogICAgICAgSVJDKGZyZWVub2RlKTogc3RhcmRp
dmluZXIsIE1hdHJpeDogc3RhcmRpdmluZXINCiAgICAgICBHUEc6IEYwOUY2NTBEN0Q2NzQ4MTk4
OTI1OTE0MDFCNURGMUM5NUFFODlBQzMNCg==
--_005_PAXPR08MB664033DC5F37E351E994A4AFA3B89PAXPR08MB6640eurp_--