GNU bug report logs -
#10133
log-view and transient mark mode
Previous Next
Reported by: Richard Copley <rcopley <at> gmail.com>
Date: Fri, 25 Nov 2011 14:17:01 UTC
Severity: minor
Found in version 24.0.91
Done: Chong Yidong <cyd <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 10133 in the body.
You can then email your comments to 10133 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#10133
; Package
emacs
.
(Fri, 25 Nov 2011 14:17:02 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
.
(Fri, 25 Nov 2011 14:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The value of mark-active isn't always correct. (I first noticed this
when I typed `d' in a vc-log-view buffer and got the diff between the
revisions at point and mark, not the diff for the change at point.)
From `emacs -Q',
M-x transient-mark-mode <return>
=> Transient-Mark mode disabled
M-: mark-active <return>
=> nil
C-SPC
=> Mark set
M-: mark-active <return>
=> t
In GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600)
of 2011-11-25 on 57172UHB
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.6) --cflags -fno-omit-frame-pointer'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENG
value of $XMODIFIERS: nil
locale-coding-system: cp1252
default enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-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 input:
M-x t r a n s i e n t - m a r k - m o d e <return>
M-: m a r k - a c t i v e <return> C-SPC M-: m a r
k - a c t i v e <return> M-x r e p o r t - e m a c
s - b u g <return>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Transient-Mark mode disabled
nil
Mark set
t
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader
emacsbug cus-start cus-load time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars
tool-bar dnd fontset image fringe lisp-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 button faces cus-face files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
multi-tty emacs)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10133
; Package
emacs
.
(Fri, 25 Nov 2011 14:33:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 10133 <at> debbugs.gnu.org (full text, mbox):
Ah, I see that `mark-active' isn't quite what I thought it was. I
guess the bug is that the functions in "log-view.el" should be using
`use-region-p' or `region-active-p' rather than `mark-active'.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10133
; Package
emacs
.
(Tue, 29 Nov 2011 02:57:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 10133 <at> debbugs.gnu.org (full text, mbox):
Richard Copley wrote:
> I guess the bug is that the functions in "log-view.el" should be using
> `use-region-p' or `region-active-p' rather than `mark-active'.
Why? That would make them dependent on transient mark mode.
Nowhere in the doc of eg log-view-diff does it say that the function
behaves differently if transient mark mode is on. So I don't see that
there is a bug here.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10133
; Package
emacs
.
(Tue, 29 Nov 2011 13:55:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 10133 <at> debbugs.gnu.org (full text, mbox):
>> I guess the bug is that the functions in "log-view.el" should be using
>> `use-region-p' or `region-active-p' rather than `mark-active'.
> Why? That would make them dependent on transient mark mode.
But the current behavior means that without transient-mark-mode, if
you've set the mark at some point in the past, you can't do a "diff with
current file" any more, only a "diff between revision at point and
revision at mark".
> Nowhere in the doc of eg log-view-diff does it say that the function
> behaves differently if transient mark mode is on. So I don't see that
> there is a bug here.
It's maybe not a bug, but it's a limitation.
I think `use-region-p' would make a lot of sense here nowadays (there
was no temporary tmm back when I wrote the code, so something like
use-region-p would have made the "diff between 2 revisions"
inaccessible to non-tmm users, but this limit has now been lifted).
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10133
; Package
emacs
.
(Tue, 29 Nov 2011 17:30:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 10133 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier wrote:
> But the current behavior means that without transient-mark-mode, if
> you've set the mark at some point in the past, you can't do a "diff with
> current file" any more, only a "diff between revision at point and
> revision at mark".
You can move the mark to point, though I agree it's not ideal.
> I think `use-region-p' would make a lot of sense here nowadays (there
> was no temporary tmm back when I wrote the code, so something like
> use-region-p would have made the "diff between 2 revisions"
> inaccessible to non-tmm users, but this limit has now been lifted).
Some people disable even temporary tmm. :)
Changed bug title to 'log-view and transient mark mode' from '24.0.91; mark-active'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 29 Nov 2011 18:20:02 GMT)
Full text and
rfc822 format available.
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 29 Nov 2011 18:20:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#10133
; Package
emacs
.
(Thu, 09 Aug 2012 07:59:01 GMT)
Full text and
rfc822 format available.
Message #24 received at 10133 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:
>> Nowhere in the doc of eg log-view-diff does it say that the function
>> behaves differently if transient mark mode is on. So I don't see that
>> there is a bug here.
>
> It's maybe not a bug, but it's a limitation.
> I think `use-region-p' would make a lot of sense here nowadays (there
> was no temporary tmm back when I wrote the code, so something like
> use-region-p would have made the "diff between 2 revisions"
> inaccessible to non-tmm users, but this limit has now been lifted).
I changed it to use use-region-p.
bug closed, send any further explanations to
10133 <at> debbugs.gnu.org and Richard Copley <rcopley <at> gmail.com>
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 09 Aug 2012 07:59:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Sep 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.