GNU bug report logs - #31022
27.0.50; darwin: Infinite recursion in tramp-file-name-handler

Previous Next

Package: emacs;

Reported by: Simon Leinen <simon.leinen <at> switch.ch>

Date: Mon, 2 Apr 2018 12:18:01 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Simon Leinen <simon.leinen <at> switch.ch>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 31022 <at> debbugs.gnu.org
Subject: bug#31022: 27.0.50; darwin: Infinite recursion in tramp-file-name-handler
Date: Mon, 2 Apr 2018 22:43:30 +0200
Michael Albinus writes:
> That would be an option, yes. But I prefer to fix it at the place the
> problem happens, in cus-start.el.

> Does the following patch cures the problem?

Yes it does.  I agree that this seems more thorough as a fix.

Thanks!
-- 
Simon.

> diff --git a/lisp/cus-start.el b/lisp/cus-start.el
> index 9ba1e105a1..f31d1df309 100644
> --- a/lisp/cus-start.el
> +++ b/lisp/cus-start.el
> @@ -277,9 +277,10 @@ minibuffer-prompt-properties--setter
>  		     ((eq system-type 'darwin)
>  		      (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
>  			  ;; See bug#7135.
> -			  (let ((tmp (ignore-errors
> -				       (shell-command-to-string
> -					"getconf DARWIN_USER_TEMP_DIR"))))
> +			  (let* (file-name-handler-alist
> +				 (tmp (ignore-errors
> +				        (shell-command-to-string
> +					 "getconf DARWIN_USER_TEMP_DIR"))))
>  			    (and (stringp tmp)
>  				 (setq tmp (replace-regexp-in-string
>  					    "\n\\'" "" tmp))




This bug report was last modified 7 years and 88 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.