[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get full path of currently opened file?
From: |
Stefan Monnier |
Subject: |
Re: How to get full path of currently opened file? |
Date: |
Wed, 28 Mar 2012 19:23:23 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> I'm trying to use emacs in combination with cscope.
>> Sometimes, I got lost by not knowing where the file is located in
>> source tree.
>> Is there any simple command that I use for this case? say, "M-x
>> display-file-path" or something similar.
>>
>> Thanks for your help in advance.
> M-: (buffer-file-name)
> Shows the full path of the visited file.
BTW, the convention on GNU systems is to use the word "path" only for
lists of directories (as in $PATH or load-path), whereas what the user
is asking for would simply be an absolute file name.
Stefan