From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Christian_Nyb=F8?= Subject: Re: (org-overlay-put 'display ) does not do much in XEmacs Date: Tue, 31 Oct 2006 21:42:33 +0100 Message-ID: <7E248B0C-FEE8-466C-8F9C-A5882E92AA31@nybo.no> References: <0bbe6165147b11380e99c5624e11a9b2@science.uva.nl> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gf0RY-0000sl-K8 for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 15:42:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gf0RT-0000nL-42 for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 15:42:43 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gf0RS-0000n3-LJ for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 15:42:38 -0500 Received: from [80.68.90.108] (helo=nybo.vm.bytemark.co.uk) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gf0RS-0005v3-En for emacs-orgmode@gnu.org; Tue, 31 Oct 2006 15:42:38 -0500 In-Reply-To: <0bbe6165147b11380e99c5624e11a9b2@science.uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Thanks for the help. With something along the lines of: (defun org-overlay-put (ovl prop value) (if (featurep 'xemacs) (if (and (stringp value) (eq prop 'display)) (set-extent-properties ovl (list 'invisible t 'end-glyph (make-glyph value))) (set-extent-property ovl prop value)) (overlay-put ovl prop value))) it works as expected. Why is the last character of the header text =20 part of the string value? Unless it's painted to look like it's =20 still part of the header proper, it looks somewhat odd. It is perhaps required for overlay-put? On Oct 31, 2006, at 7:10 PM, Carsten Dominik wrote: > Yes, this part is not yet XEmacs compatible, thank you for the =20 > analysis. > > On Oct 31, 2006, at 14:00, Christian Nyb=F8 wrote: > >> I run org-clock-display, but the aggregated times aren't shown. >> >> I believe that in XEmacs, the function org-overlay-put does not do >> what the author expects it to when called with the prop argument set >> to 'display. To Emacs, a prop set to 'display has a particular >> meaning, but to the XEmacs function set-extent-property it is just >> another symbol. >> >> What is a call to org-overlay-put with prop set to 'display and value >> set to a string supposed to do? > > The text in the buffer under the overlay is hidden and the text is =20 > displayed > instead. The following is roughly equivalent: > > GNU Emacs: > > (overlay-put ov 'display "some text") > > XEmacs: > > (set-extent-property ov 'invisible t) > (set-extent-property ov 'end-glyph (make-glyph "some text")) > > Will be fixed in 4.53. > > - Carsten > > >> >> I'm running XEmacs 21.5 (beta27) "fiddleheads" [Lucid] (i686-pc-=20 >> linux, Mule) and >> Org-mode version 4.52