GNU bug report logs -
#19101
25.0.50; `vc-print-log' puts wrong buffer into `log-view-mode'
Previous Next
Reported by: Richard Copley <rcopley <at> gmail.com>
Date: Wed, 19 Nov 2014 01:18:01 UTC
Severity: normal
Merged with 19078
Found in version 25.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19101 in the body.
You can then email your comments to 19101 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Wed, 19 Nov 2014 01:18:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Richard Copley <rcopley <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 19 Nov 2014 01:18:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Visit a file under Subversion or RCS (not Git or Bazaar) and invoke
`vc-print-log'. The log buffer should be put into log-view-mode, but it
isn't. The buffer visiting the file is put into log-view-mode instead.
In GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
of 2014-11-18 on MACHINE
Repository revision: 4a306d701b0dbe860c8ced70e0d93bd3129f0665
Windowing system distributor `Microsoft Corp.', version 6.3.9600
Configured using:
`configure --prefix /c/emacs/emacs-20141217-222347
--disable-dependency-tracking
--enable-locallisppath=%emacs_dir%/../site-lisp --with-wide-int
--build=x86_64-w64-mingw32 'CPPFLAGS=-I G:/usr/include -I
C:/GnuWin32/include 'LDFLAGS=-L G:/usr/lib -L C:/GnuWin32/lib''
Configured features:
XPM JPEG TIFF GIF PNG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
Important settings:
value of $LANG: ENG
locale-coding-system: cp1252
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils add-log log-view easymenu
easy-mmode pcvs-util cl-extra vc cl-loaddefs cl-lib vc-dispatcher vc-svn
make-mode time-date tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
w32notify w32 multi-tty emacs)
Memory information:
((conses 16 86122 7047)
(symbols 56 18892 1)
(miscs 48 52 94)
(strings 32 15819 4424)
(string-bytes 1 430435)
(vectors 16 10614)
(vector-slots 8 389547 5184)
(floats 8 66 152)
(intervals 56 327 1)
(buffers 976 13))
Merged 19078 19101.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Nov 2014 01:58:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Wed, 19 Nov 2014 06:54:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 19101 <at> debbugs.gnu.org (full text, mbox):
>>>>> Richard Copley <rcopley <at> gmail.com> writes:
> Visit a file under Subversion or RCS (not Git or Bazaar) and invoke
> `vc-print-log'. The log buffer should be put into log-view-mode, but
> it isn't. The buffer visiting the file is put into log-view-mode
> instead.
This is likely to be caused by VC assuming that the ‘print-log’
backend function leaves the log buffer as the current one.
It doesn’t seem documented, and frankly, I’ve stumbled on that
myself while working on vc-mw.el.
My suggestion would be for vc-print-log-internal to explicitly
set-buffer after (successfully) invoking ‘print-log’.
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
Merged 19078 19101.
Request was from
Ivan Shmakov <ivan <at> siamics.net>
to
control <at> debbugs.gnu.org
.
(Wed, 19 Nov 2014 15:31:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Wed, 19 Nov 2014 16:14:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 19101 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 19 Nov 2014 01:17:00 +0000
> From: Richard Copley <rcopley <at> gmail.com>
>
> Visit a file under Subversion or RCS (not Git or Bazaar) and invoke
> `vc-print-log'. The log buffer should be put into log-view-mode, but it
> isn't. The buffer visiting the file is put into log-view-mode instead.
Fixed on trunk (e9917c0).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Wed, 19 Nov 2014 16:15:03 GMT)
Full text and
rfc822 format available.
Message #18 received at 19101 <at> debbugs.gnu.org (full text, mbox):
> From: Ivan Shmakov <ivan <at> siamics.net>
> Date: Wed, 19 Nov 2014 06:53:15 +0000
>
> >>>>> Richard Copley <rcopley <at> gmail.com> writes:
>
> > Visit a file under Subversion or RCS (not Git or Bazaar) and invoke
> > `vc-print-log'. The log buffer should be put into log-view-mode, but
> > it isn't. The buffer visiting the file is put into log-view-mode
> > instead.
>
> This is likely to be caused by VC assuming that the ‘print-log’
> backend function leaves the log buffer as the current one.
No, it's because Stefan moved the call to pop-to-buffer so that the
part that turned on the mode was running in the wrong buffer.
As for print-log backend function, those that I saw run inside
with-temp-buffer, so they don't switch buffers.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Wed, 19 Nov 2014 16:52:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 19101 <at> debbugs.gnu.org (full text, mbox):
>>>>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>>>> From: Ivan Shmakov <ivan <at> siamics.net>
>>>>> Richard Copley <rcopley <at> gmail.com> writes:
>>> Visit a file under Subversion or RCS (not Git or Bazaar) and invoke
>>> `vc-print-log'. The log buffer should be put into log-view-mode,
>>> but it isn't. The buffer visiting the file is put into
>>> log-view-mode instead.
>> This is likely to be caused by VC assuming that the ‘print-log’
>> backend function leaves the log buffer as the current one.
> No, it's because Stefan moved the call to pop-to-buffer so that the
> part that turned on the mode was running in the wrong buffer.
ACK, but that change seem to be dated 2014-11-05, while I’ve
observed a similar issue (with non-Emacs code, though) before.
Or so I think.
> As for print-log backend function, those that I saw run inside
> with-temp-buffer, so they don't switch buffers.
There’re several which use vc-setup-buffer, which in turn calls
set-buffer. Consider, e. g.:
(defun vc-setup-buffer (buf)
"Prepare BUF for executing a slave command and make it current."
(let ((camefrom (current-buffer))
(olddir default-directory))
(set-buffer (get-buffer-create buf))
(defun vc-bzr-print-log (files buffer &optional shortlog start-revision limit)
…
;; `vc-do-command' creates the buffer, but we need it before running
;; the command.
(vc-setup-buffer buffer)
(defun vc-git-print-log (files buffer &optional shortlog start-revision limit)
…
(let ((coding-system-for-read vc-git-commits-coding-system))
;; `vc-do-command' creates the buffer, but we need it before running
;; the command.
(vc-setup-buffer buffer)
(defun vc-hg-print-log (files buffer &optional shortlog start-revision limit)
…
;; `vc-do-command' creates the buffer, but we need it before running
;; the command.
(vc-setup-buffer buffer)
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Wed, 19 Nov 2014 18:53:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 19101 <at> debbugs.gnu.org (full text, mbox):
> From: Ivan Shmakov <ivan <at> siamics.net>
> Date: Wed, 19 Nov 2014 16:51:13 +0000
>
> >> This is likely to be caused by VC assuming that the ‘print-log’
> >> backend function leaves the log buffer as the current one.
>
> > No, it's because Stefan moved the call to pop-to-buffer so that the
> > part that turned on the mode was running in the wrong buffer.
>
> ACK, but that change seem to be dated 2014-11-05, while I’ve
> observed a similar issue (with non-Emacs code, though) before.
> Or so I think.
The problem reported in this bug started happening on 2014-11-05.
> > As for print-log backend function, those that I saw run inside
> > with-temp-buffer, so they don't switch buffers.
>
> There’re several which use vc-setup-buffer, which in turn calls
> set-buffer.
But no one relies on that.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Wed, 19 Nov 2014 19:05:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 19101 <at> debbugs.gnu.org (full text, mbox):
>> Visit a file under Subversion or RCS (not Git or Bazaar) and invoke
>> `vc-print-log'. The log buffer should be put into log-view-mode, but it
>> isn't. The buffer visiting the file is put into log-view-mode instead.
>
> Fixed on trunk (e9917c0).
Confirmed, thanks.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Wed, 19 Nov 2014 19:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Richard Copley <rcopley <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 19 Nov 2014 19:18:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 19101-done <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 19 Nov 2014 19:04:44 +0000
> From: Richard Copley <rcopley <at> gmail.com>
> Cc: 19101 <at> debbugs.gnu.org
>
> >> Visit a file under Subversion or RCS (not Git or Bazaar) and invoke
> >> `vc-print-log'. The log buffer should be put into log-view-mode, but it
> >> isn't. The buffer visiting the file is put into log-view-mode instead.
> >
> > Fixed on trunk (e9917c0).
>
> Confirmed, thanks.
Thanks, closing.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Wed, 19 Nov 2014 19:18:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Paul Pogonyshev <pogonyshev <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 19 Nov 2014 19:18:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19101
; Package
emacs
.
(Thu, 20 Nov 2014 11:18:02 GMT)
Full text and
rfc822 format available.
Message #40 received at 19101 <at> debbugs.gnu.org (full text, mbox):
>>>>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>>>> Ivan Shmakov <ivan <at> siamics.net> Date: Wed, 19 Nov 2014 16:51:13 +0000
>>>> This is likely to be caused by VC assuming that the ‘print-log’
>>>> backend function leaves the log buffer as the current one.
>>> No, it's because Stefan moved the call to pop-to-buffer so that the
>>> part that turned on the mode was running in the wrong buffer.
>> ACK, but that change seem to be dated 2014-11-05, while I’ve
>> observed a similar issue (with non-Emacs code, though) before. Or
>> so I think.
> The problem reported in this bug started happening on 2014-11-05.
I stand corrected; as it seems, I’ve first observed this issue
with the then-recent development version of Emacs built
2014-11-08.
>>> As for print-log backend function, those that I saw run inside
>>> with-temp-buffer, so they don't switch buffers.
>> There’re several which use vc-setup-buffer, which in turn calls
>> set-buffer.
> But no one relies on that.
ACK, thanks for the clarification.
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 18 Dec 2014 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 242 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.