[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding the source of Change Log entries
From: |
Juri Linkov |
Subject: |
Re: Finding the source of Change Log entries |
Date: |
Thu, 11 Sep 2008 02:59:55 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
> JL> I noticed one difference comparing with the standard behavior of
> JL> next-error. In ChangeLog files it doesn't switch to the source
> JL> buffer: after calling `next-error', point stays in the ChangeLog buffer
> JL> instead of using pop-to-buffer to switch to the source buffer.
>
> Unfortunately I think making that change would have broken
> `change-log-goto-source', so I run an extra `find-file' after
> `change-log-goto-source'. Take a look and see if it works for you. It
> may be more appropriate with find-file-other-window to keep the
> ChangeLog visible.
Still doesn't work. Replacing `pop-to-buffer' with `display-buffer'
at least doesn't hide the ChangeLog buffer, but point is in the wrong
buffer: unlike occur/grep modes, point stays in the ChangeLog buffer
instead of switching to the source buffer.
> JL> Also I think it is more useful to navigate by entries instead of file
> names,
> JL> (i.e. using change-log-start-entry-re instead of
> change-log-file-names-re).
>
> I had that originally, but it's very common to have multi-file commits
> and visiting each file proved (to me) to be useful. Remember, this is
> to visit the file referenced in the ChangeLog, not the ChangeLog entry
> itself.
I remember we already agreed to add a pair of new next-file functions
to jump the next/previous file like compilation-next-file and
compilation-previous-file. Such commands would be useful for
all next-error aware modes like occur, grep, ChangeLog, etc.
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: Finding the source of Change Log entries,
Juri Linkov <=