Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bookmark-default-file is defined differently in two different places #2594

Closed
travisbhartwell opened this issue Aug 9, 2015 · 2 comments
Closed

Comments

@travisbhartwell
Copy link
Contributor

bookmark-default-file and its associated bookmark-save-flag are set in two different places, and in the case of bookmark-default-file, to two different values. I'm not seeing any bad behavior as such, but I noticed this when checking for something else.

Linking to the most recent commit, they are in:

(setq bookmark-default-file (concat user-emacs-directory "bookmarks")
;; autosave each change
bookmark-save-flag 1)))

and

(setq bookmark-default-file (concat spacemacs-cache-directory "bookmarks")
;; save after every change
bookmark-save-flag 1

I would offer a pull-request but I'm unsure which is the correct place to set it. I think putting it in the cache would be right.

@travisbhartwell
Copy link
Contributor Author

I filed this because my bookmarks file was showing up in my recent file list and I was wondering why.

It is partially due to the fact I have the spacemacs repo checked out to ~/Projects/spacemacs and then symlinked to ~/.emacs.d, partially so it can show up with magit-repository-directories.

@syl20bnr
Copy link
Owner

syl20bnr commented Aug 9, 2015

The configuration in config.el should be moved to init-bookmark, the right place for this kind of file is the cache directory.

travisbhartwell added a commit to travisbhartwell/spacemacs that referenced this issue Aug 9, 2015
Only set `bookmark-default-file` in the package configuration.  Put the
file in the Spacemacs cache directory instead of the Emacs user
directory.

Also only set `bookmark-save-flag` in the package configuration.

This is a breaking change.  Those with existing bookmarks file will have
to do something equivalent to this:

`mv ~/.emacs.d/bookmarks ~/.emacs.d/.cache`

and restart Emacs.

Fixes syl20bnr#2594
syl20bnr pushed a commit that referenced this issue Aug 11, 2015
Only set `bookmark-default-file` in the package configuration.  Put the
file in the Spacemacs cache directory instead of the Emacs user
directory.

Also only set `bookmark-save-flag` in the package configuration.

This is a breaking change.  Those with existing bookmarks file will have
to do something equivalent to this:

`mv ~/.emacs.d/bookmarks ~/.emacs.d/.cache`

and restart Emacs.

Fixes #2594
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants