[gnu.emacs] Improvement to list-buffers

worley@EDDIE.MIT.EDU (Dale Worley) (10/11/88)

The following change to buffer.c changes list-buffers so that under
"File" it will list the directory being edited by a Dired buffer.
Under vanilla 18.52, the File column is blank for a Dired buffer.
Hopefully FSF will put this in version 19.

*** buffer.c	Mon Oct 10 17:30:49 1988
--- buffer.c.old	Mon Oct 10 17:28:07 1988
***************
*** 1013,1021 ****
        Findent_to (col3, minspace);
        if (!NULL (b->filename))
  	Fprinc (b->filename, Qnil);
-       else if (strcmp (XSTRING (b->mode_name)->data, "Dired") == 0 &&
- 	  !NULL (b->directory))
-         Fprinc (b->directory, Qnil);
        write_string ("\n", -1);
      }
  
--- 1013,1018 ----

For example:

 MR Buffer         Size  Mode           File
 -- ------         ----  ----           ----
.*  *mail*	   145	 Mail		
 *  *Buffer List*  0	 Buffer Menu	
 *% toys	   1386	 Dired		/extra/compas1a/worley/toys/
 *  *scratch*	   28	 Lisp Interaction 

Dale