From: John Mastro <john.b.mastro@gmail.com>
To: 23350@debbugs.gnu.org
Cc: Jorge Peixoto de Morais Neto <jorge13515@gmail.com>
Subject: bug#23350: 25.0.93; Docstring of bookmark-save-flag wrongly says that bookmark-default-file defaults do ~/.emacs.bmk
Date: Sat, 23 Apr 2016 14:32:38 -0700 [thread overview]
Message-ID: <CAOj2CQR0gnPMFh+nnkDDhmq-xatAUZAMNOT-PajiJNVHJ4XHMA@mail.gmail.com> (raw)
In-Reply-To: <1461444156.13483.3.camel@gmail.com>
Jorge Peixoto de Morais Neto <jorge13515@gmail.com> wrote:
> bookmark-default-file is defined in bookmark.el as follows:
> (defcustom bookmark-default-file
> (if bookmark-file
> ;; In case user set `bookmark-file' in her .emacs:
> bookmark-file
> (locate-user-emacs-file "bookmarks" ".emacs.bmk"))
> "File in which to save bookmarks by default."
> :type 'file
> :group 'bookmark)
>
> Therefore, ".emacs.bmk" is not the default. Because of the semantics of
> locate-user-emacs-file, the default is equivalent to
> (concat user-emacs-directory "bookmarks")
My reading of the docstring and code is that it's working as intended.
It's not that .emacs.bmk is the default, but that it was the default in
the past.
The logic seems to be (assuming ~/.emacs.d/ is the user's Emacs
directory):
1. If `bookmark-file' is non-nil, use that
2. If ~/.emacs.d/bookmarks exists, use that
3. If ~/.emacs.d/.emacs.bmk exists, use that
4. Otherwise, use ~/.emacs.d/bookmarks
Note that ~/.emacs.d/bookmarks is used in both 2 and 4.
In other words, ~/.emacs.d/bookmarks is the real default, but it's
accommodating the continued use of the old default
(~/.emacs.d/.emacs.bmk).
--
John
next prev parent reply other threads:[~2016-04-23 21:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-23 20:42 bug#23350: 25.0.93; Docstring of bookmark-save-flag wrongly says that bookmark-default-file defaults do ~/.emacs.bmk Jorge Peixoto de Morais Neto
2016-04-23 21:32 ` John Mastro [this message]
2016-04-24 15:37 ` Jorge Peixoto de Morais Neto
2016-04-25 8:31 ` Eli Zaretskii
2016-04-23 21:51 ` Jorge Morais
2016-04-25 11:06 ` Jorge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOj2CQR0gnPMFh+nnkDDhmq-xatAUZAMNOT-PajiJNVHJ4XHMA@mail.gmail.com \
--to=john.b.mastro@gmail.com \
--cc=23350@debbugs.gnu.org \
--cc=jorge13515@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.