unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: dkcombs@panix.com (David Combs)
Subject: How plain (non-dir!) file gets marked "[(dired by name)]"?
Date: 21 Feb 2005 18:46:27 -0500	[thread overview]
Message-ID: <cvdrsj$i5f$1@panix1.panix.com> (raw)



      [Note: I'm using "/opt/sfw/share/emacs/21.2/".]

I have no idea how I might of caused this -- making emacs think of
a regular file as "[(dired by name)]".

Ideas?

--- ok, here's the code (from dired.el):

| (defun dired-sort-set-modeline ()
|   ;; Set modeline display according to dired-actual-switches.
|   ;; Modeline display of "by name" or "by date" guarantees the user a
|   ;; match with the corresponding regexps.  Non-matching switches are
|   ;; shown literally.
|   (setq mode-name
| 	(let (case-fold-search)
| 	  (cond ((string-match dired-sort-by-name-regexp dired-actual-switches)
| 		 "Dired by name")
| 		((string-match dired-sort-by-date-regexp dired-actual-switches)
| 		 "Dired by date")
| 		(t
| 		 (concat "Dired " dired-actual-switches)))))
|   (force-mode-line-update))
|
| (defun dired-sort-toggle-or-edit (&optional arg)
|   "Toggle between sort by date/name and refresh the dired buffer.

(1) What are these switches?  (C-h v  couldn't see: dead)

(2) What problem does this fix (ie, why is it *done*?):

|   ;; Modeline display of "by name" or "by date" guarantees the user a
|   ;; match with the corresponding regexps.  Non-matching switches are
|   ;; shown literally.

                 reply	other threads:[~2005-02-21 23:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='cvdrsj$i5f$1@panix1.panix.com' \
    --to=dkcombs@panix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).