Commit 5dd11cfe authored by Tassilo Horn's avatar Tassilo Horn
Browse files

* saveplace.el (save-place-to-alist)

 (save-place-ignore-files-regexp): Allow value nil to disable this
parent c349f4e6
2012-03-04 Tassilo Horn <>
* saveplace.el (save-place-to-alist)
(save-place-ignore-files-regexp): Allow value nil to disable this
2012-03-04 Chong Yidong <>
* faces.el (face-spec-reset-face): For the default face, reset the
......@@ -132,9 +132,10 @@ removable and network volumes."
(defcustom save-place-ignore-files-regexp
"Regexp matching files for which no location should be recorded.
"Regexp matching files for which no position should be recorded.
Useful for temporary file such as commit message files that are
automatically created by the VCS."
automatically created by the VCS. If set to nil, this feature is
disabled, i.e., the position is recorded for all files."
:version "24.1"
:type 'regexp :group 'save-place)
......@@ -169,8 +170,9 @@ To save places automatically in all files, put this in your `.emacs' file:
;; will be saved again when Emacs is killed.
(or save-place-loaded (load-save-place-alist-from-file))
(when (and buffer-file-name
(not (string-match save-place-ignore-files-regexp
(or (not save-place-ignore-files-regexp)
(not (string-match save-place-ignore-files-regexp
(let ((cell (assoc buffer-file-name save-place-alist))
(position (if (not (eq major-mode 'hexl-mode))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment