home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / emacs / 2660 < prev    next >
Encoding:
Text File  |  1992-07-20  |  854 b   |  29 lines

  1. Path: sparky!uunet!mcsun!corton!tls-cs!cros
  2. From: cros@tls-cs.cert.fr (Patrice Cros)
  3. Newsgroups: comp.emacs
  4. Subject: sorting in dired
  5. Message-ID: <411@tls-cs.cert.fr>
  6. Date: 21 Jul 92 09:50:09 GMT
  7. Sender: news@tls-cs.cert.fr
  8. Organization: CERT Toulouse Dept of Computer Science, FRANCE
  9. Lines: 18
  10.  
  11. In GNU Emacs 18.58,
  12.  
  13. (defun local-dired-by-date (dirname)
  14.   (interactive (list default-directory))
  15.   (let ((dired-listing-switches "-lc"))
  16.     (switch-to-buffer (dired-noselect dirname))))
  17.  
  18.  
  19.     Have a look and notice  that Emacs-Lisp apply  dynamic binding
  20. (Not  Common-Lisp),   in  this  way  you  can  change  flags   without
  21. save-restore for variable. 
  22.  
  23. Patrice Cros        E-mail: cros@tls-cs.cert.fr
  24. CERT/DERI        Tel:    +33 61 55 70 61
  25.     Department of Computer Science
  26. 2, av. Edouard Belin    Fax:    +33 61 55 71 72
  27. B.P. 4025        Telex:    521596 F
  28. 31055 TOULOUSE Cedex    France
  29.