From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#19045: 25.0.50; [PATCH] vc-git-print-log use --follow Date: Tue, 06 Feb 2018 23:04:28 +0200 Organization: LINKOV.NET Message-ID: <877erpygmb.fsf@mail.linkov.net> References: <87d28rt4jl.fsf@telefonica.net> <874lmxloo1.fsf@mail.linkov.net> <87d11kquw2.fsf@mail.linkov.net> <83fu6g860d.fsf@gnu.org> <87bmh3w2z1.fsf@mail.linkov.net> <83vafa7plz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1517952452 1153 195.159.176.226 (6 Feb 2018 21:27:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Feb 2018 21:27:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 19045@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 06 22:27:28 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejAlr-0007rl-W7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Feb 2018 22:27:20 +0100 Original-Received: from localhost ([::1]:36562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejAnr-000771-T9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Feb 2018 16:29:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ejASF-0002rr-IW for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 16:07:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ejASE-00012U-HN for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 16:07:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ejASE-00012J-Dn for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 16:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ejASE-0004Cb-4m for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2018 16:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Feb 2018 21:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19045 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19045-submit@debbugs.gnu.org id=B19045.151795122116146 (code B ref 19045); Tue, 06 Feb 2018 21:07:02 +0000 Original-Received: (at 19045) by debbugs.gnu.org; 6 Feb 2018 21:07:01 +0000 Original-Received: from localhost ([127.0.0.1]:60581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejASD-0004CM-1n for submit@debbugs.gnu.org; Tue, 06 Feb 2018 16:07:01 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:50778 helo=homiemail-a20.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejASB-0004CE-N7 for 19045@debbugs.gnu.org; Tue, 06 Feb 2018 16:07:00 -0500 Original-Received: from homiemail-a20.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTP id D8D367EC07B; Tue, 6 Feb 2018 13:06:58 -0800 (PST) Original-Received: from localhost.linkov.net (m91-129-107-8.cust.tele2.ee [91.129.107.8]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a20.g.dreamhost.com (Postfix) with ESMTPSA id 02B3E7EC076; Tue, 6 Feb 2018 13:06:57 -0800 (PST) In-Reply-To: <83vafa7plz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Feb 2018 05:40:08 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142985 Archived-At: > Would binding resize-mini-windows to nil instead fix that? If it > would, then I think it's a better way, because it doesn't affect what > is being recorded in *Messages*. I created a patch below that let-binds resize-mini-windows to nil, but it has no effect and always resizes the echo area. Should I create a separate bug report for this? Also there is still a problem of hiding the trailing part with =E2=80=9Cin background... done=E2=80=9D when it is not displayed at the e= nd of the message, and I have no idea how to reformulate this phrase. diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index b0d2221..a3d8e3d 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -290,16 +290,12 @@ vc-do-command (let* ((files (mapcar (lambda (f) (file-relative-name (expand-file-name f))) (if (listp file-or-list) file-or-list (list file-or-list)))) + (resize-mini-windows nil) (full-command - ;; What we're doing here is preparing a version of the command - ;; for display in a debug-progress message. If it's fewer than - ;; 20 characters display the entire command (without trailing - ;; newline). Otherwise display the first 20 followed by an ellipsis. (concat (if (string=3D (substring command -1) "\n") (substring command 0 -1) command) - " " - (vc-delistify (mapcar (lambda (s) (if (> (length s) 20) (concat (sub= string s 0 2) "...") s)) flags)) + " " (vc-delistify flags) " " (vc-delistify files)))) (save-current-buffer (unless (or (eq buffer t) @@ -332,7 +328,8 @@ vc-do-command (setq status proc) (when vc-command-messages (vc-run-delayed - (message "Running %s in background... done" full-command)))) + (let ((resize-mini-windows nil)) + (message "Running %s in background... done" full-command))))) ;; Run synchronously (when vc-command-messages (message "Running %s in foreground..." full-command))