Hello Rémi and Óscar: On 2010-03-31 16:38 +0100, Rémi Vanicat wrote: > --- > This need a keybiding, but only in the log view. But as the log view use > the same mode than the status (and other), it's a little complicated... > > > magit.el | 12 ++++++++++++ > 1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/magit.el b/magit.el > index 59430cd..168815b 100644 > --- a/magit.el > +++ b/magit.el > @@ -3210,6 +3210,18 @@ Prefix arg means justify as well." > (let ((res (magit-git-exit-code "log" "--decorate=full" > "--max-count=0"))) > (setq magit-have-decorate (eq res 0))))) > > +(defun magit-reload-log (&optional arg) > + (interactive "P") > + (let ((added (cond > + ((numberp arg) arg) > + (arg (read-from-minibuffer "Log entry to add: " () () t > ()-value 100)) > + (t 100)))) > + (make-local-variable 'magit-log-cutoff-length) > + (setq magit-log-cutoff-length (+ magit-log-cutoff-length added))) > + (magit-refresh)) > + > + > + > (defun magit-refresh-log-buffer (range style args) > (magit-configure-have-graph) > (magit-configure-have-decorate) > -- > 1.7.0.3
I think using C-d for this will be confusing C-d is global key-binding for deleting. On 2010-03-31 16:13 +0100, Óscar Fuentes wrote: > I implemented this but the widget's keymap interferes with magit's > keymap, so the solution is not to use the widgets but bind one key for > doubling the number of entries shown and another for showing all > entries. Some text is appended at the end of the log buffer reporting > the existence of those bindings. > > I hope to have enough time this night for finishing the code. I think it will be better to implement something similar to what vc does for consistency. Unfortunately I haven't used the widget so don't know if the interference can be done away with. My experience with using Gnus and its mml convinces me the keymap is only active when point is in the widget. For example, if you view an email with an attachment in Gnus, the key bindings when point is at the attachment are different from normal gnus key bindings. Thanks for looking into this. Leo -- To unsubscribe, reply using "remove me" as the subject.
