Skip to content

Commit 67903f5

Browse files
fuzy112Eli-Zaretskii
authored andcommitted
Restore the old behavior of `bookmark-write-file'
* lisp/bookmark.el (bookmark-write-file): Use 'pp-28' to avoid filling the bookmarks. (Bug#75775) Copyright-paperwork-exempt: yes
1 parent 062da70 commit 67903f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/bookmark.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,8 @@ for a file, defaulting to the file defined by variable
16781678
;; Rather than a single call to `pp' we make one per bookmark.
16791679
;; Apparently `pp' has a poor algorithmic complexity, so this
16801680
;; scales a lot better. bug#4485.
1681-
(dolist (i bookmark-alist) (pp i (current-buffer)))
1681+
(let ((pp-default-function #'pp-28))
1682+
(dolist (i bookmark-alist) (pp i (current-buffer))))
16821683
(insert ")\n")
16831684
;; Make sure the specified encoding can safely encode the
16841685
;; bookmarks. If it cannot, suggest utf-8-emacs as default.

0 commit comments

Comments
 (0)