Variable: project-file-history-behavior

project-file-history-behavior is a customizable variable defined in project.el.gz.

Value

t

Documentation

If relativize, entries in file-name-history are adjusted.

History entries shown in project-find-file, project-find-dir,
(from file-name-history) are adjusted to be relative to the
current project root, instead of the project which added those paths. This only affects history entries added by earlier calls to project-find-file or project-find-dir.

This has the effect of sharing more history between projects.

This variable was added, or its default value changed, in Emacs 30.1.

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/project.el.gz
(defcustom project-file-history-behavior t
  "If `relativize', entries in `file-name-history' are adjusted.

History entries shown in `project-find-file', `project-find-dir',
(from `file-name-history') are adjusted to be relative to the
current project root, instead of the project which added those
paths.  This only affects history entries added by earlier calls
to `project-find-file' or `project-find-dir'.

This has the effect of sharing more history between projects."
  :type '(choice (const :tag "Default behavior" t)
                 (const :tag "Adjust to be relative to current" relativize))
  :group 'project
  :version "30.1")