file-name-directory is what you're looking for. Try C-h f file-name for some other useful functions. There's also buffer-file-name. Of course, these are functions, not commands. You'll have to write some elisp to do what you want.
In a message dated 11/8/01 4:41:03 PM Eastern Standard Time, address@hidden writes:
I'm trying to do sg. simple: get the directory (+preferably the file name)
of the current file into the clipboard or have it displayed in the
minibuffer. I did this in the past, but forgot the function name. I tried
C-h a dir, C-h a current, M-x show..., etc. Emacs has so many functions if I
don't use one I forget it. Is it possible to create a global menu called
"favorite funcs" and to put my favorite functions in it?
Thanks,
Daniel
|