Subject: bug#67759: [ android ] 30.0.50; unable to access device storage

From: Po Lu <[email-masked]>
Date: Mon, 11 Dec 2023 15:28:12 +0800

Once again, please do NOT remove the bug tracker from the CC list.  This
is generally performed by selecting the "Reply All" option in your MUA
(or its analog) to reply.

జిందం వాఐి <[email-masked]> writes:

> On 2023-12-11 08:12, Po Lu wrote:
>> Please don't remove the bug tracker from the CC list.
>> జిందం వాఐి <[email-masked]> writes:
>> 
>>> On 2023-12-11 06:38, Po Lu wrote:
>>> 
>>>> This might seem trivial, but people have run across this pithole
>>>> before:
>>>> have you erased the leading "~" character in the default file name
>>>> prompt?  If not, do so, as Android's storage directory is located at
>>>> /sdcard rather than your home folder.
>>>> But assuming that you have, you've likely omitted the trailing "/"
>>>> after
>>>> the file name that informs Emacs it is a directory.  Absent this
>>>> character, file name completion will complete from / instead of
>>>> /sdcard,
>>>> and your device is one of those which deny Emacs the rights to
>>>> examine
>>>> /.
>>> menu_ file_ opendirectory
>>> * ~/
>>> * press enter
>>> * shows 6 files [ 2 saved messages,
>>> emacs.d, emacs-fa...., 2 dots ]
>>> no effect [ using hackerskeyboard ]
>>> on find file or open directory
>>> * omitted ~ and type sdcard or
>>> storage
>>> * omitted ~ and / and type
>>> sdcard or storage
>> I don't understand, sorry.  Would you describe the actions you took
>> in
>> English, rather than as such a heavily abridged enumeration?
>
> video_
> https://commons.wikimedia.org/wiki/File:Access_of_device_storage_of_emacs_on_android_issue.webm

There is no bug in this video, so far as I can tell from its last 40
seconds.  Completion of / naturally does not function when Emacs is
forbidden from reading that directory.