unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp
@ 2017-01-11 22:00 Alex Branham
  2017-01-11 22:09 ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Branham @ 2017-01-11 22:00 UTC (permalink / raw
  To: 25423

I can't navigate (or do anything else like dired-do-chmod) using dired when directories have spaces or special characters over a tramp connection. I think it's because Emacs is putting quotes '' or "" around the folders in question.

Using `emacs -Q` and navigate to a directory like below. I can hit RET to go to Folder1 but neither 'Folder 2' nor "Folder's 4". Note that the folders don't actually have quotation marks in their name --- Emacs is adding that in the dired buffer. 

  drwxrwsr-x  3 owner group 4096 Jan  9 19:29  Folder1
  drwxrwsr-x  3 owner group 4096 Jan  9 20:47 'Folder 2'
  drwxrwsr-x  3 owner group 4096 Jan  9 19:30 "Folder's_3"


In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.5)
 of 2016-12-23 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description:	Arch Linux

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
 -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

-- 
J. Alexander Branham
PhD Candidate
Department of Government
University of Texas at Austin
https://www.jabranham.com





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

* bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp
  2017-01-11 22:00 bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp Alex Branham
@ 2017-01-11 22:09 ` Glenn Morris
  2017-01-11 22:16   ` Alex Branham
  2017-01-11 22:16   ` Glenn Morris
  0 siblings, 2 replies; 6+ messages in thread
From: Glenn Morris @ 2017-01-11 22:09 UTC (permalink / raw
  To: Alex Branham; +Cc: 25423

Alex Branham wrote:

> Using `emacs -Q` and navigate to a directory like below. I can hit RET
> to go to Folder1 but neither 'Folder 2' nor "Folder's 4". Note that
> the folders don't actually have quotation marks in their name ---
> Emacs is adding that in the dired buffer.
>
>   drwxrwsr-x  3 owner group 4096 Jan  9 19:29  Folder1
>   drwxrwsr-x  3 owner group 4096 Jan  9 20:47 'Folder 2'
>   drwxrwsr-x  3 owner group 4096 Jan  9 19:30 "Folder's_3"


Looks like newer coreutils ls's quoting, so probably already fixed in
Emacs by

http://lists.gnu.org/archive/html/emacs-diffs/2016-07/msg00171.html





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

* bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp
  2017-01-11 22:09 ` Glenn Morris
@ 2017-01-11 22:16   ` Alex Branham
  2017-01-11 22:21     ` Glenn Morris
  2017-01-11 22:16   ` Glenn Morris
  1 sibling, 1 reply; 6+ messages in thread
From: Alex Branham @ 2017-01-11 22:16 UTC (permalink / raw
  To: Glenn Morris; +Cc: 25423

Thanks for the reply.

The commit happened in July of last year, is it not in Emacs 25.1? (Also, is there an easy way to see that information for myself?)

Alex 

Glenn Morris <rgm@gnu.org> writes:

> Alex Branham wrote:
>
>> Using `emacs -Q` and navigate to a directory like below. I can hit RET
>> to go to Folder1 but neither 'Folder 2' nor "Folder's 4". Note that
>> the folders don't actually have quotation marks in their name ---
>> Emacs is adding that in the dired buffer.
>>
>>   drwxrwsr-x  3 owner group 4096 Jan  9 19:29  Folder1
>>   drwxrwsr-x  3 owner group 4096 Jan  9 20:47 'Folder 2'
>>   drwxrwsr-x  3 owner group 4096 Jan  9 19:30 "Folder's_3"
>
>
> Looks like newer coreutils ls's quoting, so probably already fixed in
> Emacs by
>
> http://lists.gnu.org/archive/html/emacs-diffs/2016-07/msg00171.html


-- 
J. Alexander Branham
PhD Candidate
Department of Government
University of Texas at Austin
https://www.jabranham.com





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

* bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp
  2017-01-11 22:09 ` Glenn Morris
  2017-01-11 22:16   ` Alex Branham
@ 2017-01-11 22:16   ` Glenn Morris
  2017-01-11 22:21     ` Alex Branham
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2017-01-11 22:16 UTC (permalink / raw
  To: Alex Branham; +Cc: 25423


PS probably you can add QUOTING_STYLE=literal to your environment, or
tramp-remote-process-environment, to avoid this.





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

* bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp
  2017-01-11 22:16   ` Glenn Morris
@ 2017-01-11 22:21     ` Alex Branham
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Branham @ 2017-01-11 22:21 UTC (permalink / raw
  To: Glenn Morris; +Cc: 25423

Thanks, adding it to tramp-remote-process-environment works!

Alex

Glenn Morris <rgm@gnu.org> writes:

> PS probably you can add QUOTING_STYLE=literal to your environment, or
> tramp-remote-process-environment, to avoid this.


-- 
J. Alexander Branham
PhD Candidate
Department of Government
University of Texas at Austin
https://www.jabranham.com





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

* bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp
  2017-01-11 22:16   ` Alex Branham
@ 2017-01-11 22:21     ` Glenn Morris
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2017-01-11 22:21 UTC (permalink / raw
  To: Alex Branham; +Cc: 25423

Alex Branham wrote:

> The commit happened in July of last year, is it not in Emacs 25.1?

No. It will be in whatever-next-release-from-master-is (26.1).

> (Also, is there an easy way to see that information for myself?)

You could look at tramp-sh.el in your version of Emacs.
Otherwise, I don't know how you tell without having a copy of the Emacs
git repository.





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

end of thread, other threads:[~2017-01-11 22:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-11 22:00 bug#25423: 25.1; Can't use dired with spaces or special characters in folder names using tramp Alex Branham
2017-01-11 22:09 ` Glenn Morris
2017-01-11 22:16   ` Alex Branham
2017-01-11 22:21     ` Glenn Morris
2017-01-11 22:16   ` Glenn Morris
2017-01-11 22:21     ` Alex Branham

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).