unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: How to get full path of currently opened file?
       [not found] <d642ce90-bacd-4e8d-8101-7faf14921243@m38g2000vbn.googlegroups.com>
@ 2011-09-19 21:16 ` Alan Mackenzie
  2012-03-28 21:44 ` Sylvain Rousseau
  1 sibling, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2011-09-19 21:16 UTC (permalink / raw)
  To: help-gnu-emacs

jikk <aixer77@gmail.com> wrote:
> HI, all

> 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.

Using C-x C-v `find-alternate-file' displays the full path.  Just do
C-g to get back to normal editing.

> Thanks for your help in advance.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to get full path of currently opened file?
       [not found] <d642ce90-bacd-4e8d-8101-7faf14921243@m38g2000vbn.googlegroups.com>
  2011-09-19 21:16 ` How to get full path of currently opened file? Alan Mackenzie
@ 2012-03-28 21:44 ` Sylvain Rousseau
  1 sibling, 0 replies; 2+ messages in thread
From: Sylvain Rousseau @ 2012-03-28 21:44 UTC (permalink / raw)
  To: jikk; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 442 bytes --]

Try

(setq frame-title-format
      '(:eval
        (concat "Emacs: "
                (or
                 buffer-file-name
                 (and (eq major-mode 'dired-mode)
                      (expand-file-name
                       (if (listp dired-directory)
                           (car dired-directory)
                         dired-directory)))
                 (buffer-name)))))

 to see the path in the frame title.


Sylvain.

[-- Attachment #2: Type: text/html, Size: 517 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-28 21:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <d642ce90-bacd-4e8d-8101-7faf14921243@m38g2000vbn.googlegroups.com>
2011-09-19 21:16 ` How to get full path of currently opened file? Alan Mackenzie
2012-03-28 21:44 ` Sylvain Rousseau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).