From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hikaru Ichijyo Newsgroups: gmane.emacs.help Subject: Re: tramp mode locale for dir listings Date: Fri, 21 Aug 2015 18:33:54 -0500 Organization: UN Spacy Message-ID: <8xxd1ygqkrh.fsf@village.keycorner.org> References: <8xxr3mwqpfm.fsf@village.keycorner.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440200123 19464 80.91.229.3 (21 Aug 2015 23:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2015 23:35:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 01:35:22 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZSvqC-00010l-4v for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 01:35:20 +0200 Original-Received: from localhost ([::1]:44870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSvqB-0004La-CI for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Aug 2015 19:35:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!news.alt.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:zdVaQdLF5p2UljZyfQ2G+hUfvtE= Original-Lines: 36 Original-NNTP-Posting-Host: fe4cd74d.news.astraweb.com Original-X-Trace: DXC=GcdF_4fPDKl\; 1IogBA]HfL?0kYOcDh@jQE8=9WgQZkklRMeiecFPUcl9B_G1R=S=gVL List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106760 Archived-At: Javier writes: > How are you customizing the sorting? The default is aphabetized as > though the initial dot of dotfiles didn't exist. > > Are you using .dir-locals.el files to customize the sorting in the > browsed directory or in its parent dirs? Looking for those files is > diabled in tramp for the sake of performance since looking for them in > all the parent dirs would be too slow. > > (info "(emacs) Directory Variables") > > Emacs searches for `.dir-locals.el' starting in the > directory of the visited file, and moving up the directory tree. To > avoid slowdown, this search is skipped for remote files. If needed, > the search can be extended for remote files by setting the variable > `enable-remote-dir-locals' to `t'. I've made no deliberate configurations anywhere in Emacs to set my locale, so any deviations from default behavior are not being caused by anything I'm aware of. My .bashrc does set LC_COLLATE=C, but I don't know if Dired absorbs environment from your .bashrc or not. For what it's worth, I also have the same LC_COLLATE=C in most of the remote machines I use, but I'm not getting that effect when I'm in Tramp. Basically, I'd like to get LC_COLLATE=C behavior everywhere. Is Dired affected by environment setup in .bashrc? Is Tramp? .bashrc is the only place I have any locale settings that I know of. -- He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty, he establishes a precedent that will reach to himself. --Thomas Paine