* bug#4592: Bug in built-in function substitute-in-file-name
@ 2009-09-30 0:37 Mosur Mohan
2009-09-30 9:07 ` Andreas Schwab
2009-10-03 0:15 ` Glenn Morris
0 siblings, 2 replies; 8+ messages in thread
From: Mosur Mohan @ 2009-09-30 0:37 UTC (permalink / raw)
To: bug-gnu-emacs
I am running Emacs version 21.3 on a Linux x86_64 machine.
When I start up Emacs, I go to the *scratch* buffer and eval
(substitute-in-file-name "/~/")
and I get the expected result
"~/"
After running for a while, I notice that filename completion starts
giving errors. At this point, I re-try the above experiment:
(substitute-in-file-name "/~/")
But now, I get:
"/~/"
I am not able to figure out what happened in between to make it stop
working correctly. A search for "substitute-in-file-name" in
bug.gnu.emacs didn't turn up anything relevant to this problem.
I narrowed the problem down to substitute-in-file-name after some
debugging. Here's the sequence:
In the recently launched Emacs session, while editing a file, I type
C-x C-f to open another file.
In the minibuffer, I see the prompt "~/DesignDB/" (my current working directory)
I type "~/Al" so that the minibuffer now reads "~/DesignDB/~/Al"
I hit <TAB> to do completion on ~/Al
The minibuffer changes to "~/Alps/", which is correct.
In the older Emacs session where I see the problem, I carry out the
same sequence.
With the minibuffer reading "~/DesignDB/~/Al", I hit <TAB>
The minibuffer shows this message: "Opening directory: no such file or
directory, /nfs/pdx/home/mmohan/DesignDB/~*/Al"
The *Messages* window contains this message:
read-file-name-internal: Opening directory: no such file or directory,
/nfs/pdx/home/mmohan/DesignDB/~*/
I debugged this difference in complete.el and ffap.el until I reached
the above discrepancy in the behavior of built-in function
substitute-in-file-name. I was then able to make the 2 sessions
exhibit the difference with the minimal arg "/~/" to the function.
Hope that is sufficient info. Thanks,
--
Mosur Mohan
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#4592: Bug in built-in function substitute-in-file-name
2009-09-30 0:37 bug#4592: Bug in built-in function substitute-in-file-name Mosur Mohan
@ 2009-09-30 9:07 ` Andreas Schwab
2009-09-30 15:02 ` Mosur Mohan
2009-10-03 0:15 ` Glenn Morris
1 sibling, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2009-09-30 9:07 UTC (permalink / raw)
To: Mosur Mohan; +Cc: 4592, bug-gnu-emacs
Mosur Mohan <mognush@gmail.com> writes:
> When I start up Emacs, I go to the *scratch* buffer and eval
> (substitute-in-file-name "/~/")
> and I get the expected result
> "~/"
>
> After running for a while, I notice that filename completion starts
> giving errors. At this point, I re-try the above experiment:
> (substitute-in-file-name "/~/")
> But now, I get:
> "/~/"
>
> I am not able to figure out what happened in between to make it stop
> working correctly.
What does
(find-file-name-handler "/~/" 'substitute-in-file-name)
return?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#4592: Bug in built-in function substitute-in-file-name
2009-09-30 9:07 ` Andreas Schwab
@ 2009-09-30 15:02 ` Mosur Mohan
0 siblings, 0 replies; 8+ messages in thread
From: Mosur Mohan @ 2009-09-30 15:02 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 4592, bug-gnu-emacs
> What does
> (find-file-name-handler "/~/" 'substitute-in-file-name)
> return?
In both Emacs sessions, it returns nil.
--
Mohan
On Wed, Sep 30, 2009 at 2:07 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Mosur Mohan <mognush@gmail.com> writes:
>
>> When I start up Emacs, I go to the *scratch* buffer and eval
>> (substitute-in-file-name "/~/")
>> and I get the expected result
>> "~/"
>>
>> After running for a while, I notice that filename completion starts
>> giving errors. At this point, I re-try the above experiment:
>> (substitute-in-file-name "/~/")
>> But now, I get:
>> "/~/"
>>
>> I am not able to figure out what happened in between to make it stop
>> working correctly.
>
> What does
> (find-file-name-handler "/~/" 'substitute-in-file-name)
> return?
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#4592: Bug in built-in function substitute-in-file-name
2009-09-30 0:37 bug#4592: Bug in built-in function substitute-in-file-name Mosur Mohan
2009-09-30 9:07 ` Andreas Schwab
@ 2009-10-03 0:15 ` Glenn Morris
2009-10-03 7:13 ` Mosur Mohan
1 sibling, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2009-10-03 0:15 UTC (permalink / raw)
To: Mosur Mohan; +Cc: 4592
Mosur Mohan wrote:
> I am running Emacs version 21.3 on a Linux x86_64 machine.
[...]
> After running for a while, I notice that filename completion starts
> giving errors. At this point, I re-try the above experiment:
> (substitute-in-file-name "/~/")
> But now, I get:
> "/~/"
Unfortunately, this seems a rather obscure problem, and Emacs 21 is
quite old, so you are unlikely to get much help unless you can give a
simple recipe showing how to get into this state (starting from emacs
-q --no-site-file). In any case, I would recommend upgrading to Emacs 23.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#4592: Bug in built-in function substitute-in-file-name
2009-10-03 0:15 ` Glenn Morris
@ 2009-10-03 7:13 ` Mosur Mohan
2009-10-03 19:18 ` Lennart Borgman
0 siblings, 1 reply; 8+ messages in thread
From: Mosur Mohan @ 2009-10-03 7:13 UTC (permalink / raw)
To: Glenn Morris
I was afraid you were gonna say that... :-) Unfortunately I haven't
been able to pin down the exact recipe; in the "good" session, I'm
still chugging along and the error hasn't occurred yet.
Thanks for your help anyway! If I figure out the recipe to trigger
this behavior, I will get in touch with you again.
--
Mohan
On Fri, Oct 2, 2009 at 5:15 PM, Glenn Morris <rgm@gnu.org> wrote:
> Mosur Mohan wrote:
>
>> I am running Emacs version 21.3 on a Linux x86_64 machine.
> [...]
>> After running for a while, I notice that filename completion starts
>> giving errors. At this point, I re-try the above experiment:
>> (substitute-in-file-name "/~/")
>> But now, I get:
>> "/~/"
>
> Unfortunately, this seems a rather obscure problem, and Emacs 21 is
> quite old, so you are unlikely to get much help unless you can give a
> simple recipe showing how to get into this state (starting from emacs
> -q --no-site-file). In any case, I would recommend upgrading to Emacs 23.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#4592: Bug in built-in function substitute-in-file-name
2009-10-03 7:13 ` Mosur Mohan
@ 2009-10-03 19:18 ` Lennart Borgman
2009-10-06 22:58 ` Mosur Mohan
0 siblings, 1 reply; 8+ messages in thread
From: Lennart Borgman @ 2009-10-03 19:18 UTC (permalink / raw)
To: Mosur Mohan, 4592
Why do you do that instead of upgrade to Emacs 23?
On Sat, Oct 3, 2009 at 9:13 AM, Mosur Mohan <mognush@gmail.com> wrote:
> I was afraid you were gonna say that... :-) Unfortunately I haven't
> been able to pin down the exact recipe; in the "good" session, I'm
> still chugging along and the error hasn't occurred yet.
>
> Thanks for your help anyway! If I figure out the recipe to trigger
> this behavior, I will get in touch with you again.
> --
> Mohan
>
> On Fri, Oct 2, 2009 at 5:15 PM, Glenn Morris <rgm@gnu.org> wrote:
>> Mosur Mohan wrote:
>>
>>> I am running Emacs version 21.3 on a Linux x86_64 machine.
>> [...]
>>> After running for a while, I notice that filename completion starts
>>> giving errors. At this point, I re-try the above experiment:
>>> (substitute-in-file-name "/~/")
>>> But now, I get:
>>> "/~/"
>>
>> Unfortunately, this seems a rather obscure problem, and Emacs 21 is
>> quite old, so you are unlikely to get much help unless you can give a
>> simple recipe showing how to get into this state (starting from emacs
>> -q --no-site-file). In any case, I would recommend upgrading to Emacs 23.
>>
>
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#4592: Bug in built-in function substitute-in-file-name
2009-10-03 19:18 ` Lennart Borgman
@ 2009-10-06 22:58 ` Mosur Mohan
2011-03-10 7:00 ` Glenn Morris
0 siblings, 1 reply; 8+ messages in thread
From: Mosur Mohan @ 2009-10-06 22:58 UTC (permalink / raw)
To: Lennart Borgman; +Cc: 4592
Sorry, didn't notice your question earlier... yes, I will upgrade at
least to 22.3 (that is the latest version that our IT group has
installed internally). But I have quite a bit of customization, which
takes a while to transition, so it will probably be some time before I
can switch versions. So, if I notice the bug before that happens,
maybe I can figure out what triggers it -- that's what I meant.
Thanks,
--
Mohan
On Sat, Oct 3, 2009 at 12:18 PM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:
> Why do you do that instead of upgrade to Emacs 23?
>
>
> On Sat, Oct 3, 2009 at 9:13 AM, Mosur Mohan <mognush@gmail.com> wrote:
>> I was afraid you were gonna say that... :-) Unfortunately I haven't
>> been able to pin down the exact recipe; in the "good" session, I'm
>> still chugging along and the error hasn't occurred yet.
>>
>> Thanks for your help anyway! If I figure out the recipe to trigger
>> this behavior, I will get in touch with you again.
>> --
>> Mohan
>>
>> On Fri, Oct 2, 2009 at 5:15 PM, Glenn Morris <rgm@gnu.org> wrote:
>>> Mosur Mohan wrote:
>>>
>>>> I am running Emacs version 21.3 on a Linux x86_64 machine.
>>> [...]
>>>> After running for a while, I notice that filename completion starts
>>>> giving errors. At this point, I re-try the above experiment:
>>>> (substitute-in-file-name "/~/")
>>>> But now, I get:
>>>> "/~/"
>>>
>>> Unfortunately, this seems a rather obscure problem, and Emacs 21 is
>>> quite old, so you are unlikely to get much help unless you can give a
>>> simple recipe showing how to get into this state (starting from emacs
>>> -q --no-site-file). In any case, I would recommend upgrading to Emacs 23.
>>>
>>
>>
>>
>>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#4592: Bug in built-in function substitute-in-file-name
2009-10-06 22:58 ` Mosur Mohan
@ 2011-03-10 7:00 ` Glenn Morris
0 siblings, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2011-03-10 7:00 UTC (permalink / raw)
To: 4592-done
Thanks for the report. Your report was against an old version of Emacs,
and the issue you describe could not be reproduced. The latest version
is 23.3. Please open new reports for any issues you have with the new
version.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-03-10 7:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 0:37 bug#4592: Bug in built-in function substitute-in-file-name Mosur Mohan
2009-09-30 9:07 ` Andreas Schwab
2009-09-30 15:02 ` Mosur Mohan
2009-10-03 0:15 ` Glenn Morris
2009-10-03 7:13 ` Mosur Mohan
2009-10-03 19:18 ` Lennart Borgman
2009-10-06 22:58 ` Mosur Mohan
2011-03-10 7:00 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).