* info.el (Info-hide-cookies-node): Before hiding a cookie,
authorJuri Linkov <juri@jurta.org>
Mon, 14 Dec 2009 05:09:08 +0000 (05:09 +0000)
committerJuri Linkov <juri@jurta.org>
Mon, 14 Dec 2009 05:09:08 +0000 (05:09 +0000)
check if it already has the `display' property added by
`Info-display-images-node', and not put the `invisible' property
in this case.

lisp/ChangeLog
lisp/info.el

index d4c117e..2015c53 100644 (file)
@@ -1,3 +1,10 @@
+2009-12-14  David Kastrup  <dak@gnu.org>
+
+       * info.el (Info-hide-cookies-node): Before hiding a cookie,
+       check if it already has the `display' property added by
+       `Info-display-images-node', and not put the `invisible' property
+       in this case.
+
 2009-12-14  Chong Yidong  <cyd@stupidchicken.com>
 
        * cedet/semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode)
index 1bd82ef..0d7686d 100644 (file)
@@ -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)))