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: Fix info display of images Date: Sun, 06 Dec 2009 00:48:26 +0100 Message-ID: <874oo5nfsl.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1260056957 29284 80.91.229.12 (5 Dec 2009 23:49:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 23:49:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 06 00:49:10 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 1NH4NB-0000aP-Fb for ged-emacs-devel@m.gmane.org; Sun, 06 Dec 2009 00:49:09 +0100 Original-Received: from localhost ([127.0.0.1]:38959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH4NB-0007Hg-F4 for ged-emacs-devel@m.gmane.org; Sat, 05 Dec 2009 18:49:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NH4N4-0007F8-Ui for emacs-devel@gnu.org; Sat, 05 Dec 2009 18:49:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NH4N2-0007Bq-SF for emacs-devel@gnu.org; Sat, 05 Dec 2009 18:49:02 -0500 Original-Received: from [199.232.76.173] (port=34208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH4N2-0007Bg-Ph for emacs-devel@gnu.org; Sat, 05 Dec 2009 18:49:00 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:36934) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NH4N2-0003wT-Kx for emacs-devel@gnu.org; Sat, 05 Dec 2009 18:49:00 -0500 Original-Received: from localhost ([127.0.0.1]:50279 helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1NH4N2-0002iT-0a for emacs-devel@gnu.org; Sat, 05 Dec 2009 18:49:00 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1000) id ACD952494C; Sun, 6 Dec 2009 00:48:26 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) 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:118332 Archived-At: --=-=-= Hi, 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/lisp/info.el b/lisp/info.el index 1bd82ef..0d7686d 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -1446,7 +1446,8 @@ any double quotes or backslashes must be escaped (\\\",\\\\)." "\\(\0[\0-\37][[][^\0]*\0[\0-\37][]]\n?\\)" nil t) (let* ((start (match-beginning 1))) - (if (not (get-text-property start 'invisible)) + (if (and (not (get-text-property start 'invisible)) + (not (get-text-property start 'display))) (put-text-property start (point) 'invisible t))))) (set-buffer-modified-p nil))) --=-=-= -- David Kastrup --=-=-=--