all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#1420: annotate from log-view displays junk buffer
@ 2008-11-24 11:39 ` Per Cederqvist
  2008-11-24 21:30   ` bug#1420: marked as done (annotate from log-view displays junk buffer) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Per Cederqvist @ 2008-11-24 11:39 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: ceder

1. Open a version-controlled file.  (The one I used is maintained by
   Mercurial, but I don't think that matters.)

2. Bring up the log of revisions with "C-x v l" (vc-print-log).

3. Move to an interesting revision with TAB.

4. Press "a" to annotate that revision (log-view-annotate-version).
   The annotations are properly inserted in a buffer named "*Annotate
   slidegtk.py (rev 19)*", but that buffer is not displayed.  Instead,
   an empty buffer named "Annotating... done" is displayed.

The cause seems to be that log-view-annotate-version expects
vc-annotate to return the buffer.  But at least in Emacs 22.3,
vc-annotate returns whatever the function message returns.  The
following patch seems to fix the problem:

--- vc.el~	2008-11-24 12:25:24.857985150 +0100
+++ vc.el	2008-11-24 12:25:46.288999164 +0100
@@ -3223,7 +3223,8 @@
              display-mode)))
     (when current-line
       (goto-line current-line temp-buffer-name))
-    (message "Annotating... done")))
+    (message "Annotating... done")
+    temp-buffer-name))
 
 (defun vc-annotate-prev-version (prefix)
   "Visit the annotation of the version previous to this one.



In GNU Emacs 22.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-09-10 on yagi.ingate.se
Windowing system distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure  '--prefix=/sw/emacs/22.3''

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: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-x C-f s <tab> <return> C-x v l <tab> <tab> a M-x 
r e p o r t - e m a c s - b u g <return>

Recent messages:
Loading log-view...
Loading easy-mmode...done
Loading log-view...done
Annotating...
Loading help-mode...done
Redisplaying annotation...done
Annotating... done
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#1420: marked as done (annotate from log-view displays junk  buffer)
  2008-11-24 11:39 ` bug#1420: annotate from log-view displays junk buffer Per Cederqvist
@ 2008-11-24 21:30   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2008-11-24 21:30 UTC (permalink / raw)
  To: Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 848 bytes --]


Your message dated Mon, 24 Nov 2008 16:21:32 -0500
with message-id <87k5as6crn.fsf@cyd.mit.edu>
and subject line Re: annotate from log-view displays junk buffer
has caused the Emacs bug report #1420,
regarding annotate from log-view displays junk buffer
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1420: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1420
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 4774 bytes --]

From: Per Cederqvist <ceder@ingate.com>
To: bug-gnu-emacs@gnu.org
Cc: ceder@lysator.liu.se
Subject: annotate from log-view displays junk buffer
Date: Mon, 24 Nov 2008 12:39:46 +0100
Message-ID: <200811241139.mAOBdksX027926@rapture.ingate.se>

1. Open a version-controlled file.  (The one I used is maintained by
   Mercurial, but I don't think that matters.)

2. Bring up the log of revisions with "C-x v l" (vc-print-log).

3. Move to an interesting revision with TAB.

4. Press "a" to annotate that revision (log-view-annotate-version).
   The annotations are properly inserted in a buffer named "*Annotate
   slidegtk.py (rev 19)*", but that buffer is not displayed.  Instead,
   an empty buffer named "Annotating... done" is displayed.

The cause seems to be that log-view-annotate-version expects
vc-annotate to return the buffer.  But at least in Emacs 22.3,
vc-annotate returns whatever the function message returns.  The
following patch seems to fix the problem:

--- vc.el~	2008-11-24 12:25:24.857985150 +0100
+++ vc.el	2008-11-24 12:25:46.288999164 +0100
@@ -3223,7 +3223,8 @@
              display-mode)))
     (when current-line
       (goto-line current-line temp-buffer-name))
-    (message "Annotating... done")))
+    (message "Annotating... done")
+    temp-buffer-name))
 
 (defun vc-annotate-prev-version (prefix)
   "Visit the annotation of the version previous to this one.



In GNU Emacs 22.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-09-10 on yagi.ingate.se
Windowing system distributor `The X.Org Foundation', version 11.0.60802000
configured using `configure  '--prefix=/sw/emacs/22.3''

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: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
C-x C-f s <tab> <return> C-x v l <tab> <tab> a M-x 
r e p o r t - e m a c s - b u g <return>

Recent messages:
Loading log-view...
Loading easy-mmode...done
Loading log-view...done
Annotating...
Loading help-mode...done
Redisplaying annotation...done
Annotating... done
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done




[-- Attachment #3: Type: message/rfc822, Size: 1323 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: Per Cederqvist <ceder@ingate.com>
Cc: 1420-done@emacsbugs.donarmstrong.com, ceder@lysator.liu.se
Subject: Re: annotate from log-view displays junk buffer
Date: Mon, 24 Nov 2008 16:21:32 -0500
Message-ID: <87k5as6crn.fsf@cyd.mit.edu>

> The cause seems to be that log-view-annotate-version expects
> vc-annotate to return the buffer.  But at least in Emacs 22.3,
> vc-annotate returns whatever the function message returns.  The
> following patch seems to fix the problem:

I fixed this with a change to log-view-annotate-version instead.  Thanks
for the bug report.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-24 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87k5as6crn.fsf@cyd.mit.edu>
2008-11-24 11:39 ` bug#1420: annotate from log-view displays junk buffer Per Cederqvist
2008-11-24 21:30   ` bug#1420: marked as done (annotate from log-view displays junk buffer) Emacs bug Tracking System

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.