From: Tom Tromey <tom@tromey.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Tom Tromey <tom@tromey.com>, 25737@debbugs.gnu.org
Subject: bug#25737: 25.1.91; vc-git-log-{incoming,outgoing} fixes
Date: Thu, 16 Feb 2017 21:01:34 -0700 [thread overview]
Message-ID: <87poihxy75.fsf@tromey.com> (raw)
In-Reply-To: <b60b9f6e-c9fe-13e1-ac6b-09a8d31099ef@yandex.ru> (Dmitry Gutov's message of "Thu, 16 Feb 2017 12:48:51 +0200")
>>>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:
>> First, vc-git-log-incoming and vc-git-log-outgoing can be called with a
>> nil value for remote-location. In this case nothing shows up in the
>> log. Changing the code to treat nil the same as the empty string makes
>> the commands show the data I would expect.
Dmitry> Do you know when they get called with ""?
vc-log-outgoing does:
(interactive
(when current-prefix-arg
(list (read-string "Remote location (empty for default): "))))
So a prefix argument followed by pressing enter.
Dmitry> Should we maybe just change the callers to always use one or the other
Dmitry> value?
Seems reasonable, I'll change vc-log-outgoing.
>> Next, these commands move point to the end of the new buffer. However,
>> that is weird, because then the buffer is shrunk to fit; for me this
>> ends up making it look like I have just a single outgoing patch, even
>> when I have several.
Dmitry> Any ideas why that happens? I can see point ending up at eob when the
Dmitry> call is synchronous, but that doesn't affect the shrinking behavior
Dmitry> much (e.g. I have 13 lines, the window shrinks correctly but hides the
Dmitry> first line because the cursor is after the last line, and it has to be
Dmitry> visible).
Dmitry> I've only tested this in vc-log-incoming, however.
There are two pieces.
As you say, point ends up at eob due to vc-do-command using process-file
in the synchronous case; whereas for the async case, vc-process-filter
uses save-excursion.
The other behavior seems to be a problem in
shrink-window-if-larger-than-buffer. I can reproduce it easily just
with any buffer by moving point to the end. I didn't debug this any
further than finding that.
Tom
next prev parent reply other threads:[~2017-02-17 4:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 12:38 bug#25737: 25.1.91; vc-git-log-{incoming,outgoing} fixes Tom Tromey
2017-02-16 10:48 ` Dmitry Gutov
2017-02-17 4:01 ` Tom Tromey [this message]
2017-02-20 1:53 ` Dmitry Gutov
2017-02-17 4:05 ` Tom Tromey
2017-02-20 1:53 ` Dmitry Gutov
2017-02-25 4:03 ` bug#25737: done Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87poihxy75.fsf@tromey.com \
--to=tom@tromey.com \
--cc=25737@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.