Subject: bug#24573: 25.1; Setting bookmark in buffer *Help* makes bookmarks non-loadable

From: Dmitri Paduchikh <[email-masked]>
Date: Fri, 30 Sep 2016 19:13:28 +0500

Hello,

I start emacs -q, open the *Help* buffer, set a bookmark there, and save
bookmarks to file. After this I get the following error message while
trying to load bookmarks back.

Saving bookmarks to file ~/.emacs.d/bookmarks...done
Loading bookmarks from ~/.emacs.d/bookmarks...
bookmark-alist-from-buffer: Invalid read syntax: "#"

And indeed, the file contains text #<buffer *GNU Emacs*>. Replacing this
by nil manually fixes the problem.

;;;; Emacs Bookmark Format Version 1 ;;;;
;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*-
(("car"
 (position . 49)
 (help-fn .
	  #[514 "\301.!\205.\211.\302.!)\207"
		[describe-function-orig-buffer buffer-live-p describe-function]
		4 "\n\n(fn FUNCTION BUFFER)"])
 (help-args car #<buffer *GNU Emacs*>)
 (position . 49)
 (handler . help-bookmark-jump))
)

In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9)
 of 2016-09-18 built on juergen

Regards,
Dmitri Paduchikh