unofficial mirror of help-guix@gnu.org 
 help / color / Atom feed
* tramp and adb, strange escape codes in dired
@ 2020-06-11 17:12 Giovanni Biscuolo
  2020-06-12 12:25 ` Giovanni Biscuolo
  0 siblings, 1 reply; 2+ messages in thread
From: Giovanni Biscuolo @ 2020-06-11 17:12 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 2318 bytes --]

Hello,

I'm using Emacs 26.3 with TRAMP 2.4.3.5 and adb 7.1.2_r36 [1], all
installed via Guix on a foreign distro (Debian 10).

I still do not undestand if what follows is a TRAMP bug or something
related to my environment.

I've sent a message to help-gnu-emacs@gnu.org [2] but I'm asking here in
case anyone in this list is/was able to browse an Android filesystem via
TRAMP+adb.

I'm trying to use adb via tramp (I'd love to be able to browse my phone
filesystem in Emacs) for the first time and I get a strange dired
buffer:

--8<---------------cut here---------------start------------->8---

  /adb::/storage:
  total 13
  drwxr-xr-x  1 root root          80 05-31 13:04 [1;34m.[0m
  drwxr-xr-x  1 root root          4k 2009-01-01  [1;34m..[0m
  drwx--x--x  1 root sdcard_rw     4k 05-31 13:04 [1;34memulated[0m
  drwxr-xr-x  1 root root          60 05-31 13:03 [1;34mself[0m
  drwxr-xr-x  1 root root          80 05-31 13:04 [1;34m/storage/.[0m
  drwxr-xr-x  1 root root          4k 2009-01-01  [1;34m/storage/..[0m

--8<---------------cut here---------------end--------------->8---

If I try to "dired-visit" any of the listed dirs I get this in the
*Messages* buffer:

--8<---------------cut here---------------start------------->8---

dired-get-file-for-visit: File no longer exists; type ‘g’ to update Dired buffer

--8<---------------cut here---------------end--------------->8---

I'm able to use "adb shell" in a shell buffer under Emacs, this is the
result:

--8<---------------cut here---------------start------------->8---

jflte:/storage # ls -lah
ls -lah
total 6.0K
drwxr-xr-x  4 root root        80 2020-05-31 13:04 .
drwxr-xr-x 22 root root      4.0K 2009-01-01 01:00 ..
drwx--x--x  3 root sdcard_rw 4.0K 2020-05-31 13:04 emulated
drwxr-xr-x  2 root root        60 2020-05-31 13:03 self
jflte:/storage # 

--8<---------------cut here---------------end--------------->8---

and I can "navigate" all my folders via adb shell (in root mode).

Do you have any idea why I get all that escape sequences?

Thanks! Gio'



[1] but I have the same results using adb 8.1.0+r23-5 version from
Debian stable

[2] https://lists.gnu.org/archive/html/help-gnu-emacs/2020-06/msg00101.html

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tramp and adb, strange escape codes in dired
  2020-06-11 17:12 tramp and adb, strange escape codes in dired Giovanni Biscuolo
@ 2020-06-12 12:25 ` Giovanni Biscuolo
  0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Biscuolo @ 2020-06-12 12:25 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

Hi,

Giovanni Biscuolo <g@xelera.eu> writes:

[...]

> I'm trying to use adb via tramp (I'd love to be able to browse my phone
> filesystem in Emacs) for the first time and I get a strange dired
> buffer:
>
> --8<---------------cut here---------------start------------->8---
>
>   /adb::/storage:
>   total 13
>   drwxr-xr-x  1 root root          80 05-31 13:04 [1;34m.[0m
>   drwxr-xr-x  1 root root          4k 2009-01-01  [1;34m..[0m
>   drwx--x--x  1 root sdcard_rw     4k 05-31 13:04 [1;34memulated[0m
>   drwxr-xr-x  1 root root          60 05-31 13:03 [1;34mself[0m
>   drwxr-xr-x  1 root root          80 05-31 13:04 [1;34m/storage/.[0m
>   drwxr-xr-x  1 root root          4k 2009-01-01  [1;34m/storage/..[0m
>
> --8<---------------cut here---------------end--------------->8---

It seems a bug in TRAMP, anyone interested please do not feedback here
but have a look at
https://lists.gnu.org/archive/html/help-gnu-emacs/2020-06/msg00109.html

[...]

Happy hacking! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 17:12 tramp and adb, strange escape codes in dired Giovanni Biscuolo
2020-06-12 12:25 ` Giovanni Biscuolo

unofficial mirror of help-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git