Mailing List Archive

Support open source code!


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

Re: tlug: Simple xemacs question.



"Marc E. Christensen" <marc@example.com> writes:

> I was wondering how to get the full path of the documents to show up in th
> buffer pull-down menu in xemacs.  I am working on a project web that has a
> few (20 or so) files in some sub-directories.  I usually start
> xemacs in the base directory if the project like this: 
> 
>   'xemacs $(find . -name *html) &'
> 
> Which loads all the files.  In the 'buffer list' buffer, all files show up
> with their paths, the buffer pulldown list does not. 
> 
> Any know how to do this?

(defun my-format-buffers-menu-line (buffer)
  "Return BUFFER's filename or buffername if not visiting a file.
For use as a value of `buffers-menu-format-buffer-line-function'."
  (or (buffer-file-name buffer)
      (buffer-name buffer)))
(setq buffers-menu-format-buffer-line-function 'my-format-buffers-menu-line)

should do it.

Hope that helps.

Jens

ps You'll probably get a faster response to XEmacs questions on
<news:comp.editor.xemacs>.
-------------------------------------------------------------------
Next Technical Meeting: October 9 (Sat), 13:30   place: Temple Univ.
* Linux Internationalisation Initiative (Li18nux) speaker: Akio Kido
* Japanese TrueType Fonts                     speaker: Adrian Havill
Next Technical Meeting: November 13 (Sat), 13:30 place: Temple Univ.
* Network Security                               speaker: Steve Baur
Next Nomikai:  December 17 (Fri), 19:00 Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links