-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
args-out-of-range error in blame mode #54
Comments
egg-log-buffer-redisplay should be called with egg's log buffer as argument. I'm not sure what the "#" in backtrace means: egg-log-buffer-redisplay(#) |
Not sure what happened to that line in my cut 'n paste. [EDIT: github processes some text specially in these tickets! Look at the source to see the real thing.] Mostly correct version of that line:
The rest seems OK. But if I run egg-log-buffer-get-marked-alist in edebug and check the currently selected buffer (with "P" in edebug) it shows my source buffer (in egg blame mode), not the log buffer. I'll poke at it some more if you think this is related. By the way, the log buffer sapphire-v6-log@c:/genarts/sapphire-v6/.git is empty. |
so what's exactly the argument egg-log-buffer-redisplay recieved when it cr*pped out? btw, egg-log-buffer-get-marked-alist () will collect the marked commits in the "current" buffer because it's expected to be called in the log buffer. |
On Thu, Nov 29, 2012 at 4:38 PM, Bogolisk [email protected] wrote:
Gary |
well, it's a bug!!! I'll whip up a fix, but it might be on the testing branch. |
If you're comfortable with diff and patch, try this patch: diff --git a/egg.el b/egg.el
On Thu, Nov 29, 2012 at 4:59 PM, GaryO [email protected] wrote:
|
That helps, definitely. It gets further. There is I think another bug though, if the rev in question is not found in (which I do to make it go faster -- maybe that's too aggressive). But it On Thu, Nov 29, 2012 at 6:38 PM, Bogolisk [email protected] wrote:
Gary |
Try cherry-pick: 4c5bca3 fixed bug: cannot locate commit when displayed history is too short |
On Fri, Nov 30, 2012 at 8:51 AM, GaryO [email protected] wrote:
Hi it was intentional. The intend was to show the commit in the history of the |
Thanks, it works now. Just FYI, I recently discovered the git rev-list On Sun, Dec 2, 2012 at 4:50 AM, Bogolisk [email protected] wrote:
Gary |
Thanx, that should be faster than my current implementation because it doesn't need to parse the commit objects. |
new implementation (the previous one was not correct.) |
reported by GaryO in byplayer#54 I have a file in blame mode, go to the chunk of interest, hit RET (to open log). I get an error with this backtrace: Debugger entered--Lisp error: (args-out-of-range 2 2) next-single-property-change(2 :mark) egg-log-buffer-get-marked-alist(10004 46 9998 62) egg-log-buffer-get-rebase-marked-alist() egg-generic-display-logs((:description #("history scope: v6-maint-branch and 1c1959d" 0 15 (face egg-text-2) 15 30 (face egg-term) 30 35 (face egg-text-2) 35 42 (face egg-term)) :closure (lambda nil (egg-insert-logs-with-full-decoration (list "v6-maint-branch" "1c1959d1956637468c01e781e414b41531f5a1d9"))) :title #("v6-maint-branch" 0 15 (face egg-branch)) :subtitle #("1510b4bef24ea5cc69df31d3f31c71472d68ed96" 0 40 (face font-lock-string-face))) nil) egg-log-buffer-redisplay(#) egg-do-locate-commit("1c1959d1956637468c01e781e414b41531f5a1d9") egg-blame-locate-commit(11903 nil) call-interactively(egg-blame-locate-commit nil nil) (point-min) is 1, so pos is 1. Apparently it can't find the next single property change after that. I'm not sure why, the selected buffer seems to be the blame buffer and it has lots of properties. Oh yes, this is on nightly emacs 24.3.50.1 of 11-19-12 (Dani's Windows trunk build)
I have a file in blame mode, go to the chunk of interest, hit RET (to open log). I get an error with this backtrace:
(point-min) is 1, so pos is 1. Apparently it can't find the next single property change after that. I'm not sure why, the selected buffer seems to be the blame buffer and it has lots of properties.
Oh yes, this is on nightly emacs 24.3.50.1 of 11-19-12 (Dani's Windows trunk build)
The text was updated successfully, but these errors were encountered: