From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Fix info display of images Date: Mon, 07 Dec 2009 21:28:21 +0100 Organization: Organization?!? Message-ID: <874oo2jzq2.fsf@lola.goethe.zz> References: <874oo5nfsl.fsf@lola.goethe.zz> <87ljhey8gx.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260219013 25835 80.91.229.12 (7 Dec 2009 20:50:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2009 20:50:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 07 21:50:06 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHkWy-0001jW-Jr for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 21:50:04 +0100 Original-Received: from localhost ([127.0.0.1]:38642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHkWy-0004FD-CR for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2009 15:50:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHkCP-000558-Lf for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:28:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHkCL-0004yv-Qk for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:28:49 -0500 Original-Received: from [199.232.76.173] (port=47097 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHkCL-0004yZ-II for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:28:45 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:39957) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHkCK-0000TN-UZ for emacs-devel@gnu.org; Mon, 07 Dec 2009 15:28:45 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NHkCI-000110-Ks for emacs-devel@gnu.org; Mon, 07 Dec 2009 21:28:42 +0100 Original-Received: from p5b2c2583.dip.t-dialin.net ([91.44.37.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2009 21:28:42 +0100 Original-Received: from dak by p5b2c2583.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Dec 2009 21:28:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b2c2583.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:vcbstojew/x12oJNTzZTXPTvGL0= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118370 Archived-At: Juri Linkov writes: >> the info images in the Lilypond documentation have a rather messed-up >> display. That's more or less due to Emacs putting "invisible" >> properties over image code indiscriminately. >> >> I find that the following does help. > > If you provided a test case, I would be able to confirm whether it > works or not. I can't easily provide a useful test case since that requires the corresponding image files as well, and those are in one rather large directory. *I* can confirm that the patch works as intended. > But now it seems strange to me that you fix this in > `Info-hide-cookies-node' instead of `Info-display-images-node'. The problem is that `Info-hide-cookies-node' rehides the images. The combination of invisible and display properties wreaks havoc on the resulting display and cursor movement. This gets even worse because the images are also displayed using the "rear-nonsticky (display)" property, which implies that all other properties (including invisible) become rear-sticky. So Info-hide-cookies-node should simply refrain from tampering with cookies that have already been handled. The extended test in my patch does that. -- David Kastrup