Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question: Buffer Menu

2 views
Skip to first unread message

Alan Sherman

unread,
Jan 16, 1995, 9:16:51 PM1/16/95
to
Hello,

Is there a way to change the Buffer menu so it lists not only the
filename but also the path? Similar to using a %f format identifier
for the screen title. So basically, instead of foo, foo<1>, foo<2>
it would list /tmp/foo, /usr/foo, /wv/foo.

Thanks.

Vladimir Ivanovic

unread,
Jan 16, 1995, 10:28:53 PM1/16/95
to
See `format-buffers-menu-line' in lisp/prim/menubar.el.

-- Vladimir

(defun format-buffers-menu-line (buffer)
"Returns a string to represent the given buffer in the Buffer menu.
nil means the buffer shouldn't be listed. You can redefine this."
(if (string-match "\\` " (setq buffer (buffer-name buffer)))
nil
buffer))
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Disclaimer: I speak only for myself.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/\ Vladimir Ivanovic
\\ \ SunSoft, Developer Products
\ \\ /
/ \/ / / M/S MTV12-33
/ / \//\ 2550 Garcia Blvd.
\//\ / / Mountain View, CA 94043-1100
/ / /\ / Phone: (415) 336-2315
/ \\ \ Fax: (415) 964-0946
\ \\ EMail: vlad...@Eng.Sun.COM
\/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 new messages