GNU bug report logs -
#36502
27.0.50; infinite loop in file-name-case-insensitive-p
Previous Next
Reported by: Daniel Sutton <dan <at> dpsutton.com>
Date: Thu, 4 Jul 2019 16:53:02 UTC
Severity: normal
Found in version 27.0.50
Done: Ken Brown <kbrown <at> cornell.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 7/7/2019 10:37 AM, Eli Zaretskii wrote:
>> From: Ken Brown <kbrown <at> cornell.edu>
>> CC: "npostavs <at> gmail.com" <npostavs <at> gmail.com>, "dan <at> dpsutton.com"
>> <dan <at> dpsutton.com>, "36502 <at> debbugs.gnu.org" <36502 <at> debbugs.gnu.org>
>> Date: Sun, 7 Jul 2019 14:09:03 +0000
>>
>> wouldn't it be better to fix expand-file-name so that it always
>> returns an absolute name, as it's documented to do?
>
> I think it's better, yes. Do we have an idea for how to do that?
How's this?
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -804,7 +804,11 @@ DEFUN ("expand-file-name", Fexpand_file_name,
Sexpand_file_name, 1, 2, 0,
/* Use the buffer's default-directory if DEFAULT_DIRECTORY is omitted. */
if (NILP (default_directory))
- default_directory = BVAR (current_buffer, directory);
+ {
+ default_directory = BVAR (current_buffer, directory);
+ if (NILP (Ffile_name_absolute_p (default_directory)))
+ default_directory = Qnil;
+ }
if (! STRINGP (default_directory))
{
#ifdef DOS_NT
This bug report was last modified 5 years and 304 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.