From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: dkcombs@panix.com (David Combs) Newsgroups: gmane.emacs.help Subject: modeline should note file gotten-via-symlink Date: 21 Feb 2005 18:46:25 -0500 Organization: PANIX -- Public Access Networks Corp. Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1109029729 21182 80.91.229.2 (21 Feb 2005 23:48:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 23:48:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 22 00:48:49 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3NI9-0008BO-Sj for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Feb 2005 00:48:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3NZA-00069U-Mz for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Feb 2005 19:06:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!canoe.uoregon.edu!arclight.uoregon.edu!newsfeed-00.mathworks.com!panix!panix1.panix.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader2.panix.com 1109029586 20032 166.84.1.1 (21 Feb 2005 23:46:26 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Mon, 21 Feb 2005 23:46:26 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:128692 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24228 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24228 >>From the dired for .../4msnew: | -rw-r--r-- 1 dkc other 4509 Aug 29 18:11 run-tools--16.29.8.smd | | lrwxrwxrwx 1 dkc other 22 Aug 29 17:56 run-tools.smd -> run-tools--16.29.8.smd , note that run-tools.smd is a symlink. "Click" (hit ) on it, and you end up with a buffer named run-tools.smd (the name of the symlink), the buffer's *contents* being the pointed-to file "run-tools--16.29.8.smd". Fine and good; nice rms-DWIM, does what I wanted. However, the *mode-line*, which shows the name of the *symlink*, "run-tools.smd", gives NO indication that the file I'm *actually* at (or at least actually looking-at/into), "run-tools--16.29.8.smd", is *via a symlink*. Would be a helpful reminder, at least for me, if the mode-line also contained the word "SYMLINK". (And if gotten-to via a chain of eg three symlinks, then maybe something like "SYMLINKS3".) QUESTION: would anyone else reading this post find helpful such a modeline additon? QUESTION: does such a thing *already* exist? (If so, where's the most recent version? ------- Related idea, for "*Buffer Menu*": | MR Buffer Size Mode File | -- ------ ---- ---- ---- | ..... | run-tools.smd 4509 Fundamental /opt6/myexternals/home/dkc/4msnew/run-tools--16.29.8.smd Note that the buffer's name is run-cuffs.smd, but is actually "at" the file pointed at by the symlink -- and again, there's no explicit, "in your face" notice that it's via a symlink. (As far as the user can tell from the line, he originally (last week, in this still-running emacs session) did a C-x C-f on "run-tools--16.29.8.smd", and then did a rename-buffer to the shorter name, and there's no way to tell. So, again, some explicit, "in your face" notation might be helpful here too.