unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How plain (non-dir!) file gets marked "[(dired by name)]"?
@ 2005-02-21 23:46 David Combs
  0 siblings, 0 replies; only message in thread
From: David Combs @ 2005-02-21 23:46 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-21 23:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-21 23:46 How plain (non-dir!) file gets marked "[(dired by name)]"? David Combs

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