bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why doesn't the buffer list abbreviate the home directory as ~?


From: Kevin Rodgers
Subject: Re: why doesn't the buffer list abbreviate the home directory as ~?
Date: Wed, 30 May 2001 08:28:51 -0600

Dan Jacobson wrote:
> 
> I'm thinking why in the buffer list, not abbreviate
>  MR Buffer           Size  Mode         File
>  -- ------           ----  ----         ----
>  % mountain_angles   519  Dired by name /home/jidanni/mapping/mountain_angles/
> 
> as
>  % mountain_angles   519  Dired by name ~/mapping/mountain_angles/
> 
> Make this an new option's default.

Here's a patch that does it unconditionally:

*** 19.34/lisp/buff-menu.el.orig        Sun Jan 14 00:34:30 1996
--- 19.34/lisp/buff-menu.el     Wed May 30 08:19:01 2001
***************
*** 473,479 ****
              (setq this-buffer-mode-name
                    (if (eq buffer standard-output)
                        "Buffer Menu" mode-name))
!             (or file
                  ;; No visited file.  Check local value of
                  ;; list-buffers-directory.
                  (if (and (boundp 'list-buffers-directory)
--- 473,480 ----
              (setq this-buffer-mode-name
                    (if (eq buffer standard-output)
                        "Buffer Menu" mode-name))
!             (or (and file
!                      (setq file (abbreviate-file-name file)))
                  ;; No visited file.  Check local value of
                  ;; list-buffers-directory.
                  (if (and (boundp 'list-buffers-directory)

-- 
Kevin Rodgers <kevinr@ihs.com>          Lead Software Engineer
Information Handling Services           Electronic Systems Development
15 Inverness Way East, M/S A114         GO BUFFS!
Englewood CO 80112-5776 USA             1+ (303) 397-2807[voice]/705-4258[fax]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]