{"thread":{"id":"6826","subject":"git-blame.el won't run","startedAt":"2007-02-14T22:35:35Z","lastAt":"2007-02-21T17:21:20Z","messageCount":11,"participants":["Xavier Maillard","David Kågedal","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"34648","messageId":"13283.1171492535@localhost","threadId":"6826","inReplyTo":null,"subject":"git-blame.el won't run","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-14T22:35:35Z","receivedAt":"2007-02-14T22:35:35Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi,\n\nI was happy to see that latest git's git included an emacs mode\nfor git-blame.\n\nSadly, when trying it, I just have this displayed into *Messages*\nbuffer: \n\nSetting up indent for shell type bash\nsetting up indent stuff\nIndentation variable are now local.\nIndentation setup for shell type bash\nlet: Process git-blame not running\n\nIf I launch git-blame manually onto the file from command line,\nit works.\n\nIt is on a emacs 22 (aka CVS version).\n\nXavier\n"},{"id":"34816","messageId":"22739.1171649640@localhost","threadId":"6826","inReplyTo":"13283.1171492535@localhost","subject":"Re: git-blame.el won't run","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-16T18:14:00Z","receivedAt":"2007-02-16T18:14:00Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Really, no one knows ?\n\nXavier\n"},{"id":"35028","messageId":"87mz393mlo.fsf@morpheus.local","threadId":"6826","inReplyTo":"13283.1171492535@localhost","subject":"Re: git-blame.el won't run","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2007-02-19T20:42:59Z","receivedAt":"2007-02-19T20:42:59Z","isPatch":false,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"Xavier Maillard <zedek@gnu.org> writes:\n\n> Hi,\n>\n> I was happy to see that latest git's git included an emacs mode\n> for git-blame.\n>\n> Sadly, when trying it, I just have this displayed into *Messages*\n> buffer: \n>\n> Setting up indent for shell type bash\n> setting up indent stuff\n> Indentation variable are now local.\n> Indentation setup for shell type bash\n> let: Process git-blame not running\n\nCan you please set debug-on-error to t and show me the backtrace you get?\n\nAnd does M-! git-blame work in your emacs?\n\n-- \nDavid Kågedal\n"},{"id":"35051","messageId":"24475.1171920735@localhost","threadId":"6826","inReplyTo":"87mz393mlo.fsf@morpheus.local","subject":"Re: git-blame.el won't run","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-19T21:32:15Z","receivedAt":"2007-02-19T21:32:15Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi,\n\n> Can you please set debug-on-error to t and show me the backtrace you get?\n\nNothing happens. I have to C-g after having waited for a few\nseconds.\n \n> And does M-! git-blame work in your emacs?\n\nNo it is not. It shows a help message (usage message).\n\nXavier\n"},{"id":"35075","messageId":"erdkht$s7v$1@sea.gmane.org","threadId":"6826","inReplyTo":"24475.1171920735@localhost","subject":"Re: git-blame.el won't run","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-02-20T01:59:19Z","receivedAt":"2007-02-20T01:59:19Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Xavier Maillard wrote:\n\n>> And does M-! git-blame work in your emacs?\n> \n> No it is not. It shows a help message (usage message).\n\nDo you use git new enough to have --incremental support for git-blame?\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"35088","messageId":"87abz92rp9.fsf@morpheus.local","threadId":"6826","inReplyTo":"24475.1171920735@localhost","subject":"Re: git-blame.el won't run","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2007-02-20T07:50:26Z","receivedAt":"2007-02-20T07:50:26Z","isPatch":false,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"Xavier Maillard <zedek@gnu.org> writes:\n\n> Hi,\n>\n>> Can you please set debug-on-error to t and show me the backtrace you get?\n>\n> Nothing happens. I have to C-g after having waited for a few\n> seconds.\n\nI'm not sure my instructions were very clear.  Did you try M-x\ngit-blame-mode after enabling debug-on-error?\n\n>> And does M-! git-blame work in your emacs?\n>\n> No it is not. It shows a help message (usage message).\n\nBut if the help message is for git-blame, it did work.  I wanted to\ncheck that you could run git-blame from your emacs, and if it printed\na usage message, it did run.  If you want it to produce some real\noutput, you have to give it a file name as well.\n\n-- \nDavid Kågedal\n"},{"id":"35123","messageId":"4157.1171992534@localhost","threadId":"6826","inReplyTo":"87abz92rp9.fsf@morpheus.local","subject":"Re: git-blame.el won't run","fromName":"Xavier Maillard","fromEmail":"maillaxa@gmail.com","sentAt":"2007-02-20T17:28:54Z","receivedAt":"2007-02-20T17:28:54Z","isPatch":false,"sender":{"key":"maillaxa@gmail.com","avatar":null},"body":"Hi,\n\n> >> Can you please set debug-on-error to t and show me the backtrace you get?\n> >\n> > Nothing happens. I have to C-g after having waited for a few\n> > seconds.\n> \n> I'm not sure my instructions were very clear.  Did you try M-x\n> git-blame-mode after enabling debug-on-error?\n\nI did it. And I had to kill (C-g) after having waited for several\nlong seconds.\n\nXavier\n \n"},{"id":"35124","messageId":"87fy9020ne.fsf@morpheus.local","threadId":"6826","inReplyTo":"4157.1171992534@localhost","subject":"Re: git-blame.el won't run","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2007-02-20T17:34:45Z","receivedAt":"2007-02-20T17:34:45Z","isPatch":false,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"Xavier Maillard <maillaxa@gmail.com> writes:\n\n> Hi,\n>\n>> >> Can you please set debug-on-error to t and show me the backtrace you get?\n>> >\n>> > Nothing happens. I have to C-g after having waited for a few\n>> > seconds.\n>> \n>> I'm not sure my instructions were very clear.  Did you try M-x\n>> git-blame-mode after enabling debug-on-error?\n>\n> I did it. And I had to kill (C-g) after having waited for several\n> long seconds.\n\nOK, then set debug-on-quit to t and do it again, and send me the\nbacktrace you get when you press C-g.\n\n-- \nDavid Kågedal\n"},{"id":"35175","messageId":"13478.1172059706@localhost","threadId":"6826","inReplyTo":"87fy9020ne.fsf@morpheus.local","subject":"Re: git-blame.el won't run","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-21T12:08:26Z","receivedAt":"2007-02-21T12:08:26Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi,\n\nThis is the backtrace after C-g (after a few minutes):\n\n\nDebugger entered--Lisp error: (quit)\n  process-send-region(#<process git-blame> 1 28910)\n  (let ((display-buf ...) (blame-buf ...) (args ...)) (if startline (setq args ...)) (setq args (append args ...)) (setq git-blame-proc (apply ... \"git-blame\" blame-buf \"git\" \"blame\" args)) (with-current-buffer blame-buf (erase-buffer) (make-local-variable ...) (make-local-variable ...) (setq git-blame-file display-buf) (setq git-blame-current nil)) (set-process-filter git-blame-proc (quote git-blame-filter)) (set-process-sentinel git-blame-proc (quote git-blame-sentinel)) (process-send-region git-blame-proc (point-min) (point-max)) (process-send-eof git-blame-proc))\n  (if git-blame-proc (message \"Already running git blame\") (let (... ... ...) (if startline ...) (setq args ...) (setq git-blame-proc ...) (with-current-buffer blame-buf ... ... ... ... ...) (set-process-filter git-blame-proc ...) (set-process-sentinel git-blame-proc ...) (process-send-region git-blame-proc ... ...) (process-send-eof git-blame-proc)))\n  git-blame-run()\n  (progn (let (...) (if ... ... ...)) (setq git-blame-cache (make-hash-table :test ...)) (git-blame-run))\n  (if git-blame-mode (progn (let ... ...) (setq git-blame-cache ...) (git-blame-run)) (cancel-timer git-blame-idle-timer))\n  git-blame-mode(nil)\n  call-interactively(git-blame-mode)\n  execute-extended-command(nil)\n  call-interactively(execute-extended-command)\n\nRegards,\n\nXavier\n"},{"id":"35178","messageId":"87vehvsjho.fsf@morpheus.local","threadId":"6826","inReplyTo":"13478.1172059706@localhost","subject":"Re: git-blame.el won't run","fromName":"David Kågedal","fromEmail":"davidk@lysator.liu.se","sentAt":"2007-02-21T13:55:31Z","receivedAt":"2007-02-21T13:55:31Z","isPatch":false,"sender":{"key":"davidk@lysator.liu.se","avatar":"https://avatars.githubusercontent.com/u/60530?v=4"},"body":"Xavier Maillard <zedek@gnu.org> writes:\n\n> Hi,\n>\n> This is the backtrace after C-g (after a few minutes):\n>\n>\n> Debugger entered--Lisp error: (quit)\n>   process-send-region(#<process git-blame> 1 28910)\n>   (let ((display-buf ...) (blame-buf ...) (args ...)) (if startline (setq args ...)) (setq args (append args ...)) (setq git-blame-proc (apply ... \"git-blame\" blame-buf \"git\" \"blame\" args)) (with-current-buffer blame-buf (erase-buffer) (make-local-variable ...) (make-local-variable ...) (setq git-blame-file display-buf) (setq git-blame-current nil)) (set-process-filter git-blame-proc (quote git-blame-filter)) (set-process-sentinel git-blame-proc (quote git-blame-sentinel)) (process-send-region git-blame-proc (point-min) (point-max)) (process-send-eof git-blame-proc))\n>   (if git-blame-proc (message \"Already running git blame\") (let (... ... ...) (if startline ...) (setq args ...) (setq git-blame-proc ...) (with-current-buffer blame-buf ... ... ... ... ...) (set-process-filter git-blame-proc ...) (set-process-sentinel git-blame-proc ...) (process-send-region git-blame-proc ... ...) (process-send-eof git-blame-proc)))\n>   git-blame-run()\n>   (progn (let (...) (if ... ... ...)) (setq git-blame-cache (make-hash-table :test ...)) (git-blame-run))\n>   (if git-blame-mode (progn (let ... ...) (setq git-blame-cache ...) (git-blame-run)) (cancel-timer git-blame-idle-timer))\n>   git-blame-mode(nil)\n>   call-interactively(git-blame-mode)\n>   execute-extended-command(nil)\n>   call-interactively(execute-extended-command)\n\nIf you switch to the buffer called \" git blame for <filename>\" (notice\nthe leading space, you will probably see a usage/error message from\ngit.\n\nMaybe your git blame doesn't like the --incremental flag or the\n--contents flag.  But the problem is that I'm not sure how to make\nemacs not hang.\n\nprocess-send-region blocks when sending the file contents, since git\nisn't reading it.  But git finishes, so emacs should be able to detect\nthat there is no process that can read anything anymore.\n\n-- \nDavid Kågedal\n"},{"id":"35189","messageId":"1272.1172078480@localhost","threadId":"6826","inReplyTo":"87vehvsjho.fsf@morpheus.local","subject":"Re: git-blame.el won't run","fromName":"Xavier Maillard","fromEmail":"zedek@gnu.org","sentAt":"2007-02-21T17:21:20Z","receivedAt":"2007-02-21T17:21:20Z","isPatch":false,"sender":{"key":"zedek@gnu.org","avatar":null},"body":"Hi,\n\n> If you switch to the buffer called \" git blame for <filename>\" (notice\n> the leading space, you will probably see a usage/error message from\n> git.\n\nSeen it.\n \n> Maybe your git blame doesn't like the --incremental flag or the\n> --contents flag.  But the problem is that I'm not sure how to make\n> emacs not hang.\n\nOk. I fixed this by upgrading to latest stable release of Git\n(according to website it is 1.5.0).\n\nIt now works as expected !\n\nThank you very much for your time and patience.\n\nXavier\n"}]}