From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Ballard Newsgroups: gmane.emacs.help Subject: Re: kinda dumb dired/ls question Date: Sun, 23 Nov 2003 03:20:19 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069558211 18264 80.91.224.253 (23 Nov 2003 03:30:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2003 03:30:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 23 04:30:08 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ANkwp-0007iu-00 for ; Sun, 23 Nov 2003 04:30:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ANltg-0000q4-VB for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Nov 2003 23:30:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!4507221d!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 83 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 165.121.140.197 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread1.news.atl.earthlink.net 1069557619 165.121.140.197 (Sat, 22 Nov 2003 19:20:19 PST) Original-NNTP-Posting-Date: Sat, 22 Nov 2003 19:20:19 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:118564 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor 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 Xref: main.gmane.org gmane.emacs.help:14506 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14506 On Fri Nov 21, Mike Ballard disturbed my nap when he said: > I run an emacs instance as "mike" and a second separate instance sometimes > as root. I point root's ~/.emacs to load stuff from mike's *.elc. > > In mike's ~/.emacs there is: > > (setq dired-actual-switches (concat "-alo --time-style=+'%b %e %y %H:%M'")) > > mike also uses a tcsh alias for /bin/ls: > > alias l '/bin/ls -lo --color=tty --time-style=+"%b %e %y %H:%M" \!* && echo ""' > > These give me the exact ls output I want either in tcsh and dired. > > However, although the same shell alias works for root I cannot get root's > emacs instance to use it (in dired). What is (seemingly) ignored in > root's emacs instance is the "--time*." I've even pasted in the above > setq as the last line in root's ~/.emacs but root's dired buffers are not > using "--time*". > > I've been through much gnashing of teeth trying to get it to work but > can't and don't see what I'm missing. Anyone know? Or maybe can tell me > how to get the root instance to append "--time*" to its dired ls? > This is/was really frosting me. mike runs emacs and dired displays as: /home/mike/.elisp/Gnus: used 256 available 1004640 -rw-r--r-- 1 mike 81 Nov 21 12:47 #.newsrc-dribble# drwxr-xr-x 10 mike 4096 Nov 21 12:47 . drwxr-xr-x 6 mike 4096 Nov 21 09:15 .. -rw-r--r-- 1 mike 0 Apr 26 2003 .active.nnml -rw-r--r-- 1 mike 3451 Nov 20 21:44 .active.nntp -rw-r--r-- 1 mike 3450 Oct 24 22:42 .active.nntp.back Perfect! root runs emacs (not aliased) for which root's ~/.emacs points to common elisp that both share (only root's ~/.emacs is different). Presumably you'd think the behavior would be the same (i.e., picking up the same dired settings). This is what root emacs dired looks like: /home/mike/.elisp/Gnus: /bin/ls: %e: No such file or directory /bin/ls: %y: No such file or directory /bin/ls: %H:%M": No such file or directory /home/mike/.elisp/Gnus: total 256 free 1004632 -rw-r--r-- 1 mike 81 "Nov #.newsrc-dribble# drwxr-xr-x 10 mike 4096 "Nov . drwxr-xr-x 6 mike 4096 "Nov .. -rw-r--r-- 1 mike 0 "Apr .active.nnml -rw-r--r-- 1 mike 3451 "Nov .active.nntp -rw-r--r-- 1 mike 3450 "Oct .active.nntp.back My "ls" alias in tcsh is: alias l '/bin/ls -lo --color=tty --time-style=+"%b %e %y %H:%M" \!* && echo ""' It works great and I get the same output in shell as the first block I pasted in above. root uses "--time" in its "ls" alias and it also works as in the first block I pasted in above. But whereas mike's shell ls, emacs dired and root's shell ls all display essentially the same, root's emacs dired spits out the error (the second block I pasted in above). I FINALLY found the problem (those damn LANG/LC* vars). If I change root's LANG var from en_US to C it works same as mike's now. I created an alias for root's emacs making that change since I _think_ Perl wants en_US (or some kind of crap). I wish everybody could decide/agree on what's what :-) Rhetorically, I sure would be interested to know why en_US works for tcsh ls but dired requires C in order to work? Mike -- mike.ballard--at--earthlink.net "Roses are red, violets are blue, I'm schizophrenic and so am I"