Do not set bookmark context for images (Bug#6650).
authorThierry Volpiatto <thierry.volpiatto@gmail.com>
Sat, 17 Jul 2010 21:35:19 +0000 (17:35 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 17 Jul 2010 21:35:19 +0000 (17:35 -0400)
* lisp/image-mode.el (image-bookmark-make-record): Do not set context
in an image (Bug#6650).

lisp/ChangeLog
lisp/image-mode.el

index 7aca9ba..a1bce7d 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-17  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
+
+       * image-mode.el (image-bookmark-make-record): Do not set context
+       in an image (Bug#6650).
+
 2010-07-17  Chong Yidong  <cyd@stupidchicken.com>
 
        * simple.el (select-active-region): New function.
index ca17569..e202aca 100644 (file)
@@ -522,9 +522,9 @@ the image file and `image-mode' showing the image as an image."
 (declare-function bookmark-default-handler "bookmark" (bmk))
 
 (defun image-bookmark-make-record ()
-  (nconc (bookmark-make-record-default)
-         `((image-type . ,image-type)
-           (handler    . image-bookmark-jump))))
+  `(,@(bookmark-make-record-default nil 'no-context 0)
+      (image-type . ,image-type)
+      (handler    . image-bookmark-jump)))
 
 ;;;###autoload
 (defun image-bookmark-jump (bmk)