[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for
From: |
Noam Postavsky |
Subject: |
bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames |
Date: |
Wed, 24 Jan 2018 18:04:38 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) |
Philipp Stephani <p.stephani2@gmail.com> writes:
> Since this commit was a bug fix for a related issue with quoted file
> names, reverting it is probably not the best way forward. We should
> push a fix and make a new pretest.
The following seems to fix it. We should review other file handler
operations of course, but can we really expect to learn anything from
another pretest?
--- i/lisp/files.el
+++ w/lisp/files.el
@@ -7004,6 +7004,11 @@ file-name-non-special
(expand-file-name
(unhandled-file-name-directory default-directory)))
default-directory))
+ (buffer-file-name
+ (if (and (memq operation '(make-auto-save-file-name))
+ (string-match "\\`/:" buffer-file-name))
+ (substring buffer-file-name (match-end 0))
+ buffer-file-name))
;; Get a list of the indices of the args which are file names.
(file-arg-indices
(cdr (or (assq operation
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, phst, 2018/01/24
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Philipp Stephani, 2018/01/24
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames,
Noam Postavsky <=
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Philipp Stephani, 2018/01/24
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Noam Postavsky, 2018/01/25
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Michael Albinus, 2018/01/25
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Noam Postavsky, 2018/01/25
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Michael Albinus, 2018/01/25
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Noam Postavsky, 2018/01/25
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Noam Postavsky, 2018/01/25
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Michael Albinus, 2018/01/26
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Noam Postavsky, 2018/01/26
- bug#30243: 26.0.91; Infinite recursion in `make-auto-save-file-name' for quoted filenames, Michael Albinus, 2018/01/28