Variable: save-place-abbreviate-file-names

save-place-abbreviate-file-names is a customizable variable defined in saveplace.el.gz.

Value

nil

Documentation

If non-nil, abbreviate file names before saving them.

This can simplify sharing the save-place-file file across different hosts.

Changing this option requires rewriting save-place-alist with corresponding file name format, therefore setting this option just using setq may cause out-of-sync problems. You should use either setopt or M-x customize-variable (customize-variable) to set this option.

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

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/saveplace.el.gz
(defcustom save-place-abbreviate-file-names nil
  "If non-nil, abbreviate file names before saving them.
This can simplify sharing the `save-place-file' file across
different hosts.

Changing this option requires rewriting `save-place-alist' with
corresponding file name format, therefore setting this option
just using `setq' may cause out-of-sync problems.  You should use
either `setopt' or \\[customize-variable] to set this option."
  :type 'boolean
  :set (lambda (sym val)
         (let ((old (if (default-boundp sym) (default-value sym))))
           (set-default sym val)
           (if (or (equal old val) (not save-place-loaded))
               nil                      ;Nothing to do.
             (save-place--normalize-alist))))
  :version "28.1")